	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_input_report               ## -- Begin function hid_input_report
	.p2align	4, 0x90
_hid_input_report:                      ## @hid_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
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	%ecx, %r13d
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.5:
	movl	%r8d, %r15d
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movslq	%esi, %r12
	shlq	$3, %r12
	addq	8(%rbx), %r12
	movq	_HID_DEBUG_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movq	_HID_DEBUG_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decl	%esi
	cmpq	$0, (%r12)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_snprintf
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_hid_debug_event
	movq	%r12, %rdi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_hid_get_report
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %rcx
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	movq	_HID_DEBUG_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decl	%esi
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %ecx
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_snprintf
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_hid_debug_event
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	%r13d, %r15d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	_HID_DEBUG_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decl	%esi
	movl	(%r12,%r13,4), %ecx
	movq	%r14, %rdi
	leaq	L_.str.5(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_hid_debug_event
	incq	%r13
	cmpq	%r13, %r15
	jne	LBB0_10
## %bb.11:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_hid_debug_event
	movq	%r14, %rdi
	callq	_kfree
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	movq	%r12, %r14
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_dbg_hid
	movl	$-1, %eax
	jmp	LBB0_17
LBB0_6:
	movq	%r12, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_hid_get_report
	movq	%rax, %rsi
LBB0_12:
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	cmpq	$0, (%r12)
	je	LBB0_16
## %bb.13:
	movq	%rbx, %rdi
	movq	%rsi, %r14
	callq	_hid_match_report
	movq	%r14, %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	%r13d, %ecx
	callq	*(%r12)
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%eax, %ecx
	movl	%ecx, %eax
	jmp	LBB0_17
LBB0_16:
	movq	%rbx, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, %rdx
	movl	%r13d, %ecx
	movl	%r15d, %r8d
	callq	_hid_report_raw_event
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_8:
	movq	%r14, %rdi
	callq	_kfree
	movl	$-1, %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"empty report\n"

	.comm	_HID_DEBUG_BUFSIZE,4,2          ## @HID_DEBUG_BUFSIZE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.1:                               ## @.str.1
	.asciz	"\nreport (size %u) (%snumbered)\n"

L_.str.2:                               ## @.str.2
	.space	1

L_.str.3:                               ## @.str.3
	.asciz	"un"

L_.str.4:                               ## @.str.4
	.asciz	"report %d (size %u) = "

L_.str.5:                               ## @.str.5
	.asciz	" %02x"

L_.str.6:                               ## @.str.6
	.asciz	"\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_input_report               ; -- Begin function hid_input_report
	.p2align	2
_hid_input_report:                      ; @hid_input_report
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x23, x0
	ldr	x27, [x0]
	cbz	x27, LBB0_8
; %bb.2:
	mov	x20, x3
	cbz	w3, LBB0_10
; %bb.3:
	mov	x21, x4
	mov	x19, x2
	mov	x22, x1
	ldr	x8, [x23, #8]
	add	x25, x8, w1, sxtw #3
Lloh0:
	adrp	x28, _HID_DEBUG_BUFSIZE@GOTPAGE
Lloh1:
	ldr	x28, [x28, _HID_DEBUG_BUFSIZE@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh2:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_11
; %bb.4:
	mov	x24, x0
	ldr	w8, [x28]
	sub	w1, w8, #1
	ldr	x8, [x25]
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh7:
	adrp	x10, l_.str.3@PAGE
Lloh8:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x20
	bl	_snprintf
	mov	x0, x23
	mov	x1, x24
	bl	_hid_debug_event
	mov	x0, x25
	mov	x1, x19
	bl	_hid_get_report
	cbz	x0, LBB0_16
; %bb.5:
	str	w21, [sp, #28]                  ; 4-byte Folded Spill
	ldr	w8, [x28]
	sub	w1, w8, #1
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	ldr	w3, [x0]
	str	x20, [sp]
Lloh11:
	adrp	x2, l_.str.4@PAGE
Lloh12:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x24
	bl	_snprintf
	mov	x0, x23
	mov	x1, x24
	bl	_hid_debug_event
	mov	w25, w20
	mov	x21, x19
Lloh13:
	adrp	x26, l_.str.5@PAGE
Lloh14:
	add	x26, x26, l_.str.5@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x28]
	sub	w1, w8, #1
	ldr	w3, [x21], #4
	mov	x0, x24
	mov	x2, x26
	bl	_snprintf
	mov	x0, x23
	mov	x1, x24
	bl	_hid_debug_event
	subs	x25, x25, #1
	b.ne	LBB0_6
; %bb.7:
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x23
	bl	_hid_debug_event
	mov	x0, x24
	bl	_kfree
	ldr	w21, [sp, #28]                  ; 4-byte Folded Reload
	ldr	x24, [sp, #16]                  ; 8-byte Folded Reload
	ldr	x8, [x27]
	cbnz	x8, LBB0_12
	b	LBB0_15
LBB0_8:
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_10:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg_hid
	mov	w0, #-1
	b	LBB0_9
LBB0_11:
	mov	x0, x25
	mov	x1, x19
	bl	_hid_get_report
	mov	x24, x0
	ldr	x8, [x27]
	cbz	x8, LBB0_15
LBB0_12:
	mov	x0, x23
	mov	x1, x24
	bl	_hid_match_report
	cbz	x0, LBB0_15
; %bb.13:
	ldr	x8, [x27]
	mov	x0, x23
	mov	x1, x24
	mov	x2, x19
	mov	x3, x20
	blr	x8
	cbz	w0, LBB0_15
; %bb.14:
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	b	LBB0_9
LBB0_15:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	mov	x3, x20
	mov	x4, x21
	bl	_hid_report_raw_event
	mov	w0, #0
	b	LBB0_9
LBB0_16:
	mov	x0, x24
	bl	_kfree
	mov	w0, #-1
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"empty report\n"

	.comm	_HID_DEBUG_BUFSIZE,4,2          ; @HID_DEBUG_BUFSIZE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.1:                               ; @.str.1
	.asciz	"\nreport (size %u) (%snumbered)\n"

l_.str.2:                               ; @.str.2
	.space	1

l_.str.3:                               ; @.str.3
	.asciz	"un"

l_.str.4:                               ; @.str.4
	.asciz	"report %d (size %u) = "

l_.str.5:                               ; @.str.5
	.asciz	" %02x"

l_.str.6:                               ; @.str.6
	.asciz	"\n"

.subsections_via_symbols
