	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gru_tgh_flush_init             ## -- Begin function gru_tgh_flush_init
	.p2align	4, 0x90
_gru_tgh_flush_init:                    ## @gru_tgh_flush_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	callq	_uv_blade_nr_possible_cpus
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	decl	%ebx
	movl	%ebx, %edi
	callq	_fls
	movl	$-1, %edi
	movl	%eax, %ecx
	shll	%cl, %edi
	notl	%edi
	callq	_fls
	movl	%eax, %r15d
	movq	_MAX_LOCAL_TGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	decl	%edi
	callq	_fls
	subl	%eax, %r15d
	xorl	%edi, %edi
	movl	%r15d, %esi
	callq	_max
	movl	%eax, %ecx
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
	movl	$-1, %ebx
LBB0_3:
	movl	%ecx, (%r14)
	movl	$1, %eax
	shll	%cl, %eax
	addl	%ebx, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	movl	%eax, 4(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_LOCAL_TGH,4,2              ## @MAX_LOCAL_TGH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gru_tgh_flush_init             ; -- Begin function gru_tgh_flush_init
	.p2align	2
_gru_tgh_flush_init:                    ; @gru_tgh_flush_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_uv_blade_nr_possible_cpus
	mov	w21, #-1
	cbz	w0, LBB0_2
; %bb.1:
	sub	w20, w0, #1
	mov	x0, x20
	bl	_fls
	lsl	w8, w21, w0
	mvn	w0, w8
	bl	_fls
	mov	x21, x0
Lloh0:
	adrp	x8, _MAX_LOCAL_TGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_LOCAL_TGH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w0, w8, #1
	bl	_fls
	sub	w1, w21, w0
	mov	w0, #0
	bl	_max
	mov	x21, x20
LBB0_2:
	mov	w8, #1
	lsl	w8, w8, w0
	add	w8, w21, w8
	asr	w8, w8, w0
	stp	w0, w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_LOCAL_TGH,4,2              ; @MAX_LOCAL_TGH
.subsections_via_symbols
