	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_greedy_init_uri_add            ## -- Begin function greedy_init_uri_add
	.p2align	4, 0x90
_greedy_init_uri_add:                   ## @greedy_init_uri_add
	.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
	subq	$272, %rsp                      ## imm = 0x110
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	(%rdi), %esi
	leaq	-288(%rbp), %r14
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_memcpy
	movslq	%ebx, %rax
	movb	$0, -288(%rbp,%rax)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_get_uri_f
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_assert
	cmpq	$0, (%rbx)
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_cache_get_uri_size
	movq	_cached_bytes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	%rax, %rdx
	movq	_simulation_params@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jg	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rsi, (%rbx)
	movq	_simulation_stats@GOTPCREL(%rip), %rsi
	incl	8(%rsi)
	movq	%rdx, (%rcx)
	addq	%rax, (%rsi)
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$272, %rsp                      ## imm = 0x110
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_cached_bytes,8,3               ## @cached_bytes
	.comm	_simulation_params,8,3          ## @simulation_params
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cached"

	.comm	_simulation_stats,16,3          ## @simulation_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_greedy_init_uri_add            ; -- Begin function greedy_init_uri_add
	.p2align	2
_greedy_init_uri_add:                   ; @greedy_init_uri_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w27, -40
	.cfi_offset w28, -48
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	w1, [x0]
	add	x20, sp, #8
	add	x0, sp, #8
	mov	x2, x19
	bl	_memcpy
	strb	wzr, [x20, w19, sxtw]
	add	x0, sp, #8
	mov	w1, #0
	bl	_get_uri_f
	mov	x19, x0
	bl	_assert
	ldr	x8, [x19]
	cbnz	x8, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_cache_get_uri_size
Lloh3:
	adrp	x8, _cached_bytes@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cached_bytes@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh5:
	adrp	x10, _simulation_params@GOTPAGE
Lloh6:
	ldr	x10, [x10, _simulation_params@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	add	x9, x9, x0
	cmp	x9, x10
	b.gt	LBB0_3
; %bb.2:
Lloh8:
	adrp	x10, l_.str@PAGE
Lloh9:
	add	x10, x10, l_.str@PAGEOFF
	str	x10, [x19]
	str	x9, [x8]
Lloh10:
	adrp	x8, _simulation_stats@GOTPAGE
Lloh11:
	ldr	x8, [x8, _simulation_stats@GOTPAGEOFF]
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
	ldr	x9, [x8]
	add	x9, x9, x0
	str	x9, [x8]
LBB0_3:
	ldur	x8, [x29, #-40]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_cached_bytes,8,3               ; @cached_bytes
	.comm	_simulation_params,8,3          ; @simulation_params
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cached"

	.comm	_simulation_stats,16,3          ; @simulation_stats
.subsections_via_symbols
