	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wait_conversion_complete_irq
_wait_conversion_complete_irq:          ## @wait_conversion_complete_irq
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %r14d
	movq	_GP2AP020A00F_FLAG_DATA_READY@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	movq	_GP2AP020A00F_DATA_READY_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_wait_event_timeout
	movl	%eax, %r14d
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_ETIME@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	xorl	%ecx, %ecx
	testl	%r14d, %r14d
	cmovgl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GP2AP020A00F_FLAG_DATA_READY,4,2 ## @GP2AP020A00F_FLAG_DATA_READY
	.comm	_GP2AP020A00F_DATA_READY_TIMEOUT,4,2 ## @GP2AP020A00F_DATA_READY_TIMEOUT
	.comm	_ETIME,4,2                      ## @ETIME
	.no_dead_strip	_wait_conversion_complete_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wait_conversion_complete_irq
_wait_conversion_complete_irq:          ; @wait_conversion_complete_irq
	.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	w20, [x0, #4]
Lloh0:
	adrp	x21, _GP2AP020A00F_FLAG_DATA_READY@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GP2AP020A00F_FLAG_DATA_READY@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x19
	bl	_test_bit
	mov	x1, x0
Lloh2:
	adrp	x8, _GP2AP020A00F_DATA_READY_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GP2AP020A00F_DATA_READY_TIMEOUT@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_wait_event_timeout
	mov	x20, x0
	ldr	w0, [x21]
	mov	x1, x19
	bl	_clear_bit
Lloh5:
	adrp	x8, _ETIME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w20, #0
	csneg	w0, wzr, w8, gt
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GP2AP020A00F_FLAG_DATA_READY,4,2 ; @GP2AP020A00F_FLAG_DATA_READY
	.comm	_GP2AP020A00F_DATA_READY_TIMEOUT,4,2 ; @GP2AP020A00F_DATA_READY_TIMEOUT
	.comm	_ETIME,4,2                      ; @ETIME
	.no_dead_strip	_wait_conversion_complete_irq
.subsections_via_symbols
