	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cyapa_gen3_irq_handler
_cyapa_gen3_irq_handler:                ## @cyapa_gen3_irq_handler
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	_CYAPA_CMD_GROUP_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	callq	_cyapa_read_block
	cmpl	$8, %eax
	jne	LBB0_1
## %bb.3:
	movl	-24(%rbp), %edx
	movq	_OP_STATUS_SRC@GOTPCREL(%rip), %rax
	movl	%edx, %ecx
	notl	%ecx
	testl	%ecx, (%rax)
	jne	LBB0_6
## %bb.4:
	movq	_OP_STATUS_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	movq	_CYAPA_DEV_NORMAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	movl	-20(%rbp), %eax
	movq	_OP_DATA_VALID@GOTPCREL(%rip), %rcx
	notl	%eax
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.7:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_cyapa_gen3_event_process
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_2
LBB0_6:
	movl	-20(%rbp), %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CYAPA_CMD_GROUP_DATA,4,2       ## @CYAPA_CMD_GROUP_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read report data, (%d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OP_STATUS_SRC,4,2              ## @OP_STATUS_SRC
	.comm	_OP_STATUS_DEV,4,2              ## @OP_STATUS_DEV
	.comm	_CYAPA_DEV_NORMAL,4,2           ## @CYAPA_DEV_NORMAL
	.comm	_OP_DATA_VALID,4,2              ## @OP_DATA_VALID
L_.str.1:                               ## @.str.1
	.asciz	"invalid device state bytes: %02x %02x\n"

	.no_dead_strip	_cyapa_gen3_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cyapa_gen3_irq_handler
_cyapa_gen3_irq_handler:                ; @cyapa_gen3_irq_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _CYAPA_CMD_GROUP_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CYAPA_CMD_GROUP_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_cyapa_read_block
	cmp	w0, #8
	b.ne	LBB0_5
; %bb.1:
	ldr	w2, [sp, #8]
Lloh3:
	adrp	x8, _OP_STATUS_SRC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OP_STATUS_SRC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	bics	wzr, w8, w2
	b.ne	LBB0_6
; %bb.2:
Lloh6:
	adrp	x8, _OP_STATUS_DEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OP_STATUS_DEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w2
Lloh9:
	adrp	x9, _CYAPA_DEV_NORMAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CYAPA_DEV_NORMAL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [sp, #12]
Lloh12:
	adrp	x9, _OP_DATA_VALID@GOTPAGE
Lloh13:
	ldr	x9, [x9, _OP_DATA_VALID@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	b.ne	LBB0_6
; %bb.4:
	add	x1, sp, #8
	mov	x0, x20
	bl	_cyapa_gen3_event_process
	b	LBB0_8
LBB0_5:
	mov	x2, x0
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_dev_err
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CYAPA_CMD_GROUP_DATA,4,2       ; @CYAPA_CMD_GROUP_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read report data, (%d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OP_STATUS_SRC,4,2              ; @OP_STATUS_SRC
	.comm	_OP_STATUS_DEV,4,2              ; @OP_STATUS_DEV
	.comm	_CYAPA_DEV_NORMAL,4,2           ; @CYAPA_DEV_NORMAL
	.comm	_OP_DATA_VALID,4,2              ; @OP_DATA_VALID
l_.str.1:                               ; @.str.1
	.asciz	"invalid device state bytes: %02x %02x\n"

	.no_dead_strip	_cyapa_gen3_irq_handler
.subsections_via_symbols
