	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_get_report_id              ## -- Begin function hid_get_report_id
	.p2align	4, 0x90
_hid_get_report_id:                     ## @hid_get_report_id
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movl	$-1, -44(%rbp)
	callq	_hid_get_report_desc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r15
	movq	_hid_input@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_hid_output@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %esi
	shll	%cl, %esi
	btsl	%eax, %esi
	movq	_hid_feature@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %esi
	movq	%r15, %rdi
	movl	$-1, %edx
	callq	_hid_start_parse
	movl	%eax, %r12d
	leaq	-48(%rbp), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	movq	%r13, %rsi
	callq	_hid_get_item
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %ebx
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.5:
	movl	%ebx, -44(%rbp)
	jmp	LBB0_6
LBB0_3:
	movl	$-1, %ebx
LBB0_6:
	movl	%r12d, %edi
	callq	_hid_end_parse
	movq	%r15, %rdi
	callq	_hid_dispose_report_desc
	testl	%ebx, %ebx
	jg	LBB0_8
LBB0_7:
	movq	_USB_GET_REPORT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movl	%r14d, %edi
	callq	_ioctl
	movl	-44(%rbp), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hid_input,4,2                  ## @hid_input
	.comm	_hid_output,4,2                 ## @hid_output
	.comm	_hid_feature,4,2                ## @hid_feature
	.comm	_USB_GET_REPORT_ID,4,2          ## @USB_GET_REPORT_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_get_report_id              ; -- Begin function hid_get_report_id
	.p2align	2
_hid_get_report_id:                     ; @hid_get_report_id
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	mov	w8, #-1
	str	w8, [sp, #4]
	bl	_hid_get_report_desc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _hid_input@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hid_input@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
Lloh3:
	adrp	x10, _hid_output@GOTPAGE
Lloh4:
	ldr	x10, [x10, _hid_output@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	lsl	w10, w9, w10
	orr	w8, w10, w8
Lloh6:
	adrp	x10, _hid_feature@GOTPAGE
Lloh7:
	ldr	x10, [x10, _hid_feature@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w1, w8, w9
	mov	w2, #-1
	bl	_hid_start_parse
	mov	x22, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x22
	bl	_hid_get_item
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w21, [sp, #8]
	cbz	w21, LBB0_2
; %bb.4:
	str	w21, [sp, #4]
	b	LBB0_6
LBB0_5:
	mov	w21, #-1
LBB0_6:
	mov	x0, x22
	bl	_hid_end_parse
	mov	x0, x20
	bl	_hid_dispose_report_desc
	cmp	w21, #0
	b.gt	LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _USB_GET_REPORT_ID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _USB_GET_REPORT_ID@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #4
	mov	x0, x19
	bl	_ioctl
	ldr	w21, [sp, #4]
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_hid_input,4,2                  ; @hid_input
	.comm	_hid_output,4,2                 ; @hid_output
	.comm	_hid_feature,4,2                ; @hid_feature
	.comm	_USB_GET_REPORT_ID,4,2          ; @USB_GET_REPORT_ID
.subsections_via_symbols
