	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_mcdi_poll_reboot           ## -- Begin function efx_mcdi_poll_reboot
	.p2align	4, 0x90
_efx_mcdi_poll_reboot:                  ## @efx_mcdi_poll_reboot
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_FR_CZ_MC_TREG_SMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	callq	_MCDI_STATUS
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_efx_nic_rev
	movq	_EFX_REV_SIENA_A0@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jl	LBB0_6
## %bb.1:
	addl	%r12d, %r15d
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_efx_readd
	movl	-36(%rbp), %edi
	movq	_EFX_DWORD_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EFX_DWORD_FIELD
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r12
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	-36(%rbp), %edi
	callq	_EFX_ZERO_DWORD
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_efx_writed
	movq	_MC_STATUS_DWORD_ASSERT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_4
## %bb.3:
	movq	_EINTR@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_5:
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	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	_EFX_REV_SIENA_A0,8,3           ## @EFX_REV_SIENA_A0
	.comm	_EFX_DWORD_0,4,2                ## @EFX_DWORD_0
	.comm	_MC_STATUS_DWORD_ASSERT,8,3     ## @MC_STATUS_DWORD_ASSERT
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_mcdi_poll_reboot           ; -- Begin function efx_mcdi_poll_reboot
	.p2align	2
_efx_mcdi_poll_reboot:                  ; @efx_mcdi_poll_reboot
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _FR_CZ_MC_TREG_SMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FR_CZ_MC_TREG_SMEM@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	bl	_MCDI_STATUS
	mov	x20, x0
	mov	x0, x19
	bl	_efx_nic_rev
Lloh3:
	adrp	x8, _EFX_REV_SIENA_A0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFX_REV_SIENA_A0@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_7
LBB0_2:
	add	w20, w20, w21
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x20
	bl	_efx_readd
	ldr	w0, [sp, #12]
Lloh6:
	adrp	x8, _EFX_DWORD_0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFX_DWORD_0@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_EFX_DWORD_FIELD
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [sp, #12]
	bl	_EFX_ZERO_DWORD
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x20
	bl	_efx_writed
Lloh9:
	adrp	x8, _MC_STATUS_DWORD_ASSERT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MC_STATUS_DWORD_ASSERT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _EINTR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_FR_CZ_MC_TREG_SMEM,4,2         ; @FR_CZ_MC_TREG_SMEM
	.comm	_EFX_REV_SIENA_A0,8,3           ; @EFX_REV_SIENA_A0
	.comm	_EFX_DWORD_0,4,2                ; @EFX_DWORD_0
	.comm	_MC_STATUS_DWORD_ASSERT,8,3     ; @MC_STATUS_DWORD_ASSERT
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
