	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_sge_ctxt_flush              ## -- Begin function t4_sge_ctxt_flush
	.p2align	4, 0x90
_t4_sge_ctxt_flush:                     ## @t4_sge_ctxt_flush
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r12
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_CTXT_EGRESS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_FW_LDST_ADDRSPC_SGE_EGRC@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_FW_LDST_ADDRSPC_SGE_INGC@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	callq	_FW_LDST_CMD_ADDRSPACE_V
	movl	%eax, %ebx
	movq	_FW_LDST_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FW_CMD_OP_V
	movq	_FW_CMD_REQUEST_F@GOTPCREL(%rip), %rcx
	movq	_FW_CMD_READ_F@GOTPCREL(%rip), %rdx
	orl	%eax, %ebx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rax
	movq	%rax, 16(%rsp)
	movups	-56(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	callq	_FW_LEN16
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	%rax, -48(%rbp)
	movq	_FW_LDST_CMD_CTXTFLUSH_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, -56(%rbp)
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	movl	$24, %ecx
	movq	%r14, %r8
	callq	_t4_wr_mbox
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTXT_EGRESS,4,2                ## @CTXT_EGRESS
	.comm	_FW_LDST_ADDRSPC_SGE_EGRC,4,2   ## @FW_LDST_ADDRSPC_SGE_EGRC
	.comm	_FW_LDST_ADDRSPC_SGE_INGC,4,2   ## @FW_LDST_ADDRSPC_SGE_INGC
	.comm	_FW_LDST_CMD,4,2                ## @FW_LDST_CMD
	.comm	_FW_CMD_REQUEST_F,4,2           ## @FW_CMD_REQUEST_F
	.comm	_FW_CMD_READ_F,4,2              ## @FW_CMD_READ_F
	.comm	_FW_LDST_CMD_CTXTFLUSH_F,4,2    ## @FW_LDST_CMD_CTXTFLUSH_F
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_sge_ctxt_flush              ; -- Begin function t4_sge_ctxt_flush
	.p2align	2
_t4_sge_ctxt_flush:                     ; @t4_sge_ctxt_flush
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _CTXT_EGRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTXT_EGRESS@GOTPAGEOFF]
Lloh2:
	adrp	x9, _FW_LDST_ADDRSPC_SGE_EGRC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FW_LDST_ADDRSPC_SGE_EGRC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x10, _FW_LDST_ADDRSPC_SGE_INGC@GOTPAGE
Lloh6:
	ldr	x10, [x10, _FW_LDST_ADDRSPC_SGE_INGC@GOTPAGEOFF]
	cmp	w8, w21
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
	bl	_FW_LDST_CMD_ADDRSPACE_V
	mov	x21, x0
Lloh7:
	adrp	x8, _FW_LDST_CMD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FW_LDST_CMD@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_FW_CMD_OP_V
Lloh10:
	adrp	x8, _FW_CMD_REQUEST_F@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FW_CMD_REQUEST_F@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _FW_CMD_READ_F@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FW_CMD_READ_F@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w10, w0, w21
	orr	w8, w10, w8
	orr	w0, w8, w9
	bl	_cpu_to_be32
	str	x0, [sp, #40]
	ldur	q0, [sp, #24]
	str	q0, [sp]
	str	x0, [sp, #16]
	mov	x0, sp
	bl	_FW_LEN16
	bl	_cpu_to_be32
	str	x0, [sp, #32]
Lloh16:
	adrp	x8, _FW_LDST_CMD_CTXTFLUSH_F@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FW_LDST_CMD_CTXTFLUSH_F@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_cpu_to_be32
	str	x0, [sp, #24]
	add	x2, sp, #24
	add	x4, sp, #24
	mov	x0, x20
	mov	x1, x19
	mov	w3, #24
	bl	_t4_wr_mbox
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CTXT_EGRESS,4,2                ; @CTXT_EGRESS
	.comm	_FW_LDST_ADDRSPC_SGE_EGRC,4,2   ; @FW_LDST_ADDRSPC_SGE_EGRC
	.comm	_FW_LDST_ADDRSPC_SGE_INGC,4,2   ; @FW_LDST_ADDRSPC_SGE_INGC
	.comm	_FW_LDST_CMD,4,2                ; @FW_LDST_CMD
	.comm	_FW_CMD_REQUEST_F,4,2           ; @FW_CMD_REQUEST_F
	.comm	_FW_CMD_READ_F,4,2              ; @FW_CMD_READ_F
	.comm	_FW_LDST_CMD_CTXTFLUSH_F,4,2    ; @FW_LDST_CMD_CTXTFLUSH_F
.subsections_via_symbols
