	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chooseScript
_chooseScript:                          ## @chooseScript
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_num_scripts@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	$1, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_total_weight@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	decq	%rdx
	xorl	%esi, %esi
	callq	_getrand
	movq	%rax, %rcx
	movq	_sql_script@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	$-1, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incl	%eax
	subq	(%rdx), %rcx
	leaq	8(%rdx), %rdx
	jns	LBB0_2
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_num_scripts,4,2                ## @num_scripts
	.comm	_total_weight,8,3               ## @total_weight
	.comm	_sql_script,8,3                 ## @sql_script
	.no_dead_strip	_chooseScript
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chooseScript
_chooseScript:                          ; @chooseScript
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _num_scripts@GOTPAGE
Lloh1:
	ldr	x8, [x8, _num_scripts@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #0
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _total_weight@GOTPAGE
Lloh4:
	ldr	x8, [x8, _total_weight@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	sub	x2, x8, #1
	mov	w1, #0
	bl	_getrand
Lloh6:
	adrp	x8, _sql_script@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sql_script@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x8]
	mov	w8, #-1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #8
	add	w8, w8, #1
	subs	x0, x0, x10
	b.pl	LBB0_3
LBB0_4:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_num_scripts,4,2                ; @num_scripts
	.comm	_total_weight,8,3               ; @total_weight
	.comm	_sql_script,8,3                 ; @sql_script
	.no_dead_strip	_chooseScript
.subsections_via_symbols
