	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvc0_graph_ctor_fw             ## -- Begin function nvc0_graph_ctor_fw
	.p2align	4, 0x90
_nvc0_graph_ctor_fw:                    ## @nvc0_graph_ctor_fw
	.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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_nv_device
	movq	%rax, %rbx
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	leaq	-80(%rbp), %r13
	movq	%r13, %rdi
	movl	$32, %esi
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_snprintf
	movq	8(%rbx), %rdx
	leaq	-88(%rbp), %rdi
	movq	%r13, %rsi
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rdx
	leaq	-80(%rbp), %r13
	movq	%r13, %rdi
	movl	$32, %esi
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	movq	8(%rbx), %rdx
	leaq	-88(%rbp), %rdi
	movq	%r13, %rsi
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_nv_error
	jmp	LBB0_4
LBB0_3:
	movq	-88(%rbp), %rax
	movl	4(%rax), %esi
	movl	%esi, 8(%r14)
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_kmemdup
	movq	%rax, (%r14)
	movq	-88(%rbp), %rdi
	callq	_release_firmware
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	cmpq	$0, (%r14)
	movl	$0, %eax
	cmovnel	%eax, %ebx
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nouveau/nv%02x_%s"

L_.str.1:                               ## @.str.1
	.asciz	"nouveau/%s"

L_.str.2:                               ## @.str.2
	.asciz	"failed to load %s\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvc0_graph_ctor_fw             ; -- Begin function nvc0_graph_ctor_fw
	.p2align	2
_nvc0_graph_ctor_fw:                    ; @nvc0_graph_ctor_fw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x2
	mov	x20, x1
	mov	x21, 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	x22, x0
	ldr	w8, [x0]
	stp	x8, x20, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #24
	mov	w1, #32
	bl	_snprintf
	ldr	x2, [x22, #8]
	add	x0, sp, #16
	add	x1, sp, #24
	bl	_request_firmware
	cbz	w0, LBB0_3
; %bb.1:
	str	x20, [sp]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #24
	mov	w1, #32
	bl	_snprintf
	ldr	x2, [x22, #8]
	add	x0, sp, #16
	add	x1, sp, #24
	bl	_request_firmware
	cbz	w0, LBB0_3
; %bb.2:
	mov	x22, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_nv_error
	b	LBB0_4
LBB0_3:
	ldr	x8, [sp, #16]
	ldr	w1, [x8, #4]
	str	w1, [x19, #8]
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_kmemdup
	str	x0, [x19]
	ldr	x0, [sp, #16]
	bl	_release_firmware
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	x8, #0
	csneg	w22, wzr, w9, ne
LBB0_4:
	ldur	x8, [x29, #-40]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nouveau/nv%02x_%s"

l_.str.1:                               ; @.str.1
	.asciz	"nouveau/%s"

l_.str.2:                               ; @.str.2
	.asciz	"failed to load %s\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
