	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fetch_item
_fetch_item:                            ## @fetch_item
	.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, %rax
	subq	%rdi, %rax
	cmpq	$4, %rax
	jl	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	%rdi, %rbx
	leaq	4(%rdi), %rax
	movl	(%rdi), %ecx
	movl	%ecx, %edx
	shrl	$2, %edx
	andl	$3, %edx
	movl	%edx, (%r14)
	movl	%ecx, %edx
	shrl	$4, %edx
	andl	$15, %edx
	movl	%edx, 4(%r14)
	movq	_HID_ITEM_TAG_LONG@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %edx
	jne	LBB0_5
## %bb.3:
	movq	_HID_ITEM_FORMAT_LONG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%r14)
	movq	%rsi, %rcx
	subq	%rax, %rcx
	cmpq	$8, %rcx
	jl	LBB0_1
## %bb.8:
	movslq	4(%rbx), %rax
	movl	%eax, 8(%r14)
	movl	8(%rbx), %ecx
	addq	$12, %rbx
	movl	%ecx, 4(%r14)
	subq	%rbx, %rsi
	sarq	$2, %rsi
	cmpq	%rax, %rsi
	jl	LBB0_1
## %bb.14:
	movq	%rbx, 16(%r14)
	leaq	(%rbx,%rax,4), %rax
	jmp	LBB0_20
LBB0_5:
	movq	_HID_ITEM_FORMAT_SHORT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 40(%r14)
	andl	$3, %ecx
	movl	%ecx, 8(%r14)
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_6:
	subq	%rax, %rsi
	cmpq	$4, %rsi
	jl	LBB0_1
## %bb.18:
	movl	4(%rbx), %eax
	addq	$8, %rbx
	movl	%eax, 32(%r14)
	jmp	LBB0_19
LBB0_10:
	subq	%rax, %rsi
	cmpq	$8, %rsi
	jl	LBB0_1
## %bb.15:
	movq	%rax, %rdi
	callq	_get_unaligned_le16
	movl	%eax, 28(%r14)
	jmp	LBB0_17
LBB0_12:
	movl	$4, 8(%r14)
	subq	%rax, %rsi
	cmpq	$16, %rsi
	jge	LBB0_16
LBB0_1:
	xorl	%eax, %eax
LBB0_20:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_16:
	movq	%rax, %rdi
	callq	_get_unaligned_le32
	movl	%eax, 24(%r14)
LBB0_17:
	addq	$8, %rbx
LBB0_19:
	movq	%rbx, %rax
	jmp	LBB0_20
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_20
	.long	L0_0_set_6
	.long	L0_0_set_10
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_HID_ITEM_TAG_LONG,4,2          ## @HID_ITEM_TAG_LONG
	.comm	_HID_ITEM_FORMAT_LONG,4,2       ## @HID_ITEM_FORMAT_LONG
	.comm	_HID_ITEM_FORMAT_SHORT,4,2      ## @HID_ITEM_FORMAT_SHORT
	.no_dead_strip	_fetch_item
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fetch_item
_fetch_item:                            ; @fetch_item
	.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
	sub	x8, x1, x0
	cmp	x8, #4
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	ldr	w8, [x0], #4
	ubfx	w9, w8, #2, #2
	ubfx	w10, w8, #4, #4
	stp	w9, w10, [x2]
Lloh0:
	adrp	x9, _HID_ITEM_TAG_LONG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HID_ITEM_TAG_LONG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w10, w9
	b.ne	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _HID_ITEM_FORMAT_LONG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HID_ITEM_FORMAT_LONG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	sub	x8, x1, x0
	cmp	x8, #8
	b.lt	LBB0_11
; %bb.3:
	ldrsw	x8, [x20, #4]
	str	w8, [x19, #8]
	add	x9, x20, #12
	ldr	w10, [x20, #8]
	str	w10, [x19, #4]
	sub	x10, x1, x9
	cmp	x8, x10, asr #2
	b.gt	LBB0_11
; %bb.4:
	str	x9, [x19, #16]
	add	x0, x9, x8, lsl #2
	b	LBB0_12
LBB0_5:
Lloh6:
	adrp	x9, _HID_ITEM_FORMAT_SHORT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HID_ITEM_FORMAT_SHORT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [x19, #40]
	and	w8, w8, #0x3
	str	w8, [x19, #8]
Lloh9:
	adrp	x9, lJTI0_0@PAGE
Lloh10:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	sub	x8, x1, x0
	cmp	x8, #4
	b.lt	LBB0_11
; %bb.7:
	add	x0, x20, #8
	ldr	w8, [x20, #4]
	str	w8, [x19, #32]
	b	LBB0_12
LBB0_8:
	sub	x8, x1, x0
	cmp	x8, #8
	b.lt	LBB0_11
; %bb.9:
	bl	_get_unaligned_le16
	str	w0, [x19, #28]
	b	LBB0_14
LBB0_10:
	mov	w8, #4
	str	w8, [x19, #8]
	sub	x8, x1, x0
	cmp	x8, #16
	b.ge	LBB0_13
LBB0_11:
	mov	x0, #0
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	_get_unaligned_le32
	str	w0, [x19, #24]
LBB0_14:
	add	x0, x20, #8
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
                                        ; -- End function
	.comm	_HID_ITEM_TAG_LONG,4,2          ; @HID_ITEM_TAG_LONG
	.comm	_HID_ITEM_FORMAT_LONG,4,2       ; @HID_ITEM_FORMAT_LONG
	.comm	_HID_ITEM_FORMAT_SHORT,4,2      ; @HID_ITEM_FORMAT_SHORT
	.no_dead_strip	_fetch_item
.subsections_via_symbols
