	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hid_process_event
_hid_process_event:                     ## @hid_process_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movl	%ecx, %r14d
	movq	%rdx, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	movq	%rdx, %rsi
	movl	%ecx, %edx
	callq	_hid_dump_input
	testq	%r15, %r15
	je	LBB0_6
## %bb.1:
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_hid_match_usage
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movl	%r14d, %ecx
	callq	*(%r15)
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	jns	LBB0_11
## %bb.5:
	movl	8(%r15), %esi
	leaq	L_.str(%rip), %rdi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dbg_hid                        ## TAILCALL
LBB0_6:
	movl	(%rbx), %eax
	movq	_HID_CLAIMED_INPUT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movl	%r14d, %ecx
	callq	_hidinput_hid_event
	movl	(%rbx), %eax
LBB0_8:
	testl	%r13d, %r13d
	je	LBB0_11
## %bb.9:
	movq	_HID_CLAIMED_HIDDEV@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_11
## %bb.10:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s's event failed with %d\n"

	.comm	_HID_CLAIMED_INPUT,4,2          ## @HID_CLAIMED_INPUT
	.comm	_HID_CLAIMED_HIDDEV,4,2         ## @HID_CLAIMED_HIDDEV
	.no_dead_strip	_hid_process_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hid_process_event
_hid_process_event:                     ; @hid_process_event
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x24, [x0, #16]
	mov	x1, x2
	mov	x2, x3
	bl	_hid_dump_input
	cbz	x24, LBB0_6
; %bb.1:
	ldr	x8, [x24]
	cbz	x8, LBB0_6
; %bb.2:
	mov	x0, x22
	mov	x1, x20
	bl	_hid_match_usage
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x24]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	blr	x8
	cbz	w0, LBB0_6
; %bb.4:
	mov	x2, x0
	tbz	w0, #31, LBB0_12
; %bb.5:
	ldr	w1, [x24, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dbg_hid
LBB0_6:
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _HID_CLAIMED_INPUT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HID_CLAIMED_INPUT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_hidinput_hid_event
	ldr	w8, [x22]
LBB0_8:
	cbz	w23, LBB0_12
; %bb.9:
Lloh5:
	adrp	x9, _HID_CLAIMED_HIDDEV@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HID_CLAIMED_HIDDEV@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w8, w9, w8
	cbz	w8, LBB0_12
; %bb.10:
	ldr	x4, [x22, #8]
	cbz	x4, LBB0_12
; %bb.11:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x4
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s's event failed with %d\n"

	.comm	_HID_CLAIMED_INPUT,4,2          ; @HID_CLAIMED_INPUT
	.comm	_HID_CLAIMED_HIDDEV,4,2         ; @HID_CLAIMED_HIDDEV
	.no_dead_strip	_hid_process_event
.subsections_via_symbols
