	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siena_mcdi_poll_reboot
_siena_mcdi_poll_reboot:                ## @siena_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, %r14
	movq	(%rdi), %r12
	movq	_FR_CZ_MC_TREG_SMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	callq	_MCDI_STATUS
	movl	%eax, %ebx
	addl	%r15d, %ebx
	leaq	-36(%rbp), %rsi
	movq	%r14, %rdi
	movl	%ebx, %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_1
## %bb.2:
	movq	%rax, %r15
	movl	-36(%rbp), %edi
	callq	_EFX_ZERO_DWORD
	leaq	-36(%rbp), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_efx_writed
	movq	(%r12), %rax
	movq	_SIENA_STAT_tx_good_bytes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	_SIENA_STAT_rx_good_bytes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	_MC_STATUS_DWORD_ASSERT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_4
## %bb.3:
	movq	_EINTR@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	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_DWORD_0,4,2                ## @EFX_DWORD_0
	.comm	_SIENA_STAT_tx_good_bytes,8,3   ## @SIENA_STAT_tx_good_bytes
	.comm	_SIENA_STAT_rx_good_bytes,8,3   ## @SIENA_STAT_rx_good_bytes
	.comm	_MC_STATUS_DWORD_ASSERT,8,3     ## @MC_STATUS_DWORD_ASSERT
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_siena_mcdi_poll_reboot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function siena_mcdi_poll_reboot
_siena_mcdi_poll_reboot:                ; @siena_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
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _FR_CZ_MC_TREG_SMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FR_CZ_MC_TREG_SMEM@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_MCDI_STATUS
	add	w20, w0, w20
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x20
	bl	_efx_readd
	ldr	w0, [sp, #12]
Lloh3:
	adrp	x8, _EFX_DWORD_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFX_DWORD_0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_EFX_DWORD_FIELD
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	w0, [sp, #12]
	bl	_EFX_ZERO_DWORD
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x20
	bl	_efx_writed
	ldr	x8, [x22]
Lloh6:
	adrp	x9, _SIENA_STAT_tx_good_bytes@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SIENA_STAT_tx_good_bytes@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	str	xzr, [x8, x9, lsl #3]
Lloh9:
	adrp	x9, _SIENA_STAT_rx_good_bytes@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SIENA_STAT_rx_good_bytes@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	str	xzr, [x8, x9, lsl #3]
Lloh12:
	adrp	x8, _MC_STATUS_DWORD_ASSERT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MC_STATUS_DWORD_ASSERT@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_3
; %bb.2:
Lloh15:
	adrp	x8, _EINTR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_FR_CZ_MC_TREG_SMEM,4,2         ; @FR_CZ_MC_TREG_SMEM
	.comm	_EFX_DWORD_0,4,2                ; @EFX_DWORD_0
	.comm	_SIENA_STAT_tx_good_bytes,8,3   ; @SIENA_STAT_tx_good_bytes
	.comm	_SIENA_STAT_rx_good_bytes,8,3   ; @SIENA_STAT_rx_good_bytes
	.comm	_MC_STATUS_DWORD_ASSERT,8,3     ; @MC_STATUS_DWORD_ASSERT
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_siena_mcdi_poll_reboot
.subsections_via_symbols
