	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hid_parser_local
_hid_parser_local:                      ## @hid_parser_local
	.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
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_item_udata
	movl	%eax, %r12d
	movl	(%r13), %esi
	leal	-128(%rsi), %eax
	cmpl	$3, %eax
	ja	LBB0_4
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	cmpl	$2, 4(%r14)
	jge	LBB0_14
## %bb.3:
	movl	%r12d, 8(%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_26
LBB0_4:
	leaq	L_.str.6(%rip), %rdi
	xorl	%r15d, %r15d
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_dbg_hid
	jmp	LBB0_26
LBB0_5:
	cmpl	$2, 4(%r14)
	jge	LBB0_14
## %bb.6:
	movl	8(%r14), %ebx
	movl	%r12d, %eax
	subl	%ebx, %eax
	addl	12(%r14), %eax
	movq	_HID_MAX_USAGES@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jb	LBB0_10
## %bb.7:
	movq	16(%r14), %rdi
	callq	_dev_name
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	16(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_hid_warn
LBB0_9:
	movl	8(%r14), %ebx
	movl	12(%r14), %r12d
	notl	%r12d
	addl	(%r15), %r12d
	addl	%ebx, %r12d
	je	LBB0_23
LBB0_10:
	xorl	%r15d, %r15d
	cmpl	%r12d, %ebx
	ja	LBB0_26
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r13), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_hid_add_usage
	testl	%eax, %eax
	jne	LBB0_27
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	incl	%ebx
	cmpl	%r12d, %ebx
	jbe	LBB0_11
	jmp	LBB0_26
LBB0_13:
	cmpl	$2, 4(%r14)
	jl	LBB0_18
LBB0_14:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dbg_hid
	jmp	LBB0_26
LBB0_15:
	movl	(%r14), %eax
	testl	%r12d, %r12d
	je	LBB0_19
## %bb.16:
	testl	%eax, %eax
	je	LBB0_21
## %bb.17:
	movq	16(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_24
LBB0_18:
	movl	4(%r13), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hid_add_usage                  ## TAILCALL
LBB0_19:
	testl	%eax, %eax
	jle	LBB0_22
## %bb.20:
	decl	%eax
	movl	%eax, (%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_26
LBB0_21:
	movl	$1, (%r14)
	incl	4(%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_26
LBB0_22:
	movq	16(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_24
LBB0_23:
	movq	16(%r14), %rdi
	leaq	L_.str.4(%rip), %rsi
LBB0_24:
	callq	_hid_err
LBB0_25:
	movl	$-1, %r15d
LBB0_26:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_dbg_hid
	jmp	LBB0_25
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_13
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nested delimiters\n"

L_.str.1:                               ## @.str.1
	.asciz	"bogus close delimiter\n"

L_.str.2:                               ## @.str.2
	.asciz	"alternative usage ignored\n"

	.comm	_HID_MAX_USAGES,4,2             ## @HID_MAX_USAGES
L_.str.3:                               ## @.str.3
	.asciz	"ignoring exceeding usage max\n"

L_.str.4:                               ## @.str.4
	.asciz	"no more usage index available\n"

L_.str.5:                               ## @.str.5
	.asciz	"hid_add_usage failed\n"

L_.str.6:                               ## @.str.6
	.asciz	"unknown local item tag 0x%x\n"

	.no_dead_strip	_hid_parser_local
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hid_parser_local
_hid_parser_local:                      ; @hid_parser_local
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_item_udata
	ldr	w8, [x20]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hi	LBB0_4
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, lJTI0_0@PAGE
Lloh1:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x19, #4]
	cmp	w8, #2
	b.ge	LBB0_14
; %bb.3:
	mov	w0, #0
	str	w21, [x19, #8]
	b	LBB0_17
LBB0_4:
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.6@PAGE
Lloh3:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_15
LBB0_5:
	ldr	w8, [x19, #4]
	cmp	w8, #2
	b.ge	LBB0_14
; %bb.6:
	ldp	w22, w8, [x19, #8]
	sub	w9, w21, w22
	add	w8, w9, w8
Lloh4:
	adrp	x23, _HID_MAX_USAGES@GOTPAGE
Lloh5:
	ldr	x23, [x23, _HID_MAX_USAGES@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w8, w9
	b.lo	LBB0_10
; %bb.7:
	ldr	x0, [x19, #16]
	bl	_dev_name
	cbz	w0, LBB0_9
; %bb.8:
	ldr	x0, [x19, #16]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_hid_warn
LBB0_9:
	ldr	w8, [x23]
	ldp	w22, w9, [x19, #8]
	mvn	w9, w9
	add	w8, w8, w9
	adds	w21, w8, w22
	b.eq	LBB0_26
LBB0_10:
	cmp	w22, w21
	b.hi	LBB0_16
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x20, #4]
	mov	x0, x19
	mov	x1, x22
	bl	_hid_add_usage
	cbnz	w0, LBB0_28
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w22, w22, #1
	cmp	w22, w21
	b.ls	LBB0_11
	b	LBB0_17
LBB0_13:
	ldr	w8, [x19, #4]
	cmp	w8, #2
	b.lt	LBB0_21
LBB0_14:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_15:
	bl	_dbg_hid
LBB0_16:
	mov	w0, #0
LBB0_17:
	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
	add	sp, sp, #80
	ret
LBB0_18:
	ldr	w8, [x19]
	cbz	w21, LBB0_22
; %bb.19:
	cbz	w8, LBB0_24
; %bb.20:
	ldr	x0, [x19, #16]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_27
LBB0_21:
	ldr	w2, [x20, #4]
	mov	x0, x19
	mov	x1, x21
	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
	add	sp, sp, #80
	b	_hid_add_usage
LBB0_22:
	cmp	w8, #0
	b.le	LBB0_25
; %bb.23:
	mov	w0, #0
	sub	w8, w8, #1
	str	w8, [x19]
	b	LBB0_17
LBB0_24:
	mov	w0, #0
	mov	w8, #1
	ldr	w9, [x19, #4]
	add	w9, w9, #1
	stp	w8, w9, [x19]
	b	LBB0_17
LBB0_25:
	ldr	x0, [x19, #16]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_27
LBB0_26:
	ldr	x0, [x19, #16]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_27:
	bl	_hid_err
	mov	w0, #-1
	b	LBB0_17
LBB0_28:
Lloh16:
	adrp	x0, l_.str.5@PAGE
Lloh17:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_dbg_hid
	mov	w0, #-1
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nested delimiters\n"

l_.str.1:                               ; @.str.1
	.asciz	"bogus close delimiter\n"

l_.str.2:                               ; @.str.2
	.asciz	"alternative usage ignored\n"

	.comm	_HID_MAX_USAGES,4,2             ; @HID_MAX_USAGES
l_.str.3:                               ; @.str.3
	.asciz	"ignoring exceeding usage max\n"

l_.str.4:                               ; @.str.4
	.asciz	"no more usage index available\n"

l_.str.5:                               ; @.str.5
	.asciz	"hid_add_usage failed\n"

l_.str.6:                               ; @.str.6
	.asciz	"unknown local item tag 0x%x\n"

	.no_dead_strip	_hid_parser_local
.subsections_via_symbols
