	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucb1400_ts_detect_irq
_ucb1400_ts_detect_irq:                 ## @ucb1400_ts_detect_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
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	xorl	%eax, %eax
	callq	_probe_irq_on
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r12), %edi
	movq	_UCB_IE_RIS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_UCB_IE_ADC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_ucb1400_reg_write
	movl	4(%r12), %edi
	movq	_UCB_IE_FAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	callq	_ucb1400_reg_write
	movl	4(%r12), %edi
	movq	_UCB_IE_CLEAR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_ucb1400_reg_write
	movl	4(%r12), %edi
	movl	(%rbx), %esi
	xorl	%edx, %edx
	callq	_ucb1400_reg_write
	movl	4(%r12), %edi
	movq	_UCB_ADC_CR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_UCB_ADC_ENA@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_ucb1400_reg_write
	movl	4(%r12), %edi
	movl	(%rbx), %esi
	movq	_UCB_ADC_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r14), %edx
	callq	_ucb1400_reg_write
	movq	_jiffies@GOTPCREL(%rip), %r14
	movslq	(%r14), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movslq	%edx, %rbx
	addq	%rax, %rbx
	movq	_UCB_ADC_DATA@GOTPCREL(%rip), %r13
	movq	_UCB_ADC_DAT_VALID@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %edi
	movl	(%r13), %esi
	callq	_ucb1400_reg_read
	testl	%eax, (%r15)
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_probe_irq_off
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_7
LBB0_4:
	movl	4(%r12), %edi
	movq	_UCB_ADC_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	callq	_ucb1400_reg_write
	movl	4(%r12), %edi
	movq	_UCB_IE_RIS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_ucb1400_reg_write
	movl	4(%r12), %edi
	movq	_UCB_IE_FAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_ucb1400_reg_write
	movl	4(%r12), %edi
	movq	_UCB_IE_CLEAR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_ucb1400_reg_write
	movl	4(%r12), %edi
	movl	(%rbx), %esi
	xorl	%edx, %edx
	callq	_ucb1400_reg_write
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_probe_irq_off
	movl	%eax, (%r12)
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movq	_NO_IRQ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
LBB0_7:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UCB_IE_RIS,4,2                 ## @UCB_IE_RIS
	.comm	_UCB_IE_ADC,4,2                 ## @UCB_IE_ADC
	.comm	_UCB_IE_FAL,4,2                 ## @UCB_IE_FAL
	.comm	_UCB_IE_CLEAR,4,2               ## @UCB_IE_CLEAR
	.comm	_UCB_ADC_CR,4,2                 ## @UCB_ADC_CR
	.comm	_UCB_ADC_ENA,4,2                ## @UCB_ADC_ENA
	.comm	_UCB_ADC_START,4,2              ## @UCB_ADC_START
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_UCB_ADC_DATA,4,2               ## @UCB_ADC_DATA
	.comm	_UCB_ADC_DAT_VALID,4,2          ## @UCB_ADC_DAT_VALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timed out in IRQ probe\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_NO_IRQ,4,2                     ## @NO_IRQ
	.no_dead_strip	_ucb1400_ts_detect_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucb1400_ts_detect_irq
_ucb1400_ts_detect_irq:                 ; @ucb1400_ts_detect_irq
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x20, x0
	bl	_probe_irq_on
	mov	x19, x0
	ldr	w0, [x20, #4]
Lloh0:
	adrp	x8, _UCB_IE_RIS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UCB_IE_RIS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x22, _UCB_IE_ADC@GOTPAGE
Lloh4:
	ldr	x22, [x22, _UCB_IE_ADC@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_ucb1400_reg_write
	ldr	w0, [x20, #4]
Lloh5:
	adrp	x25, _UCB_IE_FAL@GOTPAGE
Lloh6:
	ldr	x25, [x25, _UCB_IE_FAL@GOTPAGEOFF]
	ldr	w1, [x25]
	ldr	w2, [x22]
	bl	_ucb1400_reg_write
	ldr	w0, [x20, #4]
Lloh7:
	adrp	x23, _UCB_IE_CLEAR@GOTPAGE
Lloh8:
	ldr	x23, [x23, _UCB_IE_CLEAR@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w2, #65535
	bl	_ucb1400_reg_write
	ldr	w0, [x20, #4]
	ldr	w1, [x23]
	mov	w2, #0
	bl	_ucb1400_reg_write
	ldr	w0, [x20, #4]
Lloh9:
	adrp	x26, _UCB_ADC_CR@GOTPAGE
Lloh10:
	ldr	x26, [x26, _UCB_ADC_CR@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh11:
	adrp	x22, _UCB_ADC_ENA@GOTPAGE
Lloh12:
	ldr	x22, [x22, _UCB_ADC_ENA@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_ucb1400_reg_write
	ldr	w0, [x20, #4]
	ldr	w1, [x26]
	ldr	w8, [x22]
Lloh13:
	adrp	x9, _UCB_ADC_START@GOTPAGE
Lloh14:
	ldr	x9, [x9, _UCB_ADC_START@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_ucb1400_reg_write
Lloh16:
	adrp	x27, _jiffies@GOTPAGE
Lloh17:
	ldr	x27, [x27, _jiffies@GOTPAGEOFF]
	ldrsw	x8, [x27]
Lloh18:
	adrp	x9, _HZ@GOTPAGE
Lloh19:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	add	x22, x8, w9, sxtw
Lloh21:
	adrp	x28, _UCB_ADC_DATA@GOTPAGE
Lloh22:
	ldr	x28, [x28, _UCB_ADC_DATA@GOTPAGEOFF]
Lloh23:
	adrp	x24, _UCB_ADC_DAT_VALID@GOTPAGE
Lloh24:
	ldr	x24, [x24, _UCB_ADC_DAT_VALID@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #4]
	ldr	w1, [x28]
	bl	_ucb1400_reg_read
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_cpu_relax
	ldr	w0, [x27]
	mov	x1, x22
	bl	_time_after
	cbz	x0, LBB0_1
; %bb.3:
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	mov	x0, x19
	bl	_probe_irq_off
LBB0_4:
Lloh27:
	adrp	x8, _ENODEV@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	ldr	w0, [x20, #4]
	ldr	w1, [x26]
	mov	w2, #0
	bl	_ucb1400_reg_write
	ldr	w0, [x20, #4]
Lloh30:
	adrp	x8, _UCB_IE_RIS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _UCB_IE_RIS@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_ucb1400_reg_write
	ldr	w0, [x20, #4]
	ldr	w1, [x25]
	mov	w2, #0
	bl	_ucb1400_reg_write
	ldr	w0, [x20, #4]
	ldr	w1, [x23]
	mov	w2, #65535
	bl	_ucb1400_reg_write
	ldr	w0, [x20, #4]
	ldr	w1, [x23]
	mov	w2, #0
	bl	_ucb1400_reg_write
	mov	x0, x19
	bl	_probe_irq_off
	str	w0, [x20]
	tbnz	w0, #31, LBB0_4
; %bb.6:
	mov	x8, x0
	mov	w0, #0
Lloh33:
	adrp	x9, _NO_IRQ@GOTPAGE
Lloh34:
	ldr	x9, [x9, _NO_IRQ@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_4
LBB0_7:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_UCB_IE_RIS,4,2                 ; @UCB_IE_RIS
	.comm	_UCB_IE_ADC,4,2                 ; @UCB_IE_ADC
	.comm	_UCB_IE_FAL,4,2                 ; @UCB_IE_FAL
	.comm	_UCB_IE_CLEAR,4,2               ; @UCB_IE_CLEAR
	.comm	_UCB_ADC_CR,4,2                 ; @UCB_ADC_CR
	.comm	_UCB_ADC_ENA,4,2                ; @UCB_ADC_ENA
	.comm	_UCB_ADC_START,4,2              ; @UCB_ADC_START
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_UCB_ADC_DATA,4,2               ; @UCB_ADC_DATA
	.comm	_UCB_ADC_DAT_VALID,4,2          ; @UCB_ADC_DAT_VALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timed out in IRQ probe\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_NO_IRQ,4,2                     ; @NO_IRQ
	.no_dead_strip	_ucb1400_ts_detect_irq
.subsections_via_symbols
