	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exec_script
_exec_script:                           ## @exec_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r13d
	movq	%rdi, %r15
	callq	_nouveau_bios
	movq	%rax, %r12
	movl	$1, %ebx
	movl	%r13d, %ecx
	shll	%cl, %ebx
	movq	%r15, %rdi
	movl	$6553984, %esi                  ## imm = 0x640180
	callq	_nv_rd32
	btl	%r13d, %eax
	movl	$0, %edx
	jb	LBB0_15
## %bb.1:
	movq	%r15, %rdi
	movl	$6554016, %esi                  ## imm = 0x6401A0
	callq	_nv_rd32
	movl	$1, %edx
	testl	%ebx, %eax
	jne	LBB0_15
## %bb.2:
	movq	%r15, %rdi
	movl	$6554048, %esi                  ## imm = 0x6401C0
	callq	_nv_rd32
	testl	%ebx, %eax
	je	LBB0_4
## %bb.3:
	movl	$2, %edx
	jmp	LBB0_15
LBB0_4:
	movq	%r15, %rdi
	movl	$6554080, %esi                  ## imm = 0x6401E0
	callq	_nv_rd32
	testl	%ebx, %eax
	je	LBB0_6
## %bb.5:
	movl	$3, %edx
	jmp	LBB0_15
LBB0_6:
	movq	%r15, %rdi
	movl	$6554112, %esi                  ## imm = 0x640200
	callq	_nv_rd32
	testl	%ebx, %eax
	je	LBB0_8
## %bb.7:
	movl	$4, %edx
	jmp	LBB0_15
LBB0_8:
	movq	%r15, %rdi
	movl	$6554144, %esi                  ## imm = 0x640220
	callq	_nv_rd32
	testl	%ebx, %eax
	je	LBB0_10
## %bb.9:
	movl	$5, %edx
	jmp	LBB0_15
LBB0_10:
	movq	%r15, %rdi
	movl	$6554176, %esi                  ## imm = 0x640240
	callq	_nv_rd32
	testl	%ebx, %eax
	je	LBB0_12
## %bb.11:
	movl	$6, %edx
	jmp	LBB0_15
LBB0_12:
	movq	%r15, %rdi
	movl	$6554208, %esi                  ## imm = 0x640260
	callq	_nv_rd32
	testl	%ebx, %eax
	je	LBB0_13
## %bb.14:
	movl	$7, %edx
LBB0_15:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %rbx
	leaq	-68(%rbp), %r10
	leaq	-72(%rbp), %r11
	leaq	-56(%rbp), %r12
	leaq	-80(%rbp), %r9
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%eax, %ecx
	movq	%r12, %r8
	pushq	%rbx
	pushq	%r10
	pushq	%r11
	leaq	-76(%rbp), %rax
	pushq	%rax
	callq	_exec_lookup
	addq	$32, %rsp
	testq	%rax, %rax
	movl	$0, %ecx
	je	LBB0_17
## %bb.16:
	movl	%r13d, -120(%rbp)
	movl	$1, -116(%rbp)
	movq	%r12, -112(%rbp)
	movq	-64(%rbp), %rax
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -104(%rbp)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -96(%rbp)
	movq	%r15, %rdi
	callq	_nv_subdev
	movl	%eax, -88(%rbp)
	leaq	-120(%rbp), %rdi
	callq	_nvbios_exec
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
LBB0_17:
	movl	%ecx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%ecx, %ecx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_exec_script
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exec_script
_exec_script:                           ; @exec_script
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	w23, #384
	movk	w23, #100, lsl #16
	bl	_nouveau_bios
	mov	x22, x0
	mov	w8, #1
	lsl	w24, w8, w21
	mov	x0, x19
	mov	w1, #384
	movk	w1, #100, lsl #16
	bl	_nv_rd32
	tst	w0, w24
	b.eq	LBB0_2
; %bb.1:
	mov	x3, x0
	mov	w2, #0
	b	LBB0_16
LBB0_2:
	add	w1, w23, #32
	mov	x0, x19
	bl	_nv_rd32
	tst	w0, w24
	b.eq	LBB0_4
; %bb.3:
	mov	x3, x0
	mov	w2, #1
	b	LBB0_16
LBB0_4:
	add	w1, w23, #64
	mov	x0, x19
	bl	_nv_rd32
	tst	w0, w24
	b.eq	LBB0_6
; %bb.5:
	mov	x3, x0
	mov	w2, #2
	b	LBB0_16
LBB0_6:
	add	w1, w23, #96
	mov	x0, x19
	bl	_nv_rd32
	tst	w0, w24
	b.eq	LBB0_8
; %bb.7:
	mov	x3, x0
	mov	w2, #3
	b	LBB0_16
LBB0_8:
	add	w1, w23, #128
	mov	x0, x19
	bl	_nv_rd32
	tst	w0, w24
	b.eq	LBB0_10
; %bb.9:
	mov	x3, x0
	mov	w2, #4
	b	LBB0_16
LBB0_10:
	add	w1, w23, #160
	mov	x0, x19
	bl	_nv_rd32
	tst	w0, w24
	b.eq	LBB0_12
; %bb.11:
	mov	x3, x0
	mov	w2, #5
	b	LBB0_16
LBB0_12:
	add	w1, w23, #192
	mov	x0, x19
	bl	_nv_rd32
	tst	w0, w24
	b.eq	LBB0_14
; %bb.13:
	mov	x3, x0
	mov	w2, #6
	b	LBB0_16
LBB0_14:
	add	w1, w23, #224
	mov	x0, x19
	bl	_nv_rd32
	tst	w0, w24
	b.eq	LBB0_19
; %bb.15:
	mov	x3, x0
	mov	w2, #7
LBB0_16:
	sub	x8, x29, #56
	add	x9, sp, #64
	stp	x9, x8, [sp]
	sub	x23, x29, #64
	sub	x4, x29, #64
	sub	x5, x29, #68
	add	x6, sp, #72
	add	x7, sp, #68
	mov	x0, x19
	mov	x1, x21
	bl	_exec_lookup
	cbz	x0, LBB0_18
; %bb.17:
	mov	w8, #1
	stp	w21, w8, [sp, #24]
	str	x23, [sp, #32]
	ldur	x8, [x29, #-56]
	ldr	w8, [x8, w20, sxtw #2]
	str	w8, [sp, #40]
	str	x22, [sp, #48]
	mov	x0, x19
	bl	_nv_subdev
	str	w0, [sp, #56]
	add	x0, sp, #24
	bl	_nvbios_exec
	cmp	x0, #0
	cset	w0, eq
LBB0_18:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_19:
	mov	w0, #0
	b	LBB0_18
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_exec_script
.subsections_via_symbols
