	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_sge_init_flcntxt            ## -- Begin function t3_sge_init_flcntxt
	.p2align	4, 0x90
_t3_sge_init_flcntxt:                   ## @t3_sge_init_flcntxt
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	$4095, %ecx                     ## imm = 0xFFF
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movl	%r9d, %r12d
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r13
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movl	32(%rbp), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	24(%rbp), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	16(%rbp), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_A_SG_CONTEXT_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_t3_read_reg
	movq	_F_CONTEXT_CMD_BUSY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	sarl	$12, %r15d
	movq	_A_SG_CONTEXT_DATA0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_t3_write_reg
	movq	_A_SG_CONTEXT_DATA1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_V_FL_BASE_HI
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, %ebx
	movq	_M_FL_INDEX_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	andl	%r15d, %edi
	callq	_V_FL_INDEX_LO
	orl	%eax, %ebx
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_t3_write_reg
	movq	_A_SG_CONTEXT_DATA2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	_V_FL_SIZE
	movl	%eax, %ebx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_V_FL_GEN
	orl	%eax, %ebx
	shrl	$12, %r15d
	movl	%r15d, %edi
	callq	_V_FL_INDEX_HI
	orl	%eax, %ebx
	movq	_M_FL_ENTRY_SIZE_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r12d, %edi
	callq	_V_FL_ENTRY_SIZE_LO
	orl	%eax, %ebx
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_t3_write_reg
	movq	_A_SG_CONTEXT_DATA3@GOTPCREL(%rip), %rax
	movq	_S_FL_ENTRY_SIZE_LO@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subb	(%rdx), %cl
	movl	(%rax), %r14d
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %r12d
	movl	%r12d, %edi
	callq	_V_FL_ENTRY_SIZE_HI
	movl	%eax, %r15d
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_V_FL_CONG_THRES
	movl	%eax, %ebx
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_V_FL_GTS
	orl	%eax, %ebx
	orl	%r15d, %ebx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_t3_write_reg
	movq	_F_FREELIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_t3_sge_write_context           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_A_SG_CONTEXT_CMD,4,2           ## @A_SG_CONTEXT_CMD
	.comm	_F_CONTEXT_CMD_BUSY,4,2         ## @F_CONTEXT_CMD_BUSY
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_A_SG_CONTEXT_DATA0,4,2         ## @A_SG_CONTEXT_DATA0
	.comm	_A_SG_CONTEXT_DATA1,4,2         ## @A_SG_CONTEXT_DATA1
	.comm	_M_FL_INDEX_LO,4,2              ## @M_FL_INDEX_LO
	.comm	_A_SG_CONTEXT_DATA2,4,2         ## @A_SG_CONTEXT_DATA2
	.comm	_M_FL_ENTRY_SIZE_LO,4,2         ## @M_FL_ENTRY_SIZE_LO
	.comm	_A_SG_CONTEXT_DATA3,4,2         ## @A_SG_CONTEXT_DATA3
	.comm	_S_FL_ENTRY_SIZE_LO,4,2         ## @S_FL_ENTRY_SIZE_LO
	.comm	_F_FREELIST,4,2                 ## @F_FREELIST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_sge_init_flcntxt            ; -- Begin function t3_sge_init_flcntxt
	.p2align	2
_t3_sge_init_flcntxt:                   ; @t3_sge_init_flcntxt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	tst	w3, #0xfff
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x24, x7
	mov	x22, x6
	mov	x23, x5
	mov	x25, x4
	mov	x26, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w28, [x29, #16]
Lloh2:
	adrp	x8, _A_SG_CONTEXT_CMD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _A_SG_CONTEXT_CMD@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_t3_read_reg
Lloh5:
	adrp	x8, _F_CONTEXT_CMD_BUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _F_CONTEXT_CMD_BUSY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
	asr	w2, w26, #12
Lloh10:
	adrp	x8, _A_SG_CONTEXT_DATA0@GOTPAGE
Lloh11:
	ldr	x8, [x8, _A_SG_CONTEXT_DATA0@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t3_write_reg
Lloh13:
	adrp	x8, _A_SG_CONTEXT_DATA1@GOTPAGE
Lloh14:
	ldr	x8, [x8, _A_SG_CONTEXT_DATA1@GOTPAGEOFF]
Lloh15:
	ldr	w26, [x8]
	bl	_V_FL_BASE_HI
	mov	x27, x0
Lloh16:
	adrp	x8, _M_FL_INDEX_LO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _M_FL_INDEX_LO@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	and	w0, w8, w28
	bl	_V_FL_INDEX_LO
	orr	w2, w0, w27
	mov	x0, x20
	mov	x1, x26
	bl	_t3_write_reg
Lloh19:
	adrp	x8, _A_SG_CONTEXT_DATA2@GOTPAGE
Lloh20:
	ldr	x8, [x8, _A_SG_CONTEXT_DATA2@GOTPAGEOFF]
Lloh21:
	ldr	w26, [x8]
	mov	x0, x25
	bl	_V_FL_SIZE
	mov	x25, x0
	mov	x0, x24
	bl	_V_FL_GEN
	orr	w24, w0, w25
	lsr	w0, w28, #12
	bl	_V_FL_INDEX_HI
	orr	w24, w24, w0
Lloh22:
	adrp	x8, _M_FL_ENTRY_SIZE_LO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _M_FL_ENTRY_SIZE_LO@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	and	w0, w8, w23
	bl	_V_FL_ENTRY_SIZE_LO
	orr	w2, w24, w0
	mov	x0, x20
	mov	x1, x26
	bl	_t3_write_reg
Lloh25:
	adrp	x8, _A_SG_CONTEXT_DATA3@GOTPAGE
Lloh26:
	ldr	x8, [x8, _A_SG_CONTEXT_DATA3@GOTPAGEOFF]
Lloh27:
	ldr	w24, [x8]
Lloh28:
	adrp	x8, _S_FL_ENTRY_SIZE_LO@GOTPAGE
Lloh29:
	ldr	x8, [x8, _S_FL_ENTRY_SIZE_LO@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w8, w8
	lsr	w0, w23, w8
	bl	_V_FL_ENTRY_SIZE_HI
	mov	x23, x0
	mov	x0, x22
	bl	_V_FL_CONG_THRES
	orr	w22, w0, w23
	mov	x0, x21
	bl	_V_FL_GTS
	orr	w2, w22, w0
	mov	x0, x20
	mov	x1, x24
	bl	_t3_write_reg
Lloh31:
	adrp	x8, _F_FREELIST@GOTPAGE
Lloh32:
	ldr	x8, [x8, _F_FREELIST@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_t3_sge_write_context
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_A_SG_CONTEXT_CMD,4,2           ; @A_SG_CONTEXT_CMD
	.comm	_F_CONTEXT_CMD_BUSY,4,2         ; @F_CONTEXT_CMD_BUSY
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_A_SG_CONTEXT_DATA0,4,2         ; @A_SG_CONTEXT_DATA0
	.comm	_A_SG_CONTEXT_DATA1,4,2         ; @A_SG_CONTEXT_DATA1
	.comm	_M_FL_INDEX_LO,4,2              ; @M_FL_INDEX_LO
	.comm	_A_SG_CONTEXT_DATA2,4,2         ; @A_SG_CONTEXT_DATA2
	.comm	_M_FL_ENTRY_SIZE_LO,4,2         ; @M_FL_ENTRY_SIZE_LO
	.comm	_A_SG_CONTEXT_DATA3,4,2         ; @A_SG_CONTEXT_DATA3
	.comm	_S_FL_ENTRY_SIZE_LO,4,2         ; @S_FL_ENTRY_SIZE_LO
	.comm	_F_FREELIST,4,2                 ; @F_FREELIST
.subsections_via_symbols
