	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda18250_wait_for_irq
_tda18250_wait_for_irq:                 ## @tda18250_wait_for_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	(%rdi), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_i2c_get_clientdata
	movq	%rax, %r14
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movq	%rax, %rbx
	callq	_msecs_to_jiffies
	movq	%rax, %r15
	addq	%r12, %r15
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	callq	_time_after
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	movq	(%rbx), %rdi
	callq	_jiffies_to_msecs
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_jiffies_to_msecs
	addl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	subl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.2(%rip), %r8
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_dev_dbg
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_R08_IRQ1@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movl	(%r12), %esi
	leaq	-52(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-52(%rbp), %eax
	notl	%eax
	testl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edi
	callq	_msleep
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	callq	_time_after
	testl	%eax, %eax
	je	LBB0_2
	jmp	LBB0_5
LBB0_7:
	movq	(%rbx), %rdi
	callq	_jiffies_to_msecs
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_jiffies_to_msecs
	addl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	subl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %r8
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	callq	_dev_dbg
	xorl	%eax, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_R08_IRQ1,4,2                   ## @R08_IRQ1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"waited IRQ (0x%02x) %d ms, triggered: %s"

L_.str.1:                               ## @.str.1
	.asciz	"true"

L_.str.2:                               ## @.str.2
	.asciz	"false"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_tda18250_wait_for_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda18250_wait_for_irq
_tda18250_wait_for_irq:                 ; @tda18250_wait_for_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	ldr	x20, [x0]
	mov	x0, x20
	bl	_i2c_get_clientdata
	mov	x24, x0
Lloh0:
	adrp	x25, _jiffies@GOTPAGE
Lloh1:
	ldr	x25, [x25, _jiffies@GOTPAGEOFF]
	ldr	x23, [x25]
	mov	x0, x21
	bl	_msecs_to_jiffies
	add	x23, x0, x23
	ldr	x0, [x25]
	mov	x1, x23
	bl	_time_after
	cbz	w0, LBB0_3
LBB0_1:
	ldr	x0, [x25]
	bl	_jiffies_to_msecs
	mov	x22, x0
	mov	x0, x23
	bl	_jiffies_to_msecs
	add	w8, w22, w21
	sub	w3, w8, w0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
Lloh4:
	adrp	x4, l_.str.2@PAGE
Lloh5:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_dev_dbg
Lloh6:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_3:
Lloh9:
	adrp	x26, _R08_IRQ1@GOTPAGE
Lloh10:
	ldr	x26, [x26, _R08_IRQ1@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	ldr	w1, [x26]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	bics	wzr, w19, w8
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_msleep
	ldr	x0, [x25]
	mov	x1, x23
	bl	_time_after
	cbz	w0, LBB0_4
	b	LBB0_1
LBB0_7:
	ldr	x0, [x25]
	bl	_jiffies_to_msecs
	mov	x22, x0
	mov	x0, x23
	bl	_jiffies_to_msecs
	add	w8, w22, w21
	sub	w3, w8, w0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
Lloh13:
	adrp	x4, l_.str.1@PAGE
Lloh14:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_dev_dbg
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_R08_IRQ1,4,2                   ; @R08_IRQ1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"waited IRQ (0x%02x) %d ms, triggered: %s"

l_.str.1:                               ; @.str.1
	.asciz	"true"

l_.str.2:                               ; @.str.2
	.asciz	"false"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_tda18250_wait_for_irq
.subsections_via_symbols
