	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cyapa_pip_irq_handler          ## -- Begin function cyapa_pip_irq_handler
	.p2align	4, 0x90
_cyapa_pip_irq_handler:                 ## @cyapa_pip_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	callq	_cyapa_is_pip_app_mode
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_PIP_RESP_LENGTH_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_cyapa_i2c_pip_read
	cmpl	(%r15), %eax
	jne	LBB0_3
## %bb.4:
	movq	_PIP_RESP_LENGTH_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	-40(%rbp), %rdi
	callq	_get_unaligned_le16
	movl	%eax, %r12d
	movl	(%r15), %eax
	cmpl	%eax, %r12d
	jae	LBB0_6
## %bb.5:
	movq	-40(%rbp), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %r8d
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_1:
	movl	(%rbx), %edx
	movl	4(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
LBB0_9:
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%r15d, %r15d
	cmpl	%eax, %r12d
	je	LBB0_12
## %bb.7:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_cyapa_i2c_pip_read
	cmpl	%r12d, %eax
	jne	LBB0_8
## %bb.11:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_cyapa_pip_event_process
	movl	%eax, %r15d
	jmp	LBB0_12
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid device state, gen=%d, state=0x%02x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PIP_RESP_LENGTH_SIZE,4,2       ## @PIP_RESP_LENGTH_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"failed to read length bytes, (%d)\n"

	.comm	_PIP_RESP_LENGTH_OFFSET,8,3     ## @PIP_RESP_LENGTH_OFFSET
L_.str.2:                               ## @.str.2
	.asciz	"invalid report_len=%d. bytes: %02x %02x\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to read %d bytes report data, (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cyapa_pip_irq_handler          ; -- Begin function cyapa_pip_irq_handler
	.p2align	2
_cyapa_pip_irq_handler:                 ; @cyapa_pip_irq_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
	ldr	x19, [x0, #8]
	bl	_cyapa_is_pip_app_mode
	cbz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x22, _PIP_RESP_LENGTH_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PIP_RESP_LENGTH_SIZE@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x1, sp, #24
	mov	x0, x20
	bl	_cyapa_i2c_pip_read
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [sp, #24]
Lloh2:
	adrp	x9, _PIP_RESP_LENGTH_OFFSET@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PIP_RESP_LENGTH_OFFSET@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_get_unaligned_le16
	mov	x21, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.hs	LBB0_7
; %bb.3:
	ldr	x8, [sp, #24]
	ldp	w9, w8, [x8]
	stp	x9, x8, [sp]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_4:
	ldp	w2, w8, [x20]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	b	LBB0_13
LBB0_7:
	b.ne	LBB0_9
; %bb.8:
	mov	w0, #0
	b	LBB0_14
LBB0_9:
	add	x1, sp, #24
	mov	x0, x20
	mov	x2, x21
	bl	_cyapa_i2c_pip_read
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, w21
	b.ne	LBB0_11
; %bb.10:
	add	x1, sp, #24
	mov	x0, x20
	bl	_cyapa_pip_event_process
	b	LBB0_14
LBB0_11:
	str	x0, [sp]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_12:
	mov	x0, x19
	mov	x2, x21
LBB0_13:
	bl	_dev_err
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid device state, gen=%d, state=0x%02x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PIP_RESP_LENGTH_SIZE,4,2       ; @PIP_RESP_LENGTH_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"failed to read length bytes, (%d)\n"

	.comm	_PIP_RESP_LENGTH_OFFSET,8,3     ; @PIP_RESP_LENGTH_OFFSET
l_.str.2:                               ; @.str.2
	.asciz	"invalid report_len=%d. bytes: %02x %02x\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to read %d bytes report data, (%d)\n"

.subsections_via_symbols
