	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rsi)
	je	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_item_udata
	movl	%eax, %r14d
	movl	8(%rbx), %esi
	leal	-128(%rsi), %eax
	cmpl	$3, %eax
	ja	LBB0_29
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_17:
	cmpl	$2, 4(%r15)
	jge	LBB0_13
## %bb.18:
	cmpq	$2, (%rbx)
	jg	LBB0_20
## %bb.19:
	movl	12(%r15), %eax
	shll	$16, %eax
	addl	%eax, %r14d
LBB0_20:
	movl	%r14d, 8(%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_30
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_dbg_hid
	movl	$-1, %r12d
	jmp	LBB0_30
LBB0_29:
	leaq	L_.str.5(%rip), %rdi
	xorl	%r12d, %r12d
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_dbg_hid
	jmp	LBB0_30
LBB0_21:
	cmpl	$2, 4(%r15)
	jge	LBB0_13
## %bb.22:
	cmpq	$2, (%rbx)
	jg	LBB0_24
## %bb.23:
	movl	12(%r15), %eax
	shll	$16, %eax
	addl	%eax, %r14d
LBB0_24:
	movl	8(%r15), %ebx
	xorl	%r12d, %r12d
	cmpl	%r14d, %ebx
	ja	LBB0_30
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_hid_add_usage
	testl	%eax, %eax
	jne	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_27 Depth=1
	incl	%ebx
	cmpl	%r14d, %ebx
	jbe	LBB0_27
	jmp	LBB0_30
LBB0_12:
	cmpl	$2, 4(%r15)
	jl	LBB0_14
LBB0_13:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dbg_hid
LBB0_30:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r15), %eax
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.6:
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_14:
	cmpq	$2, (%rbx)
	jg	LBB0_16
## %bb.15:
	movl	12(%r15), %eax
	shll	$16, %eax
	addl	%eax, %r14d
LBB0_16:
	movq	%r15, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hid_add_usage                  ## TAILCALL
LBB0_9:
	testl	%eax, %eax
	jle	LBB0_10
## %bb.11:
	decl	%eax
	movl	%eax, (%r15)
	movl	$1, %r12d
	jmp	LBB0_30
LBB0_8:
	movl	$1, (%r15)
	incl	4(%r15)
	movl	$1, %r12d
	jmp	LBB0_30
LBB0_28:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_2
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_21
	.long	L0_0_set_12
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"item data expected for local item\n"

L_.str.1:                               ## @.str.1
	.asciz	"nested delimiters\n"

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

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

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

L_.str.5:                               ## @.str.5
	.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, #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
	ldr	x8, [x1]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_item_udata
	ldr	w8, [x21, #8]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hi	LBB0_20
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x8, lJTI0_0@PAGE
Lloh1:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldr	w8, [x19, #4]
	cmp	w8, #2
	b.ge	LBB0_16
; %bb.4:
	ldr	x8, [x21]
	cmp	x8, #2
	b.gt	LBB0_6
; %bb.5:
	ldr	w8, [x19, #12]
	add	w20, w20, w8, lsl #16
LBB0_6:
	mov	w0, #0
	str	w20, [x19, #8]
	b	LBB0_23
LBB0_7:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_8:
	bl	_dbg_hid
	mov	w0, #-1
	b	LBB0_23
LBB0_9:
	ldr	w8, [x19, #4]
	cmp	w8, #2
	b.ge	LBB0_16
; %bb.10:
	ldr	x8, [x21]
	cmp	x8, #2
	b.gt	LBB0_12
; %bb.11:
	ldr	w8, [x19, #12]
	add	w20, w20, w8, lsl #16
LBB0_12:
	ldr	w21, [x19, #8]
	cmp	w21, w20
	b.hi	LBB0_22
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_hid_add_usage
	cbnz	w0, LBB0_30
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	w21, w21, #1
	cmp	w21, w20
	b.ls	LBB0_13
	b	LBB0_23
LBB0_15:
	ldr	w8, [x19, #4]
	cmp	w8, #2
	b.lt	LBB0_24
LBB0_16:
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_21
LBB0_17:
	ldr	w8, [x19]
	cbz	w20, LBB0_27
; %bb.18:
	cbz	w8, LBB0_29
; %bb.19:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_20:
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.5@PAGE
Lloh9:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_21:
	bl	_dbg_hid
LBB0_22:
	mov	w0, #0
LBB0_23:
	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
LBB0_24:
	ldr	x8, [x21]
	cmp	x8, #2
	b.gt	LBB0_26
; %bb.25:
	ldr	w8, [x19, #12]
	add	w20, w20, w8, lsl #16
LBB0_26:
	mov	x0, x19
	mov	x1, x20
	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
	b	_hid_add_usage
LBB0_27:
	cmp	w8, #0
	b.le	LBB0_31
; %bb.28:
	sub	w8, w8, #1
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_23
LBB0_29:
	mov	w0, #1
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	stp	w0, w8, [x19]
	b	LBB0_23
LBB0_30:
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_31:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_17-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"item data expected for local item\n"

l_.str.1:                               ; @.str.1
	.asciz	"nested delimiters\n"

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

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

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

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

	.no_dead_strip	_hid_parser_local
.subsections_via_symbols
