	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_sge_init_ecntxt             ## -- Begin function t3_sge_init_ecntxt
	.p2align	4, 0x90
_t3_sge_init_ecntxt:                    ## @t3_sge_init_ecntxt
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	_SGE_CNTXT_OFLD@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_FW_WR_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_2:
	testl	$4095, %r13d                    ## imm = 0xFFF
	je	LBB0_5
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_5:
	movl	%r8d, -64(%rbp)                 ## 4-byte Spill
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movl	40(%rbp), %ebx
	movl	32(%rbp), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	24(%rbp), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	16(%rbp), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_A_SG_CONTEXT_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_t3_read_reg
	movq	_F_CONTEXT_CMD_BUSY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%r13d, %eax
	shrl	$12, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_A_SG_CONTEXT_DATA0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_V_EC_INDEX
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_V_EC_CREDITS
	movl	%eax, %r12d
	movl	%r14d, %edi
	callq	_V_EC_GTS
	orl	%eax, %ebx
	orl	%r12d, %ebx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_t3_write_reg
	movq	_A_SG_CONTEXT_DATA1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_V_EC_SIZE
	movl	%eax, %ebx
	movzwl	-48(%rbp), %edi                 ## 2-byte Folded Reload
	callq	_V_EC_BASE_LO
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_t3_write_reg
	sarl	$28, %r13d
	movq	_A_SG_CONTEXT_DATA2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_t3_write_reg
	movq	_A_SG_CONTEXT_DATA3@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_V_EC_BASE_HI
	movl	%eax, %ebx
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_V_EC_RESPQ
	orl	%eax, %ebx
	movl	%r15d, %edi
	callq	_V_EC_TYPE
	orl	%eax, %ebx
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_V_EC_GEN
	orl	%eax, %ebx
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_V_EC_UP_TOKEN
	orl	%eax, %ebx
	movq	_F_EC_VALID@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_t3_write_reg
	movq	_F_EGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_t3_sge_write_context           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SGE_CNTXT_OFLD,4,2             ## @SGE_CNTXT_OFLD
	.comm	_FW_WR_NUM,4,2                  ## @FW_WR_NUM
	.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	_A_SG_CONTEXT_DATA2,4,2         ## @A_SG_CONTEXT_DATA2
	.comm	_A_SG_CONTEXT_DATA3,4,2         ## @A_SG_CONTEXT_DATA3
	.comm	_F_EC_VALID,4,2                 ## @F_EC_VALID
	.comm	_F_EGRESS,4,2                   ## @F_EGRESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_sge_init_ecntxt             ; -- Begin function t3_sge_init_ecntxt
	.p2align	2
_t3_sge_init_ecntxt:                    ; @t3_sge_init_ecntxt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, _SGE_CNTXT_OFLD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SGE_CNTXT_OFLD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FW_WR_NUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FW_WR_NUM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w3
	csel	w28, wzr, w9, eq
	tst	w5, #0xfff
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x21, x7
	mov	x26, x6
	mov	x25, x5
	mov	x23, x4
	mov	x22, x3
	mov	x27, x2
	mov	x19, x1
	mov	x20, x0
	ldp	w8, w24, [x29, #16]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh8:
	adrp	x8, _A_SG_CONTEXT_CMD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _A_SG_CONTEXT_CMD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_t3_read_reg
Lloh11:
	adrp	x8, _F_CONTEXT_CMD_BUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _F_CONTEXT_CMD_BUSY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.3:
Lloh14:
	adrp	x8, _EBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
Lloh16:
	adrp	x8, _A_SG_CONTEXT_DATA0@GOTPAGE
Lloh17:
	ldr	x8, [x8, _A_SG_CONTEXT_DATA0@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	mov	x0, x24
	bl	_V_EC_INDEX
	mov	x24, x0
	mov	x0, x28
	bl	_V_EC_CREDITS
	orr	w24, w0, w24
	mov	x0, x27
	bl	_V_EC_GTS
	orr	w2, w24, w0
	mov	x0, x20
	ldr	w1, [sp, #8]                    ; 4-byte Folded Reload
	bl	_t3_write_reg
Lloh19:
	adrp	x8, _A_SG_CONTEXT_DATA1@GOTPAGE
Lloh20:
	ldr	x8, [x8, _A_SG_CONTEXT_DATA1@GOTPAGEOFF]
Lloh21:
	ldr	w24, [x8]
	mov	x0, x26
	bl	_V_EC_SIZE
	mov	x26, x0
	ubfx	w0, w25, #12, #16
	bl	_V_EC_BASE_LO
	orr	w2, w0, w26
	mov	x0, x20
	mov	x1, x24
	bl	_t3_write_reg
	asr	w2, w25, #28
Lloh22:
	adrp	x8, _A_SG_CONTEXT_DATA2@GOTPAGE
Lloh23:
	ldr	x8, [x8, _A_SG_CONTEXT_DATA2@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x20
	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]
	bl	_V_EC_BASE_HI
	mov	x25, x0
	mov	x0, x23
	bl	_V_EC_RESPQ
	orr	w23, w0, w25
	mov	x0, x22
	bl	_V_EC_TYPE
	orr	w22, w23, w0
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	bl	_V_EC_GEN
	orr	w22, w22, w0
	mov	x0, x21
	bl	_V_EC_UP_TOKEN
	orr	w8, w22, w0
Lloh28:
	adrp	x9, _F_EC_VALID@GOTPAGE
Lloh29:
	ldr	x9, [x9, _F_EC_VALID@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x20
	mov	x1, x24
	bl	_t3_write_reg
Lloh31:
	adrp	x8, _F_EGRESS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _F_EGRESS@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_t3_sge_write_context
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_SGE_CNTXT_OFLD,4,2             ; @SGE_CNTXT_OFLD
	.comm	_FW_WR_NUM,4,2                  ; @FW_WR_NUM
	.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	_A_SG_CONTEXT_DATA2,4,2         ; @A_SG_CONTEXT_DATA2
	.comm	_A_SG_CONTEXT_DATA3,4,2         ; @A_SG_CONTEXT_DATA3
	.comm	_F_EC_VALID,4,2                 ; @F_EC_VALID
	.comm	_F_EGRESS,4,2                   ; @F_EGRESS
.subsections_via_symbols
