	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__nouveau_falcon_init           ## -- Begin function _nouveau_falcon_init
	.p2align	4, 0x90
__nouveau_falcon_init:                  ## @_nouveau_falcon_init
	.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
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_nv_device
	movq	%rax, %r14
	movaps	l___const._nouveau_falcon_init.name+16(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	l___const._nouveau_falcon_init.name(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	leaq	72(%r12), %rdi
	callq	_nouveau_engine_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_58
## %bb.1:
	movl	(%r14), %eax
	cmpl	$163, %eax
	jl	LBB0_4
## %bb.2:
	cmpl	$172, %eax
	je	LBB0_4
## %bb.3:
	cmpl	$170, %eax
	jne	LBB0_5
LBB0_4:
	movl	$0, (%r12)
	xorl	%eax, %eax
	cmpl	$552960, 8(%r12)                ## imm = 0x87000
	sete	%al
LBB0_6:
	movl	%eax, 4(%r12)
	movq	%r12, %rdi
	movl	$264, %esi                      ## imm = 0x108
	callq	_nv_ro32
	movl	%eax, %ecx
	shll	$8, %ecx
	andl	$130816, %ecx                   ## imm = 0x1FF00
	movl	%ecx, 48(%r12)
	shrl	%eax
	andl	$130816, %eax                   ## imm = 0x1FF00
	movl	%eax, 16(%r12)
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_nv_debug
	movl	4(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_nv_debug
	movl	48(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_nv_debug
	movl	16(%r12), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_nv_debug
	cmpl	$0, 4(%r12)
	je	LBB0_12
## %bb.7:
	movl	(%r12), %eax
	cmpl	$3, %eax
	jg	LBB0_12
## %bb.8:
	movq	%r12, %rdi
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	$384, %esi                      ## imm = 0x180
	movl	$-2147483648, %edx              ## imm = 0x80000000
	xorl	%ecx, %ecx
	jmp	LBB0_11
LBB0_5:
	movq	%r12, %rdi
	movl	$300, %esi                      ## imm = 0x12C
	callq	_nv_ro32
	movl	%eax, %ecx
	andl	$15, %ecx
	movl	%ecx, (%r12)
	shrl	$4, %eax
	andl	$3, %eax
	jmp	LBB0_6
LBB0_9:
	movl	$8, %esi
	movl	$16, %edx
	movl	$16, %ecx
LBB0_11:
	callq	_nv_wait
	movq	%r12, %rdi
	movl	$4, %esi
	movl	$16, %edx
	callq	_nv_wo32
LBB0_12:
	movq	%r12, %rdi
	movl	$20, %esi
	movl	$-1, %edx
	callq	_nv_wo32
	cmpq	$0, 56(%r12)
	jne	LBB0_24
## %bb.13:
	movl	(%r14), %ecx
	movl	8(%r12), %r8d
	sarl	$12, %r8d
	leaq	L_.str.4(%rip), %rdx
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_snprintf
	movq	16(%r14), %rdx
	leaq	-88(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_request_firmware
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movq	-88(%rbp), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_kmemdup
	movq	%rax, 56(%r12)
	movq	-88(%rbp), %rdi
	movl	(%rdi), %eax
	movl	%eax, 64(%r12)
	movq	$0, 24(%r12)
	movl	$0, 32(%r12)
	callq	_release_firmware
LBB0_15:
	movl	$1, 12(%r12)
	cmpq	$0, 56(%r12)
	je	LBB0_16
LBB0_24:
	cmpq	$0, 24(%r12)
	leaq	L_.str.11(%rip), %rax
	leaq	L_.str.10(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.9(%rip), %rsi
	leaq	-80(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_nv_debug
	cmpq	$0, 24(%r12)
	jne	LBB0_30
## %bb.25:
	cmpq	$0, 40(%r12)
	je	LBB0_26
LBB0_30:
	cmpq	$0, 40(%r12)
	je	LBB0_32
## %bb.31:
	movq	8(%r14), %rax
	movq	_NV_C0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$67108864, %edx                 ## imm = 0x4000000
	movl	$276, %eax                      ## imm = 0x114
	cmovgel	%eax, %edx
	movq	%r12, %rdi
	movl	$1560, %esi                     ## imm = 0x618
	callq	_nv_wo32
	movq	%r12, %rdi
	movl	$284, %esi                      ## imm = 0x11C
	xorl	%edx, %edx
	callq	_nv_wo32
	movq	40(%r12), %rax
	movl	8(%rax), %edx
	sarl	$8, %edx
	movq	%r12, %rdi
	movl	$272, %esi                      ## imm = 0x110
	callq	_nv_wo32
	movq	%r12, %rdi
	movl	$276, %esi                      ## imm = 0x114
	xorl	%edx, %edx
	callq	_nv_wo32
	movq	%r12, %rdi
	movl	$280, %esi                      ## imm = 0x118
	movl	$26128, %edx                    ## imm = 0x6610
	callq	_nv_wo32
LBB0_44:
	cmpl	$2, (%r12)
	jg	LBB0_51
## %bb.45:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	$4088, %esi                     ## imm = 0xFF8
	xorl	%edx, %edx
	callq	_nv_wo32
	cmpq	$0, 40(%r12)
	jne	LBB0_49
## %bb.46:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_47:                                ## =>This Inner Loop Header: Depth=1
	movl	32(%r12), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_49
## %bb.48:                              ##   in Loop: Header=BB0_47 Depth=1
	movq	24(%r12), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r12, %rdi
	movl	$4084, %esi                     ## imm = 0xFF4
	callq	_nv_wo32
	incq	%rbx
	cmpq	$0, 40(%r12)
	je	LBB0_47
	jmp	LBB0_49
	.p2align	4, 0x90
LBB0_50:                                ##   in Loop: Header=BB0_49 Depth=1
	movq	%r12, %rdi
	movl	$4084, %esi                     ## imm = 0xFF4
	xorl	%edx, %edx
	callq	_nv_wo32
	addl	$4, %ebx
LBB0_49:                                ## =>This Inner Loop Header: Depth=1
	cmpl	16(%r12), %ebx
	jl	LBB0_50
	jmp	LBB0_57
LBB0_32:
	movl	64(%r12), %eax
	cmpl	48(%r12), %eax
	jg	LBB0_34
## %bb.33:
	movl	32(%r12), %eax
	cmpl	16(%r12), %eax
	jle	LBB0_35
LBB0_34:
	leaq	L_.str.13(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_nv_error
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_58
LBB0_51:
	movq	%r12, %rdi
	movl	$448, %esi                      ## imm = 0x1C0
	movl	$16777216, %edx                 ## imm = 0x1000000
	callq	_nv_wo32
	xorl	%ebx, %ebx
	cmpq	$0, 40(%r12)
	jne	LBB0_56
## %bb.52:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_53:                                ## =>This Inner Loop Header: Depth=1
	movl	32(%r12), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_56
## %bb.54:                              ##   in Loop: Header=BB0_53 Depth=1
	movq	24(%r12), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r12, %rdi
	movl	$452, %esi                      ## imm = 0x1C4
	callq	_nv_wo32
	incq	%rbx
	cmpq	$0, 40(%r12)
	je	LBB0_53
	jmp	LBB0_56
	.p2align	4, 0x90
LBB0_55:                                ##   in Loop: Header=BB0_56 Depth=1
	movq	%r12, %rdi
	movl	$452, %esi                      ## imm = 0x1C4
	xorl	%edx, %edx
	callq	_nv_wo32
	incl	%ebx
LBB0_56:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%r12), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_55
LBB0_57:
	movq	%r12, %rdi
	movl	$268, %esi                      ## imm = 0x10C
	movl	$1, %edx
	callq	_nv_wo32
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	movl	$260, %esi                      ## imm = 0x104
	xorl	%edx, %edx
	callq	_nv_wo32
	movq	%r12, %rdi
	movl	$256, %esi                      ## imm = 0x100
	movl	$2, %edx
	callq	_nv_wo32
	movq	%r12, %rdi
	movl	$72, %esi
	movl	$3, %edx
	callq	_nv_wo32
LBB0_58:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_61
## %bb.59:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	(%r14), %ecx
	movl	8(%r12), %r8d
	sarl	$12, %r8d
	leaq	L_.str.5(%rip), %rdx
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_snprintf
	movq	16(%r14), %rdx
	leaq	-88(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_19
## %bb.17:
	movl	%eax, %r15d
	leaq	L_.str.6(%rip), %rsi
LBB0_18:
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_nv_error
	jmp	LBB0_58
LBB0_26:
	leaq	40(%r12), %r9
	movl	(%r12), %edi
	movl	64(%r12), %edx
	xorl	%esi, %esi
	movl	$256, %ecx                      ## imm = 0x100
	xorl	%r8d, %r8d
	callq	_nouveau_gpuobj_new
	testl	%eax, %eax
	je	LBB0_27
## %bb.60:
	movl	%eax, %r15d
	leaq	L_.str.12(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_nv_error
	jmp	LBB0_58
LBB0_35:
	cmpl	$2, (%r12)
	jg	LBB0_39
## %bb.36:
	movq	%r12, %rdi
	movl	$4088, %esi                     ## imm = 0xFF8
	movl	$1048576, %edx                  ## imm = 0x100000
	callq	_nv_wo32
	cmpl	$4, 64(%r12)
	jl	LBB0_44
## %bb.37:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	movq	56(%r12), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r12, %rdi
	movl	$4084, %esi                     ## imm = 0xFF4
	callq	_nv_wo32
	incq	%rbx
	movl	64(%r12), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jl	LBB0_38
	jmp	LBB0_44
LBB0_19:
	movq	-88(%rbp), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_kmemdup
	movq	%rax, 24(%r12)
	movq	-88(%rbp), %rdi
	movl	(%rdi), %eax
	movl	%eax, 32(%r12)
	callq	_release_firmware
	cmpq	$0, 24(%r12)
	je	LBB0_20
## %bb.21:
	movl	(%r14), %ecx
	movl	8(%r12), %r8d
	sarl	$12, %r8d
	leaq	L_.str.7(%rip), %rdx
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_snprintf
	movq	16(%r14), %rdx
	leaq	-88(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movl	%eax, %r15d
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_18
LBB0_27:
	cmpl	$0, 64(%r12)
	jle	LBB0_30
## %bb.28:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r12), %rdi
	movq	56(%r12), %rax
	movl	(%rax,%rbx), %edx
	movl	%ebx, %esi
	callq	_nv_wo32
	addq	$4, %rbx
	cmpl	%ebx, 64(%r12)
	jg	LBB0_29
	jmp	LBB0_30
LBB0_39:
	movq	%r12, %rdi
	movl	$384, %esi                      ## imm = 0x180
	movl	$16777216, %edx                 ## imm = 0x1000000
	callq	_nv_wo32
	cmpl	$4, 64(%r12)
	jl	LBB0_44
## %bb.40:
	xorl	%ebx, %ebx
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_43:                                ##   in Loop: Header=BB0_41 Depth=1
	movq	56(%r12), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r12, %rdi
	movl	$388, %esi                      ## imm = 0x184
	callq	_nv_wo32
	incq	%rbx
	movl	64(%r12), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_44
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	testb	$63, %bl
	jne	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_41 Depth=1
	movl	%ebx, %edx
	shrl	$6, %edx
	movq	%r12, %rdi
	movl	$392, %esi                      ## imm = 0x188
	callq	_nv_wo32
	jmp	LBB0_43
LBB0_23:
	movq	-88(%rbp), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movl	(%r13), %edx
	callq	_kmemdup
	movq	%rax, 56(%r12)
	movq	-88(%rbp), %rdi
	movl	(%rdi), %eax
	movl	%eax, 64(%r12)
	callq	_release_firmware
	cmpq	$0, 56(%r12)
	jne	LBB0_24
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_58
LBB0_61:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const._nouveau_falcon_init.name
l___const._nouveau_falcon_init.name:
	.asciz	"internal\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"falcon version: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"secret level: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"code limit: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"data limit: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"nouveau/nv%02x_fuc%03x"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.5:                               ## @.str.5
	.asciz	"nouveau/nv%02x_fuc%03xd"

L_.str.6:                               ## @.str.6
	.asciz	"unable to load firmware data\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.7:                               ## @.str.7
	.asciz	"nouveau/nv%02x_fuc%03xc"

L_.str.8:                               ## @.str.8
	.asciz	"unable to load firmware code\n"

L_.str.9:                               ## @.str.9
	.asciz	"firmware: %s (%s)\n"

L_.str.10:                              ## @.str.10
	.asciz	"static code/data segments"

L_.str.11:                              ## @.str.11
	.asciz	"self-bootstrapping"

L_.str.12:                              ## @.str.12
	.asciz	"core allocation failed, %d\n"

	.comm	_NV_C0,8,3                      ## @NV_C0
L_.str.13:                              ## @.str.13
	.asciz	"ucode exceeds falcon limit(s)\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__nouveau_falcon_init           ; -- Begin function _nouveau_falcon_init
	.p2align	2
__nouveau_falcon_init:                  ; @_nouveau_falcon_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_nv_device
	mov	x20, x0
Lloh3:
	adrp	x8, l___const._nouveau_falcon_init.name@PAGE
Lloh4:
	add	x8, x8, l___const._nouveau_falcon_init.name@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp, #32]
	add	x0, x19, #72
	bl	_nouveau_engine_init
	mov	x21, x0
	cbnz	w0, LBB0_51
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #163
	b.lt	LBB0_4
; %bb.2:
	cmp	w8, #172
	b.eq	LBB0_4
; %bb.3:
	cmp	w8, #170
	b.ne	LBB0_9
LBB0_4:
	str	wzr, [x19]
	ldr	w8, [x19, #8]
	cmp	w8, #135, lsl #12               ; =552960
	cset	w8, eq
LBB0_5:
	str	w8, [x19, #4]
	mov	x0, x19
	mov	w1, #264
	bl	_nv_ro32
	ubfiz	w8, w0, #8, #9
	str	w8, [x19, #48]
	lsr	w8, w0, #1
	and	w8, w8, #0x1ff00
	str	w8, [x19, #16]
	ldr	w8, [x19]
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nv_debug
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_nv_debug
	ldr	w8, [x19, #48]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_nv_debug
	ldr	w8, [x19, #16]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_nv_debug
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_12
; %bb.6:
	ldr	w8, [x19]
	cmp	w8, #3
	b.gt	LBB0_12
; %bb.7:
	mov	x0, x19
	cbz	w8, LBB0_10
; %bb.8:
	mov	w1, #384
	mov	w2, #-2147483648
	mov	w3, #0
	b	LBB0_11
LBB0_9:
	mov	x0, x19
	mov	w1, #300
	bl	_nv_ro32
	and	w8, w0, #0xf
	str	w8, [x19]
	ubfx	w8, w0, #4, #2
	b	LBB0_5
LBB0_10:
	mov	w1, #8
	mov	w2, #16
	mov	w3, #16
LBB0_11:
	bl	_nv_wait
	mov	x0, x19
	mov	w1, #4
	mov	w2, #16
	bl	_nv_wo32
LBB0_12:
	mov	x0, x19
	mov	w1, #20
	mov	w2, #-1
	bl	_nv_wo32
	ldr	x8, [x19, #56]
	cbnz	x8, LBB0_16
; %bb.13:
	ldr	w3, [x20]
	ldr	w8, [x19, #8]
	asr	w4, w8, #12
Lloh13:
	adrp	x2, l_.str.4@PAGE
Lloh14:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x0, sp, #32
	mov	w1, #32
	bl	_snprintf
	ldr	x2, [x20, #16]
	add	x0, sp, #24
	add	x1, sp, #32
	bl	_request_firmware
	cbnz	w0, LBB0_15
; %bb.14:
	ldr	x8, [sp, #24]
	ldp	w1, w0, [x8]
Lloh15:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	bl	_kmemdup
	str	x0, [x19, #56]
	ldr	x0, [sp, #24]
	ldr	w8, [x0]
	str	w8, [x19, #64]
	str	xzr, [x19, #24]
	str	wzr, [x19, #32]
	bl	_release_firmware
LBB0_15:
	mov	w8, #1
	str	w8, [x19, #12]
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_33
LBB0_16:
	ldr	x8, [x19, #24]
Lloh18:
	adrp	x9, l_.str.10@PAGE
Lloh19:
	add	x9, x9, l_.str.10@PAGEOFF
Lloh20:
	adrp	x10, l_.str.11@PAGE
Lloh21:
	add	x10, x10, l_.str.11@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
	add	x9, sp, #32
	stp	x9, x8, [sp]
Lloh22:
	adrp	x1, l_.str.9@PAGE
Lloh23:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_nv_debug
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_18
; %bb.17:
	mov	x5, x19
	ldr	x8, [x5, #40]!
	cbz	x8, LBB0_35
LBB0_18:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_27
; %bb.19:
Lloh24:
	adrp	x8, _NV_C0@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NV_C0@GOTPAGEOFF]
	ldr	x9, [x20, #8]
Lloh26:
	ldr	x8, [x8]
	cmp	x9, x8
	mov	w8, #276
	mov	w9, #67108864
	csel	w2, w9, w8, lt
	mov	x0, x19
	mov	w1, #1560
	bl	_nv_wo32
	mov	x0, x19
	mov	w1, #284
	mov	w2, #0
	bl	_nv_wo32
	ldr	x8, [x19, #40]
	ldr	w8, [x8, #8]
	asr	w2, w8, #8
	mov	x0, x19
	mov	w1, #272
	bl	_nv_wo32
	mov	x0, x19
	mov	w1, #276
	mov	w2, #0
	bl	_nv_wo32
	mov	x0, x19
	mov	w1, #280
	mov	w2, #26128
	bl	_nv_wo32
LBB0_20:
	ldr	w8, [x19]
	mov	x0, x19
	cmp	w8, #3
	b.ge	LBB0_31
; %bb.21:
	mov	w1, #4088
	mov	w2, #0
	bl	_nv_wo32
	mov	w20, #0
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_26
; %bb.22:
	mov	x20, #0
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #32]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	cmp	x20, w8, sxtw
	b.ge	LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x8, [x19, #24]
	ldr	w2, [x8, x20, lsl #2]
	mov	x0, x19
	mov	w1, #4084
	bl	_nv_wo32
	add	x20, x20, #1
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_23
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	mov	x0, x19
	mov	w1, #4084
	mov	w2, #0
	bl	_nv_wo32
	add	w20, w20, #4
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #16]
	cmp	w20, w8
	b.lt	LBB0_25
	b	LBB0_42
LBB0_27:
	ldr	w8, [x19, #64]
	ldr	w9, [x19, #48]
	cmp	w8, w9
	b.gt	LBB0_29
; %bb.28:
	ldr	w8, [x19, #32]
	ldr	w9, [x19, #16]
	cmp	w8, w9
	b.le	LBB0_43
LBB0_29:
Lloh27:
	adrp	x1, l_.str.13@PAGE
Lloh28:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x19
	bl	_nv_error
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_30:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_51
LBB0_31:
	mov	w1, #448
	mov	w2, #16777216
	bl	_nv_wo32
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_37
; %bb.32:
	mov	w20, #0
	b	LBB0_41
LBB0_33:
	ldr	w3, [x20]
	ldr	w8, [x19, #8]
	asr	w4, w8, #12
Lloh31:
	adrp	x2, l_.str.5@PAGE
Lloh32:
	add	x2, x2, l_.str.5@PAGEOFF
	add	x0, sp, #32
	mov	w1, #32
	bl	_snprintf
	ldr	x2, [x20, #16]
	add	x0, sp, #24
	add	x1, sp, #32
	bl	_request_firmware
	cbz	w0, LBB0_47
; %bb.34:
	mov	x21, x0
Lloh33:
	adrp	x1, l_.str.6@PAGE
Lloh34:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_50
LBB0_35:
	ldr	w0, [x19]
	ldr	w2, [x19, #64]
	mov	x1, #0
	mov	w3, #256
	mov	w4, #0
	bl	_nouveau_gpuobj_new
	cbz	w0, LBB0_53
; %bb.36:
	mov	x21, x0
	str	x21, [sp]
Lloh35:
	adrp	x1, l_.str.12@PAGE
Lloh36:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_50
LBB0_37:
	mov	x20, #0
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #32]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	cmp	x20, w8, sxtw
	b.ge	LBB0_41
; %bb.39:                               ;   in Loop: Header=BB0_38 Depth=1
	ldr	x8, [x19, #24]
	ldr	w2, [x8, x20, lsl #2]
	mov	x0, x19
	mov	w1, #452
	bl	_nv_wo32
	add	x20, x20, #1
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_38
	b	LBB0_41
LBB0_40:                                ;   in Loop: Header=BB0_41 Depth=1
	mov	x0, x19
	mov	w1, #452
	mov	w2, #0
	bl	_nv_wo32
	add	w20, w20, #1
LBB0_41:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #16]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	cmp	w20, w8, asr #2
	b.lt	LBB0_40
LBB0_42:
	mov	x0, x19
	mov	w1, #268
	mov	w2, #1
	bl	_nv_wo32
	mov	x0, x19
	mov	w1, #260
	mov	w2, #0
	bl	_nv_wo32
	mov	x0, x19
	mov	w1, #256
	mov	w2, #2
	bl	_nv_wo32
	mov	x0, x19
	mov	w1, #72
	mov	w2, #3
	bl	_nv_wo32
	mov	w21, #0
	b	LBB0_51
LBB0_43:
	ldr	w8, [x19]
	mov	x0, x19
	cmp	w8, #3
	b.ge	LBB0_56
; %bb.44:
	mov	w1, #4088
	mov	w2, #1048576
	bl	_nv_wo32
	ldr	w8, [x19, #64]
	cmp	w8, #3
	b.le	LBB0_20
; %bb.45:
	mov	x20, #0
LBB0_46:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	ldr	w2, [x8, x20, lsl #2]
	mov	x0, x19
	mov	w1, #4084
	bl	_nv_wo32
	add	x20, x20, #1
	ldr	w8, [x19, #64]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	cmp	x20, w8, sxtw
	b.lt	LBB0_46
	b	LBB0_20
LBB0_47:
	ldr	x8, [sp, #24]
	ldp	w1, w0, [x8]
Lloh37:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh38:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_kmemdup
	str	x0, [x19, #24]
	ldr	x0, [sp, #24]
	ldr	w8, [x0]
	str	w8, [x19, #32]
	bl	_release_firmware
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_62
; %bb.48:
	ldr	w3, [x20]
	ldr	w8, [x19, #8]
	asr	w4, w8, #12
Lloh39:
	adrp	x2, l_.str.7@PAGE
Lloh40:
	add	x2, x2, l_.str.7@PAGEOFF
	add	x0, sp, #32
	mov	w1, #32
	bl	_snprintf
	ldr	x2, [x20, #16]
	add	x0, sp, #24
	add	x1, sp, #32
	bl	_request_firmware
	cbz	w0, LBB0_61
; %bb.49:
	mov	x21, x0
Lloh41:
	adrp	x1, l_.str.8@PAGE
Lloh42:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_50:
	mov	x0, x19
	bl	_nv_error
LBB0_51:
	ldur	x8, [x29, #-40]
Lloh43:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_63
; %bb.52:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_53:
	ldr	w8, [x19, #64]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.54:
	mov	x21, #0
LBB0_55:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #40]
	ldr	x8, [x19, #56]
	ldr	w2, [x8, x21]
	mov	x1, x21
	bl	_nv_wo32
	add	x21, x21, #4
	ldr	w8, [x19, #64]
	cmp	w8, w21
	b.gt	LBB0_55
	b	LBB0_18
LBB0_56:
	mov	w1, #384
	mov	w2, #16777216
	bl	_nv_wo32
	ldr	w8, [x19, #64]
	cmp	w8, #3
	b.le	LBB0_20
; %bb.57:
	mov	x20, #0
	b	LBB0_59
LBB0_58:                                ;   in Loop: Header=BB0_59 Depth=1
	ldr	x8, [x19, #56]
	ldr	w2, [x8, x20, lsl #2]
	mov	x0, x19
	mov	w1, #388
	bl	_nv_wo32
	add	x20, x20, #1
	ldr	w8, [x19, #64]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	cmp	x20, w8, sxtw
	b.ge	LBB0_20
LBB0_59:                                ; =>This Inner Loop Header: Depth=1
	tst	w20, #0x3f
	b.ne	LBB0_58
; %bb.60:                               ;   in Loop: Header=BB0_59 Depth=1
	ubfx	x2, x20, #6, #26
	mov	x0, x19
	mov	w1, #392
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_nv_wo32
	b	LBB0_58
LBB0_61:
	ldr	x8, [sp, #24]
	ldp	w1, w0, [x8]
	ldr	w2, [x22]
	bl	_kmemdup
	str	x0, [x19, #56]
	ldr	x0, [sp, #24]
	ldr	w8, [x0]
	str	w8, [x19, #64]
	bl	_release_firmware
	ldr	x8, [x19, #56]
	cbnz	x8, LBB0_16
LBB0_62:
Lloh46:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_30
LBB0_63:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l___const._nouveau_falcon_init.name:    ; @__const._nouveau_falcon_init.name
	.asciz	"internal\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"falcon version: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"secret level: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"code limit: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"data limit: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"nouveau/nv%02x_fuc%03x"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.5:                               ; @.str.5
	.asciz	"nouveau/nv%02x_fuc%03xd"

l_.str.6:                               ; @.str.6
	.asciz	"unable to load firmware data\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.7:                               ; @.str.7
	.asciz	"nouveau/nv%02x_fuc%03xc"

l_.str.8:                               ; @.str.8
	.asciz	"unable to load firmware code\n"

l_.str.9:                               ; @.str.9
	.asciz	"firmware: %s (%s)\n"

l_.str.10:                              ; @.str.10
	.asciz	"static code/data segments"

l_.str.11:                              ; @.str.11
	.asciz	"self-bootstrapping"

l_.str.12:                              ; @.str.12
	.asciz	"core allocation failed, %d\n"

	.comm	_NV_C0,8,3                      ; @NV_C0
l_.str.13:                              ; @.str.13
	.asciz	"ucode exceeds falcon limit(s)\n"

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