	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidp_input_report
_hidp_input_report:                     ## @hidp_input_report
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r14
	movq	(%rsi), %r12
	movb	(%r12), %al
	cmpb	$2, %al
	je	LBB0_16
## %bb.1:
	cmpb	$1, %al
	jne	LBB0_18
## %bb.2:
	movq	(%rdi), %rbx
	movq	_hidp_keycode@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	896(%rax), %esi
	movzbl	1(%r12), %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%r15), %rax
	movl	900(%rax), %esi
	movzbl	1(%r12), %edx
	shrl	%edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%r15), %rax
	movl	904(%rax), %esi
	movzbl	1(%r12), %edx
	shrl	$2, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%r15), %rax
	movl	908(%rax), %esi
	movzbl	1(%r12), %edx
	shrl	$3, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%r15), %rax
	movl	912(%rax), %esi
	movzbl	1(%r12), %edx
	shrl	$4, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%r15), %rax
	movl	916(%rax), %esi
	movzbl	1(%r12), %edx
	shrl	$5, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%r15), %rax
	movl	920(%rax), %esi
	movzbl	1(%r12), %edx
	shrl	$6, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%r15), %rax
	movl	924(%rax), %esi
	movb	1(%r12), %al
	shrb	$7, %al
	movzbl	%al, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	leaq	3(%r12), %rdi
	movq	_hidp_mkeyspat@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	$6, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_18
## %bb.3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	1(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	9(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	2(%rbx), %r13
	leaq	8(%rbx), %r14
	movl	$3, %r15d
	jmp	LBB0_4
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movzbl	%al, %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_BT_ERR
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	cmpq	$9, %r15
	je	LBB0_15
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rbx,%r15), %eax
	cmpb	$4, %al
	jb	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movzbl	%al, %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	$6, %edx
	callq	_memscan
	cmpq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_hidp_keycode@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movzbl	-1(%rbx,%r15), %eax
	movl	(%rcx,%rax,4), %esi
	testl	%esi, %esi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_input_report_key
	jmp	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movzbl	%al, %esi
	leaq	L_.str(%rip), %rdi
	callq	_BT_ERR
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movzbl	(%r12,%r15), %eax
	cmpb	$4, %al
	jb	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movzbl	%al, %esi
	movq	%r13, %rdi
	movl	$6, %edx
	callq	_memscan
	cmpq	%r14, %rax
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_hidp_keycode@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movzbl	(%r12,%r15), %eax
	movl	(%rcx,%rax,4), %esi
	testl	%esi, %esi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_input_report_key
	jmp	LBB0_14
LBB0_16:
	movl	8(%rsi), %ebx
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	1(%r12), %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	1(%r12), %edx
	andl	$2, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	1(%r12), %edx
	andl	$4, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_SIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	1(%r12), %edx
	andl	$8, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_EXTRA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	1(%r12), %edx
	andl	$16, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_REL_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movsbl	2(%r12), %edx
	movq	%r14, %rdi
	callq	_input_report_rel
	movq	_REL_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movsbl	3(%r12), %edx
	movq	%r14, %rdi
	callq	_input_report_rel
	cmpl	$5, %ebx
	jl	LBB0_18
## %bb.17:
	movq	_REL_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movsbl	4(%r12), %edx
	movq	%r14, %rdi
	callq	_input_report_rel
	jmp	LBB0_18
LBB0_15:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$8, %edx
	callq	_memcpy
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_18:
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hidp_keycode,8,3               ## @hidp_keycode
	.comm	_hidp_mkeyspat,4,2              ## @hidp_mkeyspat
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown key (scancode %#x) released."

L_.str.1:                               ## @.str.1
	.asciz	"Unknown key (scancode %#x) pressed."

	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.comm	_BTN_MIDDLE,4,2                 ## @BTN_MIDDLE
	.comm	_BTN_SIDE,4,2                   ## @BTN_SIDE
	.comm	_BTN_EXTRA,4,2                  ## @BTN_EXTRA
	.comm	_REL_X,4,2                      ## @REL_X
	.comm	_REL_Y,4,2                      ## @REL_Y
	.comm	_REL_WHEEL,4,2                  ## @REL_WHEEL
	.no_dead_strip	_hidp_input_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidp_input_report
_hidp_input_report:                     ; @hidp_input_report
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x19, [x0, #8]
	ldr	x23, [x1]
	mov	x20, x23
	ldrb	w8, [x20], #1
	cmp	w8, #2
	b.eq	LBB0_15
; %bb.1:
	cmp	w8, #1
	b.ne	LBB0_18
; %bb.2:
	ldr	x21, [x0]
Lloh0:
	adrp	x26, _hidp_keycode@GOTPAGE
Lloh1:
	ldr	x26, [x26, _hidp_keycode@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	w1, [x8, #896]
	ldrb	w8, [x23, #1]
	and	w2, w8, #0x1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x26]
	ldr	w1, [x8, #900]
	ldrb	w8, [x23, #1]
	ubfx	w2, w8, #1, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x26]
	ldr	w1, [x8, #904]
	ldrb	w8, [x23, #1]
	ubfx	w2, w8, #2, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x26]
	ldr	w1, [x8, #908]
	ldrb	w8, [x23, #1]
	ubfx	w2, w8, #3, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x26]
	ldr	w1, [x8, #912]
	ldrb	w8, [x23, #1]
	ubfx	w2, w8, #4, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x26]
	ldr	w1, [x8, #916]
	ldrb	w8, [x23, #1]
	ubfx	w2, w8, #5, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x26]
	ldr	w1, [x8, #920]
	ldrb	w8, [x23, #1]
	ubfx	w2, w8, #6, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x26]
	ldr	w1, [x8, #924]
	ldrb	w8, [x23, #1]
	lsr	w2, w8, #7
	mov	x0, x19
	bl	_input_report_key
	add	x22, x23, #3
Lloh2:
	adrp	x8, _hidp_mkeyspat@GOTPAGE
Lloh3:
	ldr	x8, [x8, _hidp_mkeyspat@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #6
	bl	_memcmp
	cbz	w0, LBB0_18
; %bb.3:
	mov	x27, #0
	add	x28, x23, #9
	add	x23, x21, #2
	add	x24, x21, #8
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_BT_ERR
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x27, x27, #1
	cmp	x27, #6
	b.eq	LBB0_17
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x25, x21, x27
	ldrb	w1, [x25, #2]
	cmp	w1, #4
	b.lo	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	mov	w2, #6
	bl	_memscan
	cmp	x0, x28
	b.ne	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x26]
	ldrb	w1, [x25, #2]
	ldr	w8, [x8, x1, lsl #2]
	cbz	w8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x8
	mov	w2, #0
	bl	_input_report_key
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_BT_ERR
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w1, [x22, x27]
	cmp	w1, #4
	b.lo	LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	mov	w2, #6
	bl	_memscan
	cmp	x0, x24
	b.ne	LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x26]
	ldrb	w1, [x22, x27]
	ldr	w8, [x8, x1, lsl #2]
	cbz	w8, LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x8
	mov	w2, #1
	bl	_input_report_key
	b	LBB0_5
LBB0_15:
	ldr	w20, [x1, #8]
Lloh9:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldrb	w8, [x23, #1]
	and	w2, w8, #0x1
	mov	x0, x19
	bl	_input_report_key
Lloh12:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldrb	w8, [x23, #1]
	and	w2, w8, #0x2
	mov	x0, x19
	bl	_input_report_key
Lloh15:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldrb	w8, [x23, #1]
	and	w2, w8, #0x4
	mov	x0, x19
	bl	_input_report_key
Lloh18:
	adrp	x8, _BTN_SIDE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BTN_SIDE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldrb	w8, [x23, #1]
	and	w2, w8, #0x8
	mov	x0, x19
	bl	_input_report_key
Lloh21:
	adrp	x8, _BTN_EXTRA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BTN_EXTRA@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldrb	w8, [x23, #1]
	and	w2, w8, #0x10
	mov	x0, x19
	bl	_input_report_key
Lloh24:
	adrp	x8, _REL_X@GOTPAGE
Lloh25:
	ldr	x8, [x8, _REL_X@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldrsb	w2, [x23, #2]
	mov	x0, x19
	bl	_input_report_rel
Lloh27:
	adrp	x8, _REL_Y@GOTPAGE
Lloh28:
	ldr	x8, [x8, _REL_Y@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldrsb	w2, [x23, #3]
	mov	x0, x19
	bl	_input_report_rel
	cmp	w20, #5
	b.lt	LBB0_18
; %bb.16:
Lloh30:
	adrp	x8, _REL_WHEEL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _REL_WHEEL@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ldrsb	w2, [x23, #4]
	mov	x0, x19
	bl	_input_report_rel
	b	LBB0_18
LBB0_17:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #8
	bl	_memcpy
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_input_sync
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_hidp_keycode,8,3               ; @hidp_keycode
	.comm	_hidp_mkeyspat,4,2              ; @hidp_mkeyspat
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown key (scancode %#x) released."

l_.str.1:                               ; @.str.1
	.asciz	"Unknown key (scancode %#x) pressed."

	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.comm	_BTN_MIDDLE,4,2                 ; @BTN_MIDDLE
	.comm	_BTN_SIDE,4,2                   ; @BTN_SIDE
	.comm	_BTN_EXTRA,4,2                  ; @BTN_EXTRA
	.comm	_REL_X,4,2                      ; @REL_X
	.comm	_REL_Y,4,2                      ; @REL_Y
	.comm	_REL_WHEEL,4,2                  ; @REL_WHEEL
	.no_dead_strip	_hidp_input_report
.subsections_via_symbols
