	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hiddev_report_event            ## -- Begin function hiddev_report_event
	.p2align	4, 0x90
_hiddev_report_event:                   ## @hiddev_report_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rsi), %ebx
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_HID_INPUT_REPORT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	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), %ebx
	jne	LBB0_4
## %bb.3:
	movq	_HID_REPORT_TYPE_OUTPUT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	(%rcx), %ebx
	jne	LBB0_7
## %bb.5:
	movq	_HID_REPORT_TYPE_FEATURE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	movl	%eax, -32(%rbp)
	movl	4(%r15), %eax
	movl	%eax, -36(%rbp)
	movq	_HID_FIELD_INDEX_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_hiddev_send_event
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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
	.comm	_HID_FIELD_INDEX_NONE,4,2       ## @HID_FIELD_INDEX_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hiddev_report_event            ; -- Begin function hiddev_report_event
	.p2align	2
_hiddev_report_event:                   ; @hiddev_report_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w21, [x1]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh0:
	adrp	x8, _HID_INPUT_REPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_INPUT_REPORT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w21, w8
	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	x8, _HID_OUTPUT_REPORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HID_OUTPUT_REPORT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w21, w8
	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	x8, _HID_FEATURE_REPORT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HID_FEATURE_REPORT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _HID_REPORT_TYPE_FEATURE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HID_REPORT_TYPE_FEATURE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w21, w8
	csel	w8, w9, wzr, eq
LBB0_5:
	str	w8, [sp, #8]
	ldr	w8, [x20, #4]
Lloh18:
	adrp	x9, _HID_FIELD_INDEX_NONE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _HID_FIELD_INDEX_NONE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [sp]
	mov	x1, sp
	mov	x0, x19
	bl	_hiddev_send_event
	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
	add	sp, sp, #64
	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
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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
	.comm	_HID_FIELD_INDEX_NONE,4,2       ; @HID_FIELD_INDEX_NONE
.subsections_via_symbols
