	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sirf_wait_for_power_state_nowakeup
_sirf_wait_for_power_state_nowakeup:    ## @sirf_wait_for_power_state_nowakeup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	%rdx, %rdi
	callq	_msleep
	movl	$0, (%rbx)
	movl	4(%rbx), %ebx
	movq	_SIRF_REPORT_CYCLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_wait_event_interruptible_timeout
	movl	%eax, %ecx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	testl	%r14d, %r14d
	jne	LBB0_4
## %bb.3:
	testl	%ecx, %ecx
	jne	LBB0_6
LBB0_4:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.5:
	testl	%ecx, %ecx
	jne	LBB0_7
LBB0_6:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_1:
	movl	%ecx, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIRF_REPORT_CYCLE,4,2          ## @SIRF_REPORT_CYCLE
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_sirf_wait_for_power_state_nowakeup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sirf_wait_for_power_state_nowakeup
_sirf_wait_for_power_state_nowakeup:    ; @sirf_wait_for_power_state_nowakeup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	mov	x0, x2
	bl	_msleep
	str	wzr, [x20]
	ldr	w20, [x20, #4]
Lloh0:
	adrp	x8, _SIRF_REPORT_CYCLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIRF_REPORT_CYCLE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_wait_event_interruptible_timeout
	mov	x8, x0
	tbnz	w0, #31, LBB0_6
; %bb.1:
	cbnz	w19, LBB0_3
; %bb.2:
	cbnz	w8, LBB0_5
LBB0_3:
	mov	w0, #0
	cbz	w19, LBB0_7
; %bb.4:
	cbnz	w8, LBB0_7
LBB0_5:
Lloh3:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	x0, x8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SIRF_REPORT_CYCLE,4,2          ; @SIRF_REPORT_CYCLE
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_sirf_wait_for_power_state_nowakeup
.subsections_via_symbols
