	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apple_event
_apple_event:                           ## @apple_event
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_hid_get_drvdata
	movq	%rax, %rcx
	movq	_HID_CLAIMED_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%edx, (%rbx)
	je	LBB0_9
## %bb.1:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.2:
	movl	8(%r15), %esi
	testl	%esi, %esi
	je	LBB0_9
## %bb.3:
	movl	(%rcx), %eax
	movq	_APPLE_INVERT_HWHEEL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.4:
	movq	(%r15), %rdx
	movq	_REL_HWHEEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_6
## %bb.5:
	movl	(%rdi), %edi
	negl	%r14d
	movl	%r14d, %ecx
	callq	_input_event
	movl	$1, %eax
	jmp	LBB0_9
LBB0_6:
	movq	_APPLE_HAS_FN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movl	(%rdi), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_hidinput_apple_event
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_CLAIMED_INPUT,4,2          ## @HID_CLAIMED_INPUT
	.comm	_APPLE_INVERT_HWHEEL,4,2        ## @APPLE_INVERT_HWHEEL
	.comm	_REL_HWHEEL,8,3                 ## @REL_HWHEEL
	.comm	_APPLE_HAS_FN,4,2               ## @APPLE_HAS_FN
	.no_dead_strip	_apple_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apple_event
_apple_event:                           ; @apple_event
	.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	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	bl	_hid_get_drvdata
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _HID_CLAIMED_INPUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HID_CLAIMED_INPUT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.1:
	ldr	x8, [x22]
	cbz	x8, LBB0_9
; %bb.2:
	ldr	w1, [x20, #8]
	cbz	w1, LBB0_9
; %bb.3:
	ldr	w9, [x0]
Lloh3:
	adrp	x10, _APPLE_INVERT_HWHEEL@GOTPAGE
Lloh4:
	ldr	x10, [x10, _APPLE_INVERT_HWHEEL@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.4:
	ldr	x2, [x20]
Lloh6:
	adrp	x10, _REL_HWHEEL@GOTPAGE
Lloh7:
	ldr	x10, [x10, _REL_HWHEEL@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x2, x10
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x8]
	neg	w3, w19
	bl	_input_event
	mov	w0, #1
	b	LBB0_10
LBB0_6:
Lloh9:
	adrp	x10, _APPLE_HAS_FN@GOTPAGE
Lloh10:
	ldr	x10, [x10, _APPLE_HAS_FN@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.7:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_hidinput_apple_event
	cbz	x0, LBB0_9
; %bb.8:
	mov	w0, #1
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_CLAIMED_INPUT,4,2          ; @HID_CLAIMED_INPUT
	.comm	_APPLE_INVERT_HWHEEL,4,2        ; @APPLE_INVERT_HWHEEL
	.comm	_REL_HWHEEL,8,3                 ; @REL_HWHEEL
	.comm	_APPLE_HAS_FN,4,2               ; @APPLE_HAS_FN
	.no_dead_strip	_apple_event
.subsections_via_symbols
