	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acr_boot_falcon_callback
_acr_boot_falcon_callback:              ## @acr_boot_falcon_callback
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %r15
	cmpq	$0, 8(%rsi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_nvkm_error
	movq	8(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	jmp	LBB0_4
LBB0_2:
	movq	16(%rbx), %r14
	movq	_NVKM_SECBOOT_FALCON_END@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jae	LBB0_3
## %bb.5:
	movq	_nvkm_secboot_falcon_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_debug                     ## TAILCALL
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_nvkm_error
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_error                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in bootstrap falcon callback:\n"

L_.str.1:                               ## @.str.1
	.asciz	"expected error code 0x%x\n"

	.comm	_NVKM_SECBOOT_FALCON_END,8,3    ## @NVKM_SECBOOT_FALCON_END
L_.str.2:                               ## @.str.2
	.asciz	"invalid falcon ID 0x%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s booted\n"

	.comm	_nvkm_secboot_falcon_name,8,3   ## @nvkm_secboot_falcon_name
	.no_dead_strip	_acr_boot_falcon_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acr_boot_falcon_callback
_acr_boot_falcon_callback:              ; @acr_boot_falcon_callback
	.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
	ldr	x8, [x0]
	ldr	x19, [x8]
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nvkm_error
	ldr	x8, [x20, #8]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_2:
	ldr	x20, [x20, #16]
Lloh4:
	adrp	x8, _NVKM_SECBOOT_FALCON_END@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NVKM_SECBOOT_FALCON_END@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x20, x8
	b.hs	LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _nvkm_secboot_falcon_name@GOTPAGE
Lloh8:
	ldr	x8, [x8, _nvkm_secboot_falcon_name@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	w2, [x8, x20, lsl #2]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	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	_nvkm_debug
LBB0_4:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nvkm_error
	str	x20, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_nvkm_error
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in bootstrap falcon callback:\n"

l_.str.1:                               ; @.str.1
	.asciz	"expected error code 0x%x\n"

	.comm	_NVKM_SECBOOT_FALCON_END,8,3    ; @NVKM_SECBOOT_FALCON_END
l_.str.2:                               ; @.str.2
	.asciz	"invalid falcon ID 0x%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s booted\n"

	.comm	_nvkm_secboot_falcon_name,8,3   ; @nvkm_secboot_falcon_name
	.no_dead_strip	_acr_boot_falcon_callback
.subsections_via_symbols
