	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_sge_ctxt_rd                 ## -- Begin function t4_sge_ctxt_rd
	.p2align	4, 0x90
_t4_sge_ctxt_rd:                        ## @t4_sge_ctxt_rd
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movl	%edx, %r13d
	movq	_CTXT_FLM@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	jne	LBB0_1
## %bb.2:
	movq	_FW_LDST_ADDRSPC_SGE_FLMC@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_FW_LDST_ADDRSPC_SGE_CONMC@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r14d
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_FW_LDST_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FW_CMD_OP_V
	movl	%eax, %r15d
	movq	_FW_CMD_REQUEST_F@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_FW_CMD_READ_F@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	%r14d, %edi
	callq	_FW_LDST_CMD_ADDRSPACE_V
	orl	%eax, %r15d
	movl	%r15d, %edi
	callq	_cpu_to_be32
	movq	%rax, -56(%rbp)
	movups	-96(%rbp), %xmm0
	movups	-80(%rbp), %xmm1
	movups	-64(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_FW_LEN16
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	%rax, -64(%rbp)
	movl	%r13d, %edi
	callq	_cpu_to_be32
	movq	%rax, -72(%rbp)
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%rbx, %rdx
	movl	$48, %ecx
	movq	%rbx, %r8
	callq	_t4_wr_mbox
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	-76(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, (%r12)
	movl	-80(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, 4(%r12)
	movl	-84(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, 8(%r12)
	movl	-88(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, 12(%r12)
	movl	-92(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, 16(%r12)
	movl	-96(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, 20(%r12)
LBB0_5:
	movl	%ebx, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTXT_FLM,4,2                   ## @CTXT_FLM
	.comm	_FW_LDST_ADDRSPC_SGE_FLMC,4,2   ## @FW_LDST_ADDRSPC_SGE_FLMC
	.comm	_FW_LDST_ADDRSPC_SGE_CONMC,4,2  ## @FW_LDST_ADDRSPC_SGE_CONMC
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_sge_ctxt_rd                 ; -- Begin function t4_sge_ctxt_rd
	.p2align	2
_t4_sge_ctxt_rd:                        ; @t4_sge_ctxt_rd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x19, x4
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _CTXT_FLM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTXT_FLM@GOTPAGEOFF]
Lloh2:
	adrp	x9, _FW_LDST_ADDRSPC_SGE_FLMC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FW_LDST_ADDRSPC_SGE_FLMC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x10, _FW_LDST_ADDRSPC_SGE_CONMC@GOTPAGE
Lloh6:
	ldr	x10, [x10, _FW_LDST_ADDRSPC_SGE_CONMC@GOTPAGEOFF]
	cmp	w8, w3
	csel	x8, x9, x10, eq
	ldr	w23, [x8]
	add	x0, sp, #48
	mov	w1, #0
	mov	w2, #48
	bl	_memset
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]
	orr	w8, w8, w0
Lloh13:
	adrp	x9, _FW_CMD_READ_F@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FW_CMD_READ_F@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w24, w8, w9
	mov	x0, x23
	bl	_FW_LDST_CMD_ADDRSPACE_V
	orr	w0, w24, w0
	bl	_cpu_to_be32
	str	x0, [sp, #88]
	ldp	q0, q1, [sp, #48]
	stp	q0, q1, [sp]
	ldr	q0, [sp, #80]
	str	q0, [sp, #32]
	mov	x0, sp
	bl	_FW_LEN16
	bl	_cpu_to_be32
	str	x0, [sp, #80]
	mov	x0, x22
	bl	_cpu_to_be32
	str	x0, [sp, #72]
	add	x2, sp, #48
	add	x4, sp, #48
	mov	x0, x21
	mov	x1, x20
	mov	w3, #48
	bl	_t4_wr_mbox
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [sp, #68]
	bl	_be32_to_cpu
	str	w0, [x19]
	ldr	w0, [sp, #64]
	bl	_be32_to_cpu
	str	w0, [x19, #4]
	ldr	w0, [sp, #60]
	bl	_be32_to_cpu
	str	w0, [x19, #8]
	ldr	w0, [sp, #56]
	bl	_be32_to_cpu
	str	w0, [x19, #12]
	ldr	w0, [sp, #52]
	bl	_be32_to_cpu
	str	w0, [x19, #16]
	ldr	w0, [sp, #48]
	bl	_be32_to_cpu
	str	w0, [x19, #20]
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.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_FLM,4,2                   ; @CTXT_FLM
	.comm	_FW_LDST_ADDRSPC_SGE_FLMC,4,2   ; @FW_LDST_ADDRSPC_SGE_FLMC
	.comm	_FW_LDST_ADDRSPC_SGE_CONMC,4,2  ; @FW_LDST_ADDRSPC_SGE_CONMC
	.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
.subsections_via_symbols
