	.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, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_nouveau_bios
	movl	$1, %r12d
	movl	%r15d, %ecx
	shll	%cl, %r12d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movl	$6359900, %ebx                  ## imm = 0x610B5C
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_nv_rd32
	leal	1(%r13), %edx
	testl	%r12d, %eax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	$8, %ebx
	cmpl	$2, %r13d
	movl	%edx, %r13d
	jb	LBB0_1
LBB0_3:
	testl	%r12d, %eax
	jne	LBB0_10
## %bb.4:
	movq	%r14, %rdi
	callq	_nv_device
	cmpl	$144, (%rax)
	jl	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	callq	_nv_device
	cmpl	$146, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_nv_device
	cmpl	$160, (%rax)
	jne	LBB0_20
LBB0_7:
	movq	%r14, %rdi
	movl	$6359924, %esi                  ## imm = 0x610B74
	callq	_nv_rd32
	testl	%r12d, %eax
	je	LBB0_9
## %bb.8:
	movl	$5, %edx
	jmp	LBB0_10
LBB0_9:
	movq	%r14, %rdi
	movl	$6359932, %esi                  ## imm = 0x610B7C
	callq	_nv_rd32
	movl	$6, %edx
LBB0_10:
	testl	%r12d, %eax
	jne	LBB0_15
## %bb.11:
	movl	$8, %ebx
	movl	$6359940, %r13d                 ## imm = 0x610B84
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_nv_rd32
	leal	1(%rbx), %edx
	testl	%r12d, %eax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	addl	$-8, %ebx
	addl	$8, %r13d
	cmpl	$2, %ebx
	movl	%edx, %ebx
	jb	LBB0_12
LBB0_14:
	testl	%r12d, %eax
	je	LBB0_18
LBB0_15:
	decl	%edx
	leaq	-72(%rbp), %r10
	leaq	-76(%rbp), %r11
	leaq	-80(%rbp), %r12
	leaq	-84(%rbp), %r13
	leaq	-64(%rbp), %rbx
	leaq	-88(%rbp), %r9
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %ecx
	movq	%rbx, %r8
	pushq	%r10
	pushq	%r11
	pushq	%r12
	pushq	%r13
	callq	_exec_lookup
	addq	$32, %rsp
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movl	%r15d, -128(%rbp)
	movl	$1, -124(%rbp)
	movq	%rbx, -120(%rbp)
	movq	-72(%rbp), %rax
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -112(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -104(%rbp)
	movq	%r14, %rdi
	callq	_nv_subdev
	movl	%eax, -96(%rbp)
	leaq	-128(%rbp), %rdi
	callq	_nvbios_exec
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	sete	%al
	jmp	LBB0_19
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	$4, %ebx
	movl	$6358936, %r13d                 ## imm = 0x610798
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_nv_rd32
	leal	1(%rbx), %edx
	testl	%r12d, %eax
	jne	LBB0_10
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	addl	$-4, %ebx
	addl	$8, %r13d
	cmpl	$3, %ebx
	movl	%edx, %ebx
	jb	LBB0_21
	jmp	LBB0_10
	.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, #176
	.cfi_def_cfa_offset 176
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	w24, #1944
	movk	w24, #97, lsl #16
	bl	_nouveau_bios
	mov	x22, x0
	mov	w25, #1
	lsl	w23, w25, w21
	add	w1, w24, #964
	mov	x0, x19
	bl	_nv_rd32
	ands	w9, w0, w23
	cset	w8, eq
	cbz	w9, LBB0_2
; %bb.1:
	mov	x3, x0
	cbnz	w8, LBB0_5
	b	LBB0_12
LBB0_2:
	add	w1, w24, #972
	mov	x0, x19
	bl	_nv_rd32
	ands	w9, w0, w23
	cset	w8, eq
	cbz	w9, LBB0_4
; %bb.3:
	mov	x3, x0
	mov	w25, #2
	cbnz	w8, LBB0_5
	b	LBB0_12
LBB0_4:
	add	w1, w24, #980
	mov	x0, x19
	bl	_nv_rd32
	mov	x3, x0
	tst	w0, w23
	cset	w8, eq
	mov	w25, #3
	cbz	w8, LBB0_12
LBB0_5:
	mov	x0, x19
	bl	_nv_device
	ldr	w8, [x0]
	cmp	w8, #144
	b.lt	LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_nv_device
	ldr	w8, [x0]
	cmp	w8, #146
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_nv_device
	ldr	w8, [x0]
	cmp	w8, #160
	b.ne	LBB0_18
LBB0_8:
	add	w1, w24, #988
	mov	x0, x19
	bl	_nv_rd32
	tst	w0, w23
	b.eq	LBB0_10
LBB0_9:
	mov	x3, x0
	mov	w25, #5
	b	LBB0_12
LBB0_10:
	add	w1, w24, #996
	mov	w25, #6
LBB0_11:
	mov	x0, x19
	bl	_nv_rd32
	mov	x3, x0
LBB0_12:
	tst	w3, w23
	b.ne	LBB0_22
; %bb.13:
	add	w1, w24, #1004
	mov	x0, x19
	bl	_nv_rd32
	ands	w9, w0, w23
	cset	w8, eq
	cbz	w9, LBB0_15
; %bb.14:
	mov	x3, x0
	mov	w25, #9
	tbnz	w8, #0, LBB0_17
	b	LBB0_22
LBB0_15:
	add	w1, w24, #1012
	mov	x0, x19
	bl	_nv_rd32
	ands	w9, w0, w23
	cset	w8, eq
	cbz	w9, LBB0_21
; %bb.16:
	mov	x3, x0
	mov	w25, #10
	tbz	w8, #0, LBB0_22
LBB0_17:
	mov	w0, #0
	b	LBB0_24
LBB0_18:
	mov	x0, x19
	mov	w1, #1944
	movk	w1, #97, lsl #16
	bl	_nv_rd32
	tst	w0, w23
	b.ne	LBB0_9
; %bb.19:
	add	w1, w24, #8
	mov	x0, x19
	bl	_nv_rd32
	tst	w0, w23
	b.eq	LBB0_25
; %bb.20:
	mov	x3, x0
	mov	w25, #6
	b	LBB0_12
LBB0_21:
	add	w1, w24, #1020
	mov	x0, x19
	bl	_nv_rd32
	mov	x3, x0
	tst	w0, w23
	cset	w8, eq
	mov	w25, #11
	tbnz	w8, #0, LBB0_17
LBB0_22:
	sub	w2, w25, #1
	sub	x8, x29, #72
	add	x9, sp, #64
	stp	x9, x8, [sp]
	add	x23, sp, #80
	add	x4, sp, #80
	add	x5, sp, #76
	add	x6, sp, #72
	add	x7, sp, #68
	mov	x0, x19
	mov	x1, x21
	bl	_exec_lookup
	cbz	x0, LBB0_24
; %bb.23:
	mov	w8, #1
	stp	w21, w8, [sp, #24]
	str	x23, [sp, #32]
	ldur	x8, [x29, #-72]
	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_24:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_25:
	add	w1, w24, #16
	mov	x0, x19
	bl	_nv_rd32
	tst	w0, w23
	b.eq	LBB0_27
; %bb.26:
	mov	x3, x0
	mov	w25, #7
	b	LBB0_12
LBB0_27:
	add	w1, w24, #24
	mov	w25, #8
	b	LBB0_11
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_exec_script
.subsections_via_symbols
