	.file	"extr_hid-apple.c_apple_event.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	apple_event, @function
apple_event:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	hid_get_drvdata@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR 0[rbp]
	and	eax, DWORD PTR HID_CLAIMED_INPUT[rip]
	je	.L1
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	je	.L4
	mov	eax, DWORD PTR 8[r12]
	test	eax, eax
	je	.L1
	mov	edx, DWORD PTR [rdx]
	test	DWORD PTR APPLE_INVERT_HWHEEL[rip], edx
	je	.L3
	mov	r8, QWORD PTR [r12]
	cmp	r8, QWORD PTR REL_HWHEEL[rip]
	je	.L19
.L3:
	mov	eax, edx
	and	eax, DWORD PTR APPLE_HAS_FN[rip]
	jne	.L20
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	esi, DWORD PTR [rdi]
	mov	ecx, r13d
	mov	rdx, r12
	mov	rdi, rbp
	call	hidinput_apple_event@PLT
	test	rax, rax
	setne	al
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	edi, DWORD PTR [rdi]
	mov	ecx, r13d
	mov	rdx, r8
	mov	esi, eax
	neg	ecx
	call	input_event@PLT
	mov	eax, 1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	apple_event, .-apple_event
	.comm	REL_HWHEEL,8,8
	.comm	HID_CLAIMED_INPUT,4,4
	.comm	APPLE_INVERT_HWHEEL,4,4
	.comm	APPLE_HAS_FN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_hid-apple.c_apple_event.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	apple_event, %function
apple_event:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r6, r1
	mov	r5, r2
	mov	r7, r3
	bl	hid_get_drvdata
	ldr	r2, .L20
	ldr	r3, [r4]
	ldr	r1, [r2]
	mov	r2, r0
	ands	r0, r3, r1
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	ip, [r6]
	cmp	ip, #0
	beq	.L4
	ldr	r0, [r5, #4]
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r1, .L20+4
	ldr	r3, [r2]
	ldr	r2, [r1]
	tst	r3, r2
	beq	.L3
	ldr	r1, .L20+8
	ldr	r2, [r5]
	ldr	r1, [r1]
	cmp	r2, r1
	beq	.L19
.L3:
	ldr	r2, .L20+12
	ldr	r0, [r2]
	ands	r0, r3, r0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r3, r7
	mov	r2, r5
	mov	r0, r4
	ldr	r1, [ip]
	bl	hidinput_apple_event
	subs	r0, r0, #0
	movne	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r0, ip
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	mov	r1, r0
	rsb	r3, r7, #0
	ldr	r0, [ip]
	bl	input_event
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	.align	2
.L20:
	.word	HID_CLAIMED_INPUT
	.word	APPLE_INVERT_HWHEEL
	.word	REL_HWHEEL
	.word	APPLE_HAS_FN
	.size	apple_event, .-apple_event
	.comm	REL_HWHEEL,4,4
	.comm	HID_CLAIMED_INPUT,4,4
	.comm	APPLE_INVERT_HWHEEL,4,4
	.comm	APPLE_HAS_FN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
