	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smi_wait_ready
_smi_wait_ready:                        ## @smi_wait_ready
	.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	%rdi, %r13
	movq	(%rdi), %r14
	movq	_NO_IRQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	callq	_smi_is_done
	cmpq	%rbx, %r14
	jne	LBB0_12
## %bb.1:
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.2:
	movl	$10, %edi
	callq	_msleep
	movq	%r13, %rdi
	callq	_smi_is_done
	testl	%eax, %eax
	jne	LBB0_16
## %bb.3:
	movl	$10, %edi
	callq	_msleep
	movq	%r13, %rdi
	callq	_smi_is_done
	testl	%eax, %eax
	jne	LBB0_16
## %bb.4:
	movl	$10, %edi
	callq	_msleep
	movq	%r13, %rdi
	callq	_smi_is_done
	testl	%eax, %eax
	jne	LBB0_16
## %bb.5:
	movl	$10, %edi
	callq	_msleep
	movq	%r13, %rdi
	callq	_smi_is_done
	testl	%eax, %eax
	jne	LBB0_16
## %bb.6:
	movl	$10, %edi
	callq	_msleep
	movq	%r13, %rdi
	callq	_smi_is_done
	testl	%eax, %eax
	jne	LBB0_16
## %bb.7:
	movl	$10, %edi
	callq	_msleep
	movq	%r13, %rdi
	callq	_smi_is_done
	testl	%eax, %eax
	jne	LBB0_16
## %bb.8:
	movl	$10, %edi
	callq	_msleep
	movq	%r13, %rdi
	callq	_smi_is_done
	testl	%eax, %eax
	jne	LBB0_16
## %bb.9:
	movl	$10, %edi
	callq	_msleep
	movq	%r13, %rdi
	callq	_smi_is_done
	testl	%eax, %eax
	jne	LBB0_16
## %bb.10:
	movl	$10, %edi
	callq	_msleep
	movq	%r13, %rdi
	callq	_smi_is_done
	testl	%eax, %eax
	jne	LBB0_16
## %bb.11:
	movl	$10, %edi
	callq	_msleep
	jmp	LBB0_14
LBB0_12:
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:
	movl	8(%r13), %r15d
	movq	%r13, %rdi
	callq	_smi_is_done
	movl	%eax, %r12d
	movl	$100, %edi
	callq	_msecs_to_jiffies
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_wait_event_timeout
LBB0_14:
	movq	%r13, %rdi
	callq	_smi_is_done
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NO_IRQ,8,3                     ## @NO_IRQ
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_smi_wait_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smi_wait_ready
_smi_wait_ready:                        ; @smi_wait_ready
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, [x0]
Lloh0:
	adrp	x8, _NO_IRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NO_IRQ@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	bl	_smi_is_done
	cmp	x20, x21
	b.ne	LBB0_12
; %bb.1:
	cbnz	w0, LBB0_15
; %bb.2:
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	bl	_smi_is_done
	cbnz	w0, LBB0_15
; %bb.3:
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	bl	_smi_is_done
	cbnz	w0, LBB0_15
; %bb.4:
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	bl	_smi_is_done
	cbnz	w0, LBB0_15
; %bb.5:
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	bl	_smi_is_done
	cbnz	w0, LBB0_15
; %bb.6:
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	bl	_smi_is_done
	cbnz	w0, LBB0_15
; %bb.7:
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	bl	_smi_is_done
	cbnz	w0, LBB0_15
; %bb.8:
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	bl	_smi_is_done
	cbnz	w0, LBB0_15
; %bb.9:
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	bl	_smi_is_done
	cbnz	w0, LBB0_15
; %bb.10:
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	bl	_smi_is_done
	cbnz	w0, LBB0_15
; %bb.11:
	mov	w0, #10
	bl	_msleep
	b	LBB0_14
LBB0_12:
	cbnz	w0, LBB0_15
; %bb.13:
	ldr	w20, [x19, #8]
	mov	x0, x19
	bl	_smi_is_done
	mov	x21, x0
	mov	w0, #100
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_wait_event_timeout
LBB0_14:
	mov	x0, x19
	bl	_smi_is_done
	cbz	w0, LBB0_17
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_17:
Lloh3:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NO_IRQ,8,3                     ; @NO_IRQ
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_smi_wait_ready
.subsections_via_symbols
