	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_script
_init_script:                           ## @init_script
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	%rdi, -24(%rbp)
	callq	_bmp_version
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_bmp_version
	cmpl	$1295, %eax                     ## imm = 0x50F
	jg	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	cmpl	$1, %r14d
	jg	LBB0_7
## %bb.3:
	xorl	%eax, %eax
	cmpl	$2, 4(%rbx)
	setge	%al
	addl	%r14d, %r14d
	addl	(%rbx), %r14d
	leal	(%r14,%rax,4), %esi
	addl	$14, %esi
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_nv_ro16                        ## TAILCALL
LBB0_4:
	leaq	-24(%rbp), %rdi
	callq	_init_script_table
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	leal	(%rax,%r14,2), %esi
	movq	%rbx, %rdi
	callq	_nv_ro16
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_init_script
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_script
_init_script:                           ; @init_script
	.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
	mov	x20, x1
	mov	x19, x0
	str	x0, [sp, #8]
	bl	_bmp_version
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_bmp_version
	cmp	w0, #1295
	b.gt	LBB0_4
; %bb.2:
	cmp	w20, #1
	b.le	LBB0_7
; %bb.3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	add	x0, sp, #8
	bl	_init_script_table
	cbz	w0, LBB0_6
; %bb.5:
	add	w1, w0, w20, lsl #1
	mov	x0, x19
	bl	_nv_ro16
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	ldp	w8, w9, [x19]
	mov	w10, #18
	mov	w11, #14
	cmp	w9, #2
	csel	w9, w11, w10, lt
	add	w8, w8, w20, lsl #1
	add	w1, w8, w9
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_nv_ro16
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_init_script
.subsections_via_symbols
