	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_report_raw_event           ## -- Begin function hid_report_raw_event
	.p2align	4, 0x90
_hid_report_raw_event:                  ## @hid_report_raw_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
	movq	%rdx, %r13
	movq	%rdi, %r15
	movslq	%esi, %r12
	shlq	$3, %r12
	addq	16(%rdi), %r12
	movq	%r12, %rdi
	movq	%rdx, %rsi
	callq	_hid_get_report
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %r14
	xorl	%eax, %eax
	cmpq	$0, (%r12)
	setne	%al
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	subl	%eax, %ebx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %rax
	addq	%r13, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r14), %r13d
	decl	%r13d
	sarl	$3, %r13d
	cmpl	%ebx, %r13d
	jl	LBB0_3
## %bb.2:
	incl	%r13d
	movl	16(%r14), %esi
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	callq	_dbg_hid
	movslq	%ebx, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	subl	%ebx, %r13d
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_memset
LBB0_3:
	movl	(%r15), %eax
	movq	_HID_CLAIMED_HIDDEV@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.5:
	movq	8(%r15), %rcx
	testq	%rcx, %rcx
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	*%rcx
	movl	(%r15), %eax
	jmp	LBB0_7
LBB0_4:
	movl	-48(%rbp), %r13d                ## 4-byte Reload
LBB0_7:
	movq	_HID_CLAIMED_HIDRAW@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.8:
	cmpq	$0, (%r12)
	je	LBB0_10
## %bb.9:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	$-4, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	incl	%edx
	movq	%r15, %rdi
	jmp	LBB0_11
LBB0_10:
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_11:
	callq	_hidraw_report_event
LBB0_12:
	cmpl	$0, 4(%r14)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_15
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	callq	_hid_input_field
	incq	%rbx
	movl	4(%r14), %eax
	cmpq	%rax, %rbx
	jb	LBB0_14
LBB0_15:
	movq	_HID_CLAIMED_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_16
## %bb.17:
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hidinput_report_event          ## TAILCALL
LBB0_16:
	addq	$24, %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	"report %d is too short, (%d < %d)\n"

	.comm	_HID_CLAIMED_HIDDEV,4,2         ## @HID_CLAIMED_HIDDEV
	.comm	_HID_CLAIMED_HIDRAW,4,2         ## @HID_CLAIMED_HIDRAW
	.comm	_HID_CLAIMED_INPUT,4,2          ## @HID_CLAIMED_INPUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_report_raw_event           ; -- Begin function hid_report_raw_event
	.p2align	2
_hid_report_raw_event:                  ; @hid_report_raw_event
	.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
	mov	x20, x4
	mov	x23, x3
	mov	x24, x2
	mov	x19, x0
	ldr	x8, [x0, #16]
	add	x25, x8, w1, sxtw #3
	mov	x0, x25
	mov	x1, x2
	bl	_hid_get_report
	cbz	x0, LBB0_16
; %bb.1:
	mov	x21, x0
	ldr	x8, [x25]
	cmp	x8, #0
	cset	w9, ne
	add	x22, x24, w9, uxtw #2
	ldr	w8, [x0]
	sub	w8, w8, #1
	asr	w8, w8, #3
	sub	w26, w23, w9
	cmp	w8, w26
	b.lt	LBB0_3
; %bb.2:
	add	w27, w8, #1
	ldr	w1, [x21, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x26
	mov	x3, x27
	bl	_dbg_hid
	add	x0, x22, w26, sxtw #2
	sub	w2, w27, w26
	mov	w1, #0
	bl	_memset
LBB0_3:
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _HID_CLAIMED_HIDDEV@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HID_CLAIMED_HIDDEV@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x21
	blr	x9
	ldr	w8, [x19]
LBB0_6:
Lloh5:
	adrp	x9, _HID_CLAIMED_HIDRAW@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HID_CLAIMED_HIDRAW@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.7:
	ldr	x8, [x25]
	cbz	x8, LBB0_9
; %bb.8:
	sub	x1, x24, #4
	add	w2, w23, #1
	mov	x0, x19
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
LBB0_10:
	bl	_hidraw_report_event
LBB0_11:
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_14
; %bb.12:
	mov	x23, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w1, [x8, x23, lsl #2]
	mov	x0, x19
	mov	x2, x22
	mov	x3, x20
	bl	_hid_input_field
	add	x23, x23, #1
	ldr	w8, [x21, #4]
	cmp	x23, x8
	b.lo	LBB0_13
LBB0_14:
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _HID_CLAIMED_INPUT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HID_CLAIMED_INPUT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x19
	mov	x1, x21
	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	_hidinput_report_event
LBB0_16:
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"report %d is too short, (%d < %d)\n"

	.comm	_HID_CLAIMED_HIDDEV,4,2         ; @HID_CLAIMED_HIDDEV
	.comm	_HID_CLAIMED_HIDRAW,4,2         ; @HID_CLAIMED_HIDRAW
	.comm	_HID_CLAIMED_INPUT,4,2          ; @HID_CLAIMED_INPUT
.subsections_via_symbols
