	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar1021_i2c_irq
_ar1021_i2c_irq:                        ## @ar1021_i2c_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	16(%rsi), %r15
	movq	(%rsi), %rbx
	movl	8(%rsi), %edi
	movq	%rbx, %rsi
	movl	$8, %edx
	callq	_i2c_master_recv
	cmpl	$8, %eax
	jne	LBB0_3
## %bb.1:
	movl	(%rbx), %r14d
	movl	$7, %edi
	callq	_BIT
	testl	%r14d, %eax
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %r14d
	xorl	%edi, %edi
	callq	_BIT
	andl	%eax, %r14d
	movl	4(%rbx), %edx
	movl	8(%rbx), %eax
	andl	$31, %eax
	shll	$7, %eax
	andl	$127, %edx
	orl	%eax, %edx
	movl	16(%rbx), %eax
	andl	$31, %eax
	shll	$7, %eax
	movl	12(%rbx), %ebx
	andl	$127, %ebx
	orl	%eax, %ebx
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_input_report_abs
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_input_report_key
	movq	%r15, %rdi
	callq	_input_sync
LBB0_3:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_ar1021_i2c_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar1021_i2c_irq
_ar1021_i2c_irq:                        ; @ar1021_i2c_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
	ldr	x19, [x1, #16]
	ldr	x20, [x1]
	ldr	w0, [x1, #8]
	mov	x1, x20
	mov	w2, #8
	bl	_i2c_master_recv
	cmp	w0, #8
	b.ne	LBB0_3
; %bb.1:
	ldr	w21, [x20]
	mov	w0, #7
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_3
; %bb.2:
	ldr	w21, [x20]
	mov	w0, #0
	bl	_BIT
	and	w21, w0, w21
	ldp	w9, w8, [x20, #4]
	and	w2, w9, #0x7f
	bfi	w2, w8, #7, #5
	ldp	w9, w8, [x20, #12]
	and	w20, w9, #0x7f
	bfi	w20, w8, #7, #5
Lloh0:
	adrp	x8, _ABS_X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_input_report_abs
Lloh3:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_input_report_abs
Lloh6:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_input_report_key
	mov	x0, x19
	bl	_input_sync
LBB0_3:
Lloh9:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_ar1021_i2c_irq
.subsections_via_symbols
