	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hid_parser_main
_hid_parser_main:                       ## @hid_parser_main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_hid_concatenate_usage_page
	movq	%rbx, %rdi
	callq	_item_udata
	movl	(%rbx), %edx
	leal	-128(%rdx), %ecx
	cmpl	$4, %ecx
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_HID_OUTPUT_REPORT@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_3:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_hid_warn
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_4:
	movq	_HID_INPUT_REPORT@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_5:
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_hid_add_field
	jmp	LBB0_9
LBB0_7:
	movq	%r14, %rdi
	callq	_close_collection
	jmp	LBB0_9
LBB0_8:
	movzbl	%al, %esi
	movq	%r14, %rdi
	callq	_open_collection
LBB0_9:
	movl	%eax, %ebx
LBB0_10:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_HID_INPUT_REPORT,4,2           ## @HID_INPUT_REPORT
	.comm	_HID_OUTPUT_REPORT,4,2          ## @HID_OUTPUT_REPORT
	.comm	_HID_FEATURE_REPORT,4,2         ## @HID_FEATURE_REPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown main item tag 0x%x\n"

	.no_dead_strip	_hid_parser_main
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hid_parser_main
_hid_parser_main:                       ; @hid_parser_main
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_hid_concatenate_usage_page
	mov	x0, x20
	bl	_item_udata
	ldr	w2, [x20]
	sub	w9, w2, #128
	cmp	w9, #4
	b.hi	LBB0_3
; %bb.1:
	mov	x8, x0
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh2:
	adrp	x9, _HID_OUTPUT_REPORT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HID_OUTPUT_REPORT@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	ldr	w0, [x19, #4]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_hid_warn
	mov	w20, #0
	b	LBB0_10
LBB0_4:
Lloh6:
	adrp	x9, _HID_INPUT_REPORT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HID_INPUT_REPORT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x9, _HID_FEATURE_REPORT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HID_FEATURE_REPORT@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x9]
	mov	x0, x19
	mov	x2, x8
	bl	_hid_add_field
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_close_collection
	b	LBB0_9
LBB0_8:
	and	w1, w8, #0xff
	mov	x0, x19
	bl	_open_collection
LBB0_9:
	mov	x20, x0
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_HID_INPUT_REPORT,4,2           ; @HID_INPUT_REPORT
	.comm	_HID_OUTPUT_REPORT,4,2          ; @HID_OUTPUT_REPORT
	.comm	_HID_FEATURE_REPORT,4,2         ; @HID_FEATURE_REPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown main item tag 0x%x\n"

	.no_dead_strip	_hid_parser_main
.subsections_via_symbols
