	.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	$24, %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_3
## %bb.1:
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movl	%esi, %r13d
	movq	%rdi, %rbx
	callq	_down_trylock
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_19
LBB0_5:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.6:
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.7:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movslq	%r13d, %r14
	shlq	$2, %r14
	addq	16(%rbx), %r14
	leaq	4(%rbx), %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	movl	%r15d, %ecx
	callq	_hid_dump_report
LBB0_9:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_hid_get_report
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	movq	%rax, %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.11:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_hid_match_report
	testq	%rax, %rax
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movl	%r15d, %ecx
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_14
LBB0_13:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	movl	%r15d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_hid_report_raw_event
LBB0_14:
	movl	%eax, %r14d
	jmp	LBB0_18
LBB0_15:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_18
LBB0_16:
	leaq	L_.str(%rip), %rdi
	callq	_dbg_hid
LBB0_17:
	movl	$-1, %r14d
LBB0_18:
	movq	%rbx, %rdi
	callq	_up
LBB0_19:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"empty report\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:
	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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	bl	_down_trylock
	cbz	x0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_19
LBB0_5:
	ldr	x25, [x19, #8]
	cbz	x25, LBB0_15
; %bb.6:
	cbz	w21, LBB0_16
; %bb.7:
	ldr	x8, [x19, #16]
	add	x24, x8, w23, sxtw #2
	add	x0, x19, #4
	bl	_list_empty
	cbnz	w0, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_hid_dump_report
LBB0_9:
	mov	x0, x24
	mov	x1, x22
	bl	_hid_get_report
	cbz	x0, LBB0_17
; %bb.10:
	ldr	x8, [x25]
	cbz	x8, LBB0_13
; %bb.11:
	mov	x24, x0
	mov	x0, x19
	mov	x1, x24
	bl	_hid_match_report
	cbz	x0, LBB0_13
; %bb.12:
	ldr	x8, [x25]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	mov	x3, x21
	blr	x8
	tbnz	w0, #31, LBB0_14
LBB0_13:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	bl	_hid_report_raw_event
LBB0_14:
	mov	x24, x0
	b	LBB0_18
LBB0_15:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_18
LBB0_16:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg_hid
LBB0_17:
	mov	w24, #-1
LBB0_18:
	mov	x0, x19
	bl	_up
LBB0_19:
	mov	x0, x24
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"empty report\n"

.subsections_via_symbols
