	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gm200_secboot_run_blob         ## -- Begin function gm200_secboot_run_blob
	.p2align	4, 0x90
_gm200_secboot_run_blob:                ## @gm200_secboot_run_blob
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	callq	_gm200_secboot
	movq	%rax, %r13
	leaq	8(%rax), %r12
	movq	$0, -48(%rbp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_nvkm_falcon_get
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movl	$12, %esi
	callq	_nvkm_vmm_get
	movl	%eax, %ebx
	testl	%eax, %eax
	movq	%r14, %r12
	jne	LBB0_8
## %bb.2:
	movl	(%r13), %edx
	movq	-48(%rbp), %rcx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_nvkm_memory_map
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	%r12, %rdi
	callq	_nvkm_falcon_reset
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
LBB0_7:
	movl	(%r15), %edi
	movq	(%r12), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_nvkm_mc_intr_mask
	movl	(%r13), %edi
	leaq	-48(%rbp), %rsi
	callq	_nvkm_vmm_put
LBB0_8:
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_nvkm_falcon_put
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	4(%r13), %esi
	movq	%r12, %rdi
	callq	_nvkm_falcon_bind_context
	movq	8(%r15), %rdi
	movq	(%rdi), %rax
	movq	-48(%rbp), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:
	movl	(%r15), %edi
	movq	(%r12), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_nvkm_mc_intr_mask
	movq	%r12, %rdi
	movl	$64, %esi
	movl	$-559045211, %edx               ## imm = 0xDEADA5A5
	callq	_nvkm_falcon_wr32
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_nvkm_falcon_set_start_addr
	movq	%r12, %rdi
	callq	_nvkm_falcon_start
	movq	%r12, %rdi
	movl	$100, %esi
	callq	_nvkm_falcon_wait_for_halt
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	movl	$64, %esi
	callq	_nvkm_falcon_rd32
	movl	%eax, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gm200_secboot_run_blob         ; -- Begin function gm200_secboot_run_blob
	.p2align	2
_gm200_secboot_run_blob:                ; @gm200_secboot_run_blob
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x24, x1
	mov	x22, x0
	bl	_gm200_secboot
	mov	x21, x0
	add	x20, x0, #8
	str	xzr, [sp, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_nvkm_falcon_get
	mov	x23, x0
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	w0, [x21]
	ldr	w2, [x24]
	add	x3, sp, #8
	mov	w1, #12
	bl	_nvkm_vmm_get
	mov	x23, x0
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	w2, [x21]
	ldr	x3, [sp, #8]
	mov	x0, x24
	mov	w1, #0
	mov	x4, #0
	mov	w5, #0
	bl	_nvkm_memory_map
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_nvkm_falcon_reset
	mov	x23, x0
	cbz	w0, LBB0_7
LBB0_4:
	ldr	w0, [x22]
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	w2, #1
	bl	_nvkm_mc_intr_mask
	ldr	w0, [x21]
	add	x1, sp, #8
	bl	_nvkm_vmm_put
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_nvkm_falcon_put
LBB0_6:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	ldr	w1, [x21, #4]
	mov	x0, x19
	bl	_nvkm_falcon_bind_context
	ldr	x0, [x22, #8]
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x9, [sp, #8]
	ldr	w3, [x9]
	mov	x1, x19
	mov	x2, x24
	blr	x8
	mov	x23, x0
	tbnz	w0, #31, LBB0_4
; %bb.8:
	ldr	w0, [x22]
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	w2, #0
	bl	_nvkm_mc_intr_mask
	mov	x0, x19
	mov	w1, #64
	mov	w2, #42405
	movk	w2, #57005, lsl #16
	bl	_nvkm_falcon_wr32
	mov	x0, x19
	mov	x1, x23
	bl	_nvkm_falcon_set_start_addr
	mov	x0, x19
	bl	_nvkm_falcon_start
	mov	x0, x19
	mov	w1, #100
	bl	_nvkm_falcon_wait_for_halt
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.9:
	mov	x0, x19
	mov	w1, #64
	bl	_nvkm_falcon_rd32
	mov	x23, x0
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
