	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cyapa_pip_report_buttons
_cyapa_pip_report_buttons:              ## @cyapa_pip_report_buttons
	.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	%rdi, %r15
	movq	(%rsi), %rax
	movq	_PIP_BUTTONS_OFFSET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ebx
	movq	_CAPABILITY_BTN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movq	8(%rdi), %r14
	movq	_CAPABILITY_BTN_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	(%rdi), %eax
	movq	_CAPABILITY_LEFT_BTN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_2
## %bb.1:
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	testl	%ebx, %ecx
	setne	%dl
	movq	%r14, %rdi
	callq	_input_report_key
	movl	(%r15), %eax
LBB0_2:
	movq	_CAPABILITY_MIDDLE_BTN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_4
## %bb.3:
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	testl	%ebx, %ecx
	setne	%dl
	movq	%r14, %rdi
	callq	_input_report_key
	movl	(%r15), %eax
LBB0_4:
	movq	_CAPABILITY_RIGHT_BTN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_6
## %bb.5:
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	testl	%ebx, %ecx
	setne	%dl
	movq	%r14, %rdi
	callq	_input_report_key
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PIP_BUTTONS_OFFSET,8,3         ## @PIP_BUTTONS_OFFSET
	.comm	_CAPABILITY_BTN_SHIFT,4,2       ## @CAPABILITY_BTN_SHIFT
	.comm	_CAPABILITY_BTN_MASK,4,2        ## @CAPABILITY_BTN_MASK
	.comm	_CAPABILITY_LEFT_BTN_MASK,4,2   ## @CAPABILITY_LEFT_BTN_MASK
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_CAPABILITY_MIDDLE_BTN_MASK,4,2 ## @CAPABILITY_MIDDLE_BTN_MASK
	.comm	_BTN_MIDDLE,4,2                 ## @BTN_MIDDLE
	.comm	_CAPABILITY_RIGHT_BTN_MASK,4,2  ## @CAPABILITY_RIGHT_BTN_MASK
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.no_dead_strip	_cyapa_pip_report_buttons
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cyapa_pip_report_buttons
_cyapa_pip_report_buttons:              ; @cyapa_pip_report_buttons
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _PIP_BUTTONS_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIP_BUTTONS_OFFSET@GOTPAGEOFF]
	ldr	x9, [x1]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x9, x8, lsl #2]
Lloh3:
	adrp	x9, _CAPABILITY_BTN_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CAPABILITY_BTN_SHIFT@GOTPAGEOFF]
	ldr	x19, [x0, #8]
Lloh5:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh6:
	adrp	x9, _CAPABILITY_BTN_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CAPABILITY_BTN_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w21, w8, w9
	ldr	w8, [x0]
Lloh9:
	adrp	x9, _CAPABILITY_LEFT_BTN_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CAPABILITY_LEFT_BTN_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	tst	w9, w21
	cset	w2, ne
	mov	x0, x19
	bl	_input_report_key
	ldr	w8, [x20]
LBB0_2:
Lloh15:
	adrp	x9, _CAPABILITY_MIDDLE_BTN_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CAPABILITY_MIDDLE_BTN_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh18:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	tst	w9, w21
	cset	w2, ne
	mov	x0, x19
	bl	_input_report_key
	ldr	w8, [x20]
LBB0_4:
Lloh21:
	adrp	x9, _CAPABILITY_RIGHT_BTN_MASK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CAPABILITY_RIGHT_BTN_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh24:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	tst	w9, w21
	cset	w2, ne
	mov	x0, x19
	bl	_input_report_key
LBB0_6:
	mov	x0, x19
	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
	b	_input_sync
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_PIP_BUTTONS_OFFSET,8,3         ; @PIP_BUTTONS_OFFSET
	.comm	_CAPABILITY_BTN_SHIFT,4,2       ; @CAPABILITY_BTN_SHIFT
	.comm	_CAPABILITY_BTN_MASK,4,2        ; @CAPABILITY_BTN_MASK
	.comm	_CAPABILITY_LEFT_BTN_MASK,4,2   ; @CAPABILITY_LEFT_BTN_MASK
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_CAPABILITY_MIDDLE_BTN_MASK,4,2 ; @CAPABILITY_MIDDLE_BTN_MASK
	.comm	_BTN_MIDDLE,4,2                 ; @BTN_MIDDLE
	.comm	_CAPABILITY_RIGHT_BTN_MASK,4,2  ; @CAPABILITY_RIGHT_BTN_MASK
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.no_dead_strip	_cyapa_pip_report_buttons
.subsections_via_symbols
