	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad714x_interrupt_thread
_ad714x_interrupt_thread:               ## @ad714x_interrupt_thread
	.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
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_mutex_lock
	movq	_STG_LOW_INT_STA_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	16(%r14), %rdx
	movq	%r14, %rdi
	movl	$3, %ecx
	callq	*24(%r14)
	movq	8(%r14), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ad714x_button_state_machine
	incl	%ebx
	movq	8(%r14), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_2
LBB0_3:
	cmpl	$0, 4(%rax)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ad714x_slider_state_machine
	incl	%ebx
	movq	8(%r14), %rax
	cmpl	4(%rax), %ebx
	jl	LBB0_5
LBB0_6:
	cmpl	$0, 8(%rax)
	jle	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ad714x_wheel_state_machine
	incl	%ebx
	movq	8(%r14), %rax
	cmpl	8(%rax), %ebx
	jl	LBB0_8
LBB0_9:
	cmpl	$0, 12(%rax)
	jle	LBB0_12
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ad714x_touchpad_state_machine
	incl	%ebx
	movq	8(%r14), %rax
	cmpl	12(%rax), %ebx
	jl	LBB0_11
LBB0_12:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STG_LOW_INT_STA_REG,4,2        ## @STG_LOW_INT_STA_REG
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_ad714x_interrupt_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad714x_interrupt_thread
_ad714x_interrupt_thread:               ; @ad714x_interrupt_thread
	.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	x0, x1
	bl	_mutex_lock
	ldr	x8, [x19, #24]
Lloh0:
	adrp	x9, _STG_LOW_INT_STA_REG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STG_LOW_INT_STA_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	add	x2, x19, #16
	mov	x0, x19
	mov	w3, #3
	blr	x8
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_ad714x_button_state_machine
	add	w20, w20, #1
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	cmp	w20, w9
	b.lt	LBB0_2
LBB0_3:
	ldr	w9, [x8, #4]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.4:
	mov	w20, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_ad714x_slider_state_machine
	add	w20, w20, #1
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #4]
	cmp	w20, w9
	b.lt	LBB0_5
LBB0_6:
	ldr	w9, [x8, #8]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.7:
	mov	w20, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_ad714x_wheel_state_machine
	add	w20, w20, #1
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #8]
	cmp	w20, w9
	b.lt	LBB0_8
LBB0_9:
	ldr	w8, [x8, #12]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	mov	w20, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_ad714x_touchpad_state_machine
	add	w20, w20, #1
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #12]
	cmp	w20, w8
	b.lt	LBB0_11
LBB0_12:
	mov	x0, x19
	bl	_mutex_unlock
Lloh3:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	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	_STG_LOW_INT_STA_REG,4,2        ; @STG_LOW_INT_STA_REG
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_ad714x_interrupt_thread
.subsections_via_symbols
