	.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, %r15d
	movl	%ecx, %r13d
	movq	%rdx, %r14
	movslq	%esi, %rbx
	shlq	$3, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	addq	24(%rdi), %rbx
	movq	%rbx, %rdi
	movq	%rdx, %rsi
	callq	_hid_get_report
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movq	%rax, %r12
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	cmpq	$0, (%rbx)
	setne	%al
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	subl	%eax, %r13d
	leaq	(%r14,%rax,4), %rbx
	movl	(%r12), %eax
	decl	%eax
	sarl	$3, %eax
	leal	1(%rax), %ecx
	movq	_HID_MAX_BUFFER_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %eax
	cmovgel	%edx, %ecx
	movl	%ecx, %r15d
	subl	%r13d, %r15d
	movq	%r14, %rsi
	jle	LBB0_3
## %bb.2:
	movq	%rsi, %r14
	movl	16(%r12), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %edx
	callq	_dbg_hid
	movslq	%r13d, %rax
	leaq	(%rbx,%rax,4), %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_memset
	movq	%r14, %rsi
LBB0_3:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %eax
	movq	_HID_CLAIMED_HIDDEV@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.5:
	movq	16(%r14), %rcx
	testq	%rcx, %rcx
	movq	%rbx, %r13
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	movq	%rsi, %rbx
	movq	%r12, %rsi
	callq	*%rcx
	movq	%rbx, %rsi
	movl	(%r14), %eax
	jmp	LBB0_7
LBB0_4:
	movq	%rbx, %r13
LBB0_7:
	movq	_HID_CLAIMED_HIDRAW@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	testl	%eax, %ecx
	je	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_hidraw_report_event
	testl	%eax, %eax
	jne	LBB0_20
## %bb.9:
	movl	(%r14), %eax
	movl	(%r15), %ecx
LBB0_10:
	cmpl	%ecx, %eax
	je	LBB0_17
## %bb.11:
	cmpl	$0, 4(%r12)
	je	LBB0_17
## %bb.12:
	xorl	%ebx, %ebx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	callq	_hid_input_field
	incq	%rbx
	movl	4(%r12), %eax
	cmpq	%rax, %rbx
	jb	LBB0_13
## %bb.14:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	*%rax
LBB0_17:
	movq	_HID_CLAIMED_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_hidinput_report_event
LBB0_19:
	xorl	%eax, %eax
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_MAX_BUFFER_SIZE,4,2        ## @HID_MAX_BUFFER_SIZE
	.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x4
	mov	x23, x3
	mov	x24, x2
	mov	x19, x0
	ldr	x8, [x0, #24]
	add	x22, x8, w1, sxtw #3
	mov	x0, x22
	mov	x1, x2
	bl	_hid_get_report
	cbz	x0, LBB0_19
; %bb.1:
	mov	x20, x0
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w8, ne
	add	x22, x24, w8, uxtw #2
	ldr	w9, [x0]
	sub	w9, w9, #1
Lloh0:
	adrp	x10, _HID_MAX_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _HID_MAX_BUFFER_SIZE@GOTPAGEOFF]
	asr	w9, w9, #3
Lloh2:
	ldr	w10, [x10]
	cmp	w9, w10
	csinc	w3, w10, w9, ge
	sub	w26, w23, w8
	subs	w25, w3, w26
	b.le	LBB0_3
; %bb.2:
	ldr	w1, [x20, #16]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x26
	bl	_dbg_hid
	add	x0, x22, w26, sxtw #2
	mov	w1, #0
	mov	x2, x25
	bl	_memset
LBB0_3:
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _HID_CLAIMED_HIDDEV@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HID_CLAIMED_HIDDEV@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	blr	x9
	ldr	w8, [x19]
LBB0_6:
Lloh8:
	adrp	x25, _HID_CLAIMED_HIDRAW@GOTPAGE
Lloh9:
	ldr	x25, [x25, _HID_CLAIMED_HIDRAW@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	bl	_hidraw_report_event
	cbnz	w0, LBB0_19
; %bb.8:
	ldr	w8, [x19]
	ldr	w9, [x25]
LBB0_9:
	cmp	w8, w9
	b.eq	LBB0_16
; %bb.10:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_16
; %bb.11:
	mov	x23, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w1, [x8, x23, lsl #2]
	mov	x0, x19
	mov	x2, x22
	mov	x3, x21
	bl	_hid_input_field
	add	x23, x23, #1
	ldr	w8, [x20, #4]
	cmp	x23, x8
	b.lo	LBB0_12
; %bb.13:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_16
; %bb.14:
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.15:
	mov	x0, x19
	mov	x1, x20
	blr	x8
LBB0_16:
	ldr	w8, [x19]
Lloh10:
	adrp	x9, _HID_CLAIMED_INPUT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HID_CLAIMED_INPUT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
	mov	x0, x19
	mov	x1, x20
	bl	_hidinput_report_event
LBB0_18:
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_MAX_BUFFER_SIZE,4,2        ; @HID_MAX_BUFFER_SIZE
	.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
