	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function index_from_urltemplate
_index_from_urltemplate:                ## @index_from_urltemplate
	.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, %r14
	movq	_url_templates@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	movq	(%rbx), %rcx
	movl	%eax, %eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	-1(%rax), %rbx
	cmpq	%r14, -8(%rcx,%rax,8)
	movq	%rbx, %rax
	jne	LBB0_1
## %bb.4:
	testq	%r14, %r14
	je	LBB0_7
## %bb.5:
	testl	%ebx, %ebx
	jne	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_FIXME
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_2:
	decl	%eax
	movl	%eax, %ebx
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_TRACE
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_url_templates,8,3              ## @url_templates
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"URLTEMPLATE 0x%x not supported\n"

L_.str.1:                               ## @.str.1
	.asciz	"URLTEMPLATE 0x%08x=> Level %d\n"

	.no_dead_strip	_index_from_urltemplate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function index_from_urltemplate
_index_from_urltemplate:                ; @index_from_urltemplate
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _url_templates@GOTPAGE
Lloh1:
	ldr	x21, [x21, _url_templates@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	mov	x20, x0
	ldr	x8, [x21]
	add	x8, x8, w0, uxtw #3
	sub	x8, x8, #8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w20, #0
	b.le	LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x8], #-8
	sub	w20, w20, #1
	cmp	x9, x19
	b.ne	LBB0_1
; %bb.3:
	cbz	x19, LBB0_7
; %bb.4:
	cbnz	w20, LBB0_7
; %bb.5:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_FIXME
	b	LBB0_7
LBB0_6:
	sub	w20, w20, #1
LBB0_7:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_TRACE
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_url_templates,8,3              ; @url_templates
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"URLTEMPLATE 0x%x not supported\n"

l_.str.1:                               ; @.str.1
	.asciz	"URLTEMPLATE 0x%08x=> Level %d\n"

	.no_dead_strip	_index_from_urltemplate
.subsections_via_symbols
