	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tl_get_item_id
_tl_get_item_id:                        ## @tl_get_item_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_tl_fetch_int
	movl	%eax, %r14d
	leal	-3(%r14), %eax
	cmpl	$-3, %eax
	ja	LBB0_2
## %bb.1:
	movq	_TL_ERROR_VALUE_NOT_IN_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_tl_fetch_set_error
	movq	$-1, %rbx
	jmp	LBB0_9
LBB0_2:
	cmpl	$2, %r14d
	jne	LBB0_3
## %bb.4:
	xorl	%eax, %eax
	callq	_tl_fetch_int
	movl	%eax, %r12d
	jmp	LBB0_5
LBB0_3:
	xorl	%r12d, %r12d
LBB0_5:
	xorl	%eax, %eax
	callq	_tl_fetch_int
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_tl_fetch_error
	movq	$-1, %rbx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	testl	%r15d, %r15d
	jle	LBB0_7
## %bb.8:
	movl	%r15d, %eax
	movq	%rax, %rbx
	shlq	$32, %rbx
	orq	%r12, %rbx
	cmpl	$2, %r14d
	cmovneq	%rax, %rbx
	jmp	LBB0_9
LBB0_7:
	movq	_TL_ERROR_VALUE_NOT_IN_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_tl_fetch_set_error
LBB0_9:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"number of ints in id should be 1 or 2"

	.comm	_TL_ERROR_VALUE_NOT_IN_RANGE,4,2 ## @TL_ERROR_VALUE_NOT_IN_RANGE
L_.str.1:                               ## @.str.1
	.asciz	"item_id should be positive"

	.no_dead_strip	_tl_get_item_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tl_get_item_id
_tl_get_item_id:                        ; @tl_get_item_id
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_tl_fetch_int
	sub	w8, w0, #3
	cmn	w8, #3
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _TL_ERROR_VALUE_NOT_IN_RANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TL_ERROR_VALUE_NOT_IN_RANGE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	bl	_tl_fetch_set_error
	mov	x0, #-1
	b	LBB0_10
LBB0_3:
	mov	x19, x0
	cmp	w0, #2
	b.ne	LBB0_5
; %bb.4:
	bl	_tl_fetch_int
	mov	w21, w0
	b	LBB0_6
LBB0_5:
	mov	x21, #0
LBB0_6:
	bl	_tl_fetch_int
	mov	x20, x0
	bl	_tl_fetch_error
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, #-1
	b	LBB0_10
LBB0_8:
	cmp	w20, #0
	b.le	LBB0_11
; %bb.9:
	mov	w8, w20
	bfi	x21, x8, #32, #32
	cmp	w19, #2
	csel	x0, x21, x8, eq
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh5:
	adrp	x8, _TL_ERROR_VALUE_NOT_IN_RANGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TL_ERROR_VALUE_NOT_IN_RANGE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"number of ints in id should be 1 or 2"

	.comm	_TL_ERROR_VALUE_NOT_IN_RANGE,4,2 ; @TL_ERROR_VALUE_NOT_IN_RANGE
l_.str.1:                               ; @.str.1
	.asciz	"item_id should be positive"

	.no_dead_strip	_tl_get_item_id
.subsections_via_symbols
