	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GET_TOK
_GET_TOK:                               ## @GET_TOK
	.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	%rdi, %rbx
	movq	(%rdi), %rdx
	movq	8(%rdi), %rax
	movslq	%esi, %rcx
	movq	(%rdx,%rcx,8), %r8
	movq	(%rax,%rcx,8), %r9
	cmpq	%r9, %r8
	jae	LBB0_1
## %bb.2:
	movq	_TM2_MOT@GOTPCREL(%rip), %rax
	movq	24(%rbx), %rsi
	movq	(%rsi,%rcx,8), %rsi
	cmpl	%ecx, (%rax)
	jge	LBB0_3
## %bb.6:
	leaq	1(%r8), %rax
	movq	%rax, (%rdx,%rcx,8)
	movl	(%rsi,%r8,8), %r14d
	jmp	LBB0_7
LBB0_1:
	movl	40(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_av_log
	movl	$1, 16(%rbx)
	jmp	LBB0_7
LBB0_3:
	movq	(%rsi,%r8,8), %rax
	movq	_TM2_DELTAS@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	jae	LBB0_4
## %bb.5:
	movq	32(%rbx), %rax
	movq	(%rax,%rcx,8), %rax
	leaq	1(%r8), %rdi
	movq	%rdi, (%rdx,%rcx,8)
	movq	(%rsi,%r8,8), %rcx
	movl	(%rax,%rcx,4), %r14d
	jmp	LBB0_7
LBB0_4:
	movl	40(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_av_log
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Read token from stream %i out of bounds (%i>=%i)\n"

	.comm	_TM2_MOT,4,2                    ## @TM2_MOT
	.comm	_TM2_DELTAS,8,3                 ## @TM2_DELTAS
L_.str.1:                               ## @.str.1
	.asciz	"token %d is too large\n"

	.no_dead_strip	_GET_TOK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GET_TOK
_GET_TOK:                               ; @GET_TOK
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	sxtw	x3, w1
	sbfiz	x8, x1, #3, #32
	ldp	x10, x11, [x0]
	ldr	x9, [x10, x8]
	ldr	x8, [x11, x8]
	cmp	x9, x8
	b.hs	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _TM2_MOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TM2_MOT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x11, [x19, #24]
	ldr	x11, [x11, x3, lsl #3]
	cmp	w8, w1
	b.ge	LBB0_4
; %bb.2:
	add	x8, x9, #1
	str	x8, [x10, x3, lsl #3]
	ldr	x0, [x11, x9, lsl #3]
	b	LBB0_7
LBB0_3:
	ldr	w0, [x19, #40]
Lloh3:
	adrp	x10, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x10]
	stp	x9, x8, [sp]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19, #16]
	b	LBB0_7
LBB0_4:
	ldr	x8, [x11, x9, lsl #3]
Lloh8:
	adrp	x12, _TM2_DELTAS@GOTPAGE
Lloh9:
	ldr	x12, [x12, _TM2_DELTAS@GOTPAGEOFF]
Lloh10:
	ldr	x12, [x12]
	cmp	x8, x12
	b.hs	LBB0_6
; %bb.5:
	ldr	x8, [x19, #32]
	lsl	x12, x3, #3
	ldr	x8, [x8, x12]
	add	x13, x9, #1
	str	x13, [x10, x12]
	ldr	x9, [x11, x9, lsl #3]
	ldr	w0, [x8, x9, lsl #2]
	b	LBB0_7
LBB0_6:
	ldr	w0, [x19, #40]
Lloh11:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x8
	bl	_av_log
	mov	w0, #0
LBB0_7:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Read token from stream %i out of bounds (%i>=%i)\n"

	.comm	_TM2_MOT,4,2                    ; @TM2_MOT
	.comm	_TM2_DELTAS,8,3                 ; @TM2_DELTAS
l_.str.1:                               ; @.str.1
	.asciz	"token %d is too large\n"

	.no_dead_strip	_GET_TOK
.subsections_via_symbols
