	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cyapa_gen3_try_poll_handler
_cyapa_gen3_try_poll_handler:           ## @cyapa_gen3_try_poll_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_CYAPA_CMD_GROUP_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rdx
	callq	_cyapa_read_block
	cmpl	$8, %eax
	jne	LBB0_1
## %bb.2:
	movl	-16(%rbp), %eax
	movq	_OP_STATUS_SRC@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	notl	%edx
	testl	%edx, (%rcx)
	jne	LBB0_1
## %bb.3:
	movq	_OP_STATUS_DEV@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_CYAPA_DEV_NORMAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.4:
	movl	-12(%rbp), %eax
	movq	_OP_DATA_VALID@GOTPCREL(%rip), %rcx
	notl	%eax
	testl	%eax, (%rcx)
	jne	LBB0_1
## %bb.5:
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_cyapa_gen3_event_process
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CYAPA_CMD_GROUP_DATA,4,2       ## @CYAPA_CMD_GROUP_DATA
	.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
	.no_dead_strip	_cyapa_gen3_try_poll_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_try_poll_handler
_cyapa_gen3_try_poll_handler:           ; @cyapa_gen3_try_poll_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	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	w8, [sp, #8]
Lloh3:
	adrp	x9, _OP_STATUS_SRC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OP_STATUS_SRC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	b.ne	LBB0_5
; %bb.2:
Lloh6:
	adrp	x9, _OP_STATUS_DEV@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OP_STATUS_DEV@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w9, w8
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_5
; %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_5
; %bb.4:
	add	x1, sp, #8
	mov	x0, x19
	bl	_cyapa_gen3_event_process
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CYAPA_CMD_GROUP_DATA,4,2       ; @CYAPA_CMD_GROUP_DATA
	.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
	.no_dead_strip	_cyapa_gen3_try_poll_handler
.subsections_via_symbols
