	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_mcdi_copyout
_efx_mcdi_copyout:                      ## @efx_mcdi_copyout
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	callq	_efx_mcdi
	movq	%rax, %r13
	movq	_FR_CZ_MC_TREG_SMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_MCDI_PDU
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_atomic_read
	movq	_MCDI_STATE_QUIESCENT@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_BUG_ON
	testb	$3, %r12b
	setne	%al
	movq	_MC_SMEM_PDU_LEN@GOTPCREL(%rip), %rcx
	cmpq	%r12, (%rcx)
	setbe	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_BUG_ON
	testq	%r12, %r12
	je	LBB0_3
## %bb.1:
	leal	(%rbx,%r14), %r13d
	addl	$4, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	4(%rbx), %r14
	leal	(%rbx,%r13), %esi
	movq	%r15, %rdi
	callq	__efx_readd
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rbx,4)
	movq	%r14, %rbx
	cmpq	%r12, %r14
	jb	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FR_CZ_MC_TREG_SMEM,4,2         ## @FR_CZ_MC_TREG_SMEM
	.comm	_MCDI_STATE_QUIESCENT,8,3       ## @MCDI_STATE_QUIESCENT
	.comm	_MC_SMEM_PDU_LEN,8,3            ## @MC_SMEM_PDU_LEN
	.no_dead_strip	_efx_mcdi_copyout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_mcdi_copyout
_efx_mcdi_copyout:                      ; @efx_mcdi_copyout
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
	mov	x21, x0
	bl	_efx_mcdi
	mov	x23, x0
Lloh0:
	adrp	x8, _FR_CZ_MC_TREG_SMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FR_CZ_MC_TREG_SMEM@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	mov	x0, x21
	bl	_MCDI_PDU
	mov	x22, x0
	mov	x0, x23
	bl	_atomic_read
Lloh3:
	adrp	x8, _MCDI_STATE_QUIESCENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MCDI_STATE_QUIESCENT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_BUG_ON
	tst	x19, #0x3
Lloh6:
	adrp	x8, _MC_SMEM_PDU_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MC_SMEM_PDU_LEN@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ccmp	x8, x19, #0, eq
	cset	w0, ls
	bl	_BUG_ON
	cbz	x19, LBB0_3
; %bb.1:
	mov	x23, #0
	add	w8, w22, w24
	add	w22, w8, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x24, x23, #4
	add	w1, w22, w23
	mov	x0, x21
	bl	__efx_readd
	str	w0, [x20, x23, lsl #2]
	mov	x23, x24
	cmp	x24, x19
	b.lo	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FR_CZ_MC_TREG_SMEM,4,2         ; @FR_CZ_MC_TREG_SMEM
	.comm	_MCDI_STATE_QUIESCENT,8,3       ; @MCDI_STATE_QUIESCENT
	.comm	_MC_SMEM_PDU_LEN,8,3            ; @MC_SMEM_PDU_LEN
	.no_dead_strip	_efx_mcdi_copyout
.subsections_via_symbols
