	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acr_r352_load
_acr_r352_load:                         ## @acr_r352_load
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	callq	_acr_r352
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	cmpq	%r15, 48(%r12)
	je	LBB0_4
## %bb.5:
	cmpq	%r15, 24(%r12)
	je	LBB0_6
## %bb.9:
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_nvkm_error
	movq	%rbx, %rdi
	callq	_kfree
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_4:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %r13
	leaq	40(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rax
	addq	$32, %rax
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %r13
	leaq	16(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rax
	addq	$8, %rax
LBB0_7:
	movq	(%rax), %r14
	movslq	(%r14), %r15
	movslq	4(%r14), %rax
	addq	%r14, %rax
	movslq	(%r14,%r15), %rcx
	addq	%rax, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movslq	4(%r14,%r15), %rbx
	addq	%rax, %rbx
	movl	24(%r14,%r15), %edi
	movl	$256, %esi                      ## imm = 0x100
	callq	_ALIGN
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	16(%r14,%r15), %rcx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_nvkm_falcon_load_dmem
	movq	(%r13), %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	subq	%rcx, %rdx
	movl	8(%r14,%r15), %r8d
	movl	$0, (%rsp)
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	xorl	%r9d, %r9d
	callq	_nvkm_falcon_load_imem
	movq	(%r12), %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	*(%rax)
	movl	12(%r14,%r15), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	xorl	%r8d, %r8d
	callq	_nvkm_falcon_load_dmem
	movq	%rbx, %rdi
	callq	_kfree
	movl	8(%r14,%r15), %eax
	shll	$8, %eax
LBB0_8:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid secure boot blob!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_acr_r352_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acr_r352_load
_acr_r352_load:                         ; @acr_r352_load
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x25, x2
	mov	x20, x1
	mov	x24, x0
	bl	_acr_r352
	mov	x23, x0
	ldr	x8, [x0]
	ldr	x22, [x8, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x23, #48]
	cmp	x8, x25
	b.eq	LBB0_6
; %bb.2:
	ldr	x8, [x23, #24]
	cmp	x8, x25
	b.eq	LBB0_7
; %bb.3:
	ldr	w0, [x24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nvkm_error
	mov	x0, x19
	bl	_kfree
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_6:
	add	x24, x23, #40
	add	x8, x23, #32
	b	LBB0_8
LBB0_7:
	add	x24, x23, #16
	add	x8, x23, #8
LBB0_8:
	ldr	x8, [x8]
	ldpsw	x9, x10, [x8]
	add	x28, x8, x9
	ldpsw	x9, x11, [x28]
	add	x8, x8, x10
	add	x25, x8, x9
	add	x26, x8, x11
	ldr	w0, [x28, #24]
	mov	w1, #256
	bl	_ALIGN
	mov	x27, x0
	ldr	x3, [x28, #16]
	mov	x0, x20
	mov	x1, x26
	mov	w2, #0
	mov	w4, #0
	bl	_nvkm_falcon_load_dmem
	ldr	x8, [x20]
	sub	x2, x8, x27
	ldr	w4, [x28, #8]
	mov	x0, x20
	mov	x1, x25
	mov	x3, x27
	mov	w5, #0
	mov	w6, #0
	bl	_nvkm_falcon_load_imem
	ldr	x8, [x23]
	ldr	x8, [x8]
	mov	x0, x24
	mov	x1, x19
	mov	x2, x21
	blr	x8
	ldr	w2, [x28, #12]
	mov	x0, x20
	mov	x1, x19
	mov	x3, x22
	mov	w4, #0
	bl	_nvkm_falcon_load_dmem
	mov	x0, x19
	bl	_kfree
	ldr	w8, [x28, #8]
	lsl	w0, w8, #8
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid secure boot blob!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_acr_r352_load
.subsections_via_symbols
