	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hiddev_hid_event               ## -- Begin function hiddev_hid_event
	.p2align	4, 0x90
_hiddev_hid_event:                      ## @hiddev_hid_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movl	(%rsi), %r9d
	movq	_HID_INPUT_REPORT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r9d
	jne	LBB0_2
## %bb.1:
	movq	_HID_REPORT_TYPE_INPUT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	_HID_OUTPUT_REPORT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r9d
	jne	LBB0_4
## %bb.3:
	movq	_HID_REPORT_TYPE_OUTPUT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rax
	xorl	%r8d, %r8d
	cmpl	(%rax), %r9d
	jne	LBB0_7
## %bb.5:
	movq	_HID_REPORT_TYPE_FEATURE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r8d
LBB0_7:
	movl	%r8d, -8(%rbp)
	movq	16(%rsi), %rax
	movl	(%rax), %eax
	movl	%eax, -12(%rbp)
	movl	8(%rsi), %eax
	movl	%eax, -16(%rbp)
	movslq	4(%rsi), %rax
	shlq	$2, %rax
	movq	%rdx, %rsi
	subq	%rax, %rsi
	movq	%rsi, -24(%rbp)
	movl	(%rdx), %eax
	movl	%eax, -28(%rbp)
	movl	%ecx, -32(%rbp)
	leaq	-32(%rbp), %rsi
	callq	_hiddev_send_event
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_INPUT_REPORT,4,2           ## @HID_INPUT_REPORT
	.comm	_HID_REPORT_TYPE_INPUT,4,2      ## @HID_REPORT_TYPE_INPUT
	.comm	_HID_OUTPUT_REPORT,4,2          ## @HID_OUTPUT_REPORT
	.comm	_HID_REPORT_TYPE_OUTPUT,4,2     ## @HID_REPORT_TYPE_OUTPUT
	.comm	_HID_FEATURE_REPORT,4,2         ## @HID_FEATURE_REPORT
	.comm	_HID_REPORT_TYPE_FEATURE,4,2    ## @HID_REPORT_TYPE_FEATURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hiddev_hid_event               ; -- Begin function hiddev_hid_event
	.p2align	2
_hiddev_hid_event:                      ; @hiddev_hid_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _HID_INPUT_REPORT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HID_INPUT_REPORT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _HID_REPORT_TYPE_INPUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HID_REPORT_TYPE_INPUT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	b	LBB0_5
LBB0_2:
Lloh6:
	adrp	x9, _HID_OUTPUT_REPORT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HID_OUTPUT_REPORT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _HID_REPORT_TYPE_OUTPUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HID_REPORT_TYPE_OUTPUT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x9, _HID_FEATURE_REPORT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HID_FEATURE_REPORT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _HID_REPORT_TYPE_FEATURE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _HID_REPORT_TYPE_FEATURE@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	w8, w9
	csel	w8, w10, wzr, eq
LBB0_5:
	str	w8, [sp, #24]
	ldr	x8, [x1, #16]
	ldr	w8, [x8]
	ldp	w10, w9, [x1, #4]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	stp	w9, w8, [sp, #16]
	sub	x8, x2, x10, lsl #2
	str	x8, [sp, #8]
	ldr	w8, [x2]
	stp	w3, w8, [sp]
	mov	x1, sp
	bl	_hiddev_send_event
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_INPUT_REPORT,4,2           ; @HID_INPUT_REPORT
	.comm	_HID_REPORT_TYPE_INPUT,4,2      ; @HID_REPORT_TYPE_INPUT
	.comm	_HID_OUTPUT_REPORT,4,2          ; @HID_OUTPUT_REPORT
	.comm	_HID_REPORT_TYPE_OUTPUT,4,2     ; @HID_REPORT_TYPE_OUTPUT
	.comm	_HID_FEATURE_REPORT,4,2         ; @HID_FEATURE_REPORT
	.comm	_HID_REPORT_TYPE_FEATURE,4,2    ; @HID_REPORT_TYPE_FEATURE
.subsections_via_symbols
