	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf100_gr_ctor_fw_legacy        ## -- Begin function gf100_gr_ctor_fw_legacy
	.p2align	4, 0x90
_gf100_gr_ctor_fw_legacy:               ## @gf100_gr_ctor_fw_legacy
	.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, %ebx
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r13
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	leaq	L_.str.7(%rip), %r12
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str.1(%rip), %r12
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str.3(%rip), %r12
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.5(%rip), %r12
LBB0_8:
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_nvkm_debug
	movl	(%r13), %ecx
	leaq	L_.str.10(%rip), %rdx
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$32, %esi
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_snprintf
	movl	4(%r13), %edx
	leaq	-88(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	leaq	L_.str.11(%rip), %rdx
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$32, %esi
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	movl	4(%r13), %edx
	leaq	-88(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	%eax, %ebx
LBB0_11:
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_nvkm_error
	jmp	LBB0_13
LBB0_12:
	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_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fecs_inst"

L_.str.1:                               ## @.str.1
	.asciz	"fuc409c"

L_.str.2:                               ## @.str.2
	.asciz	"fecs_data"

L_.str.3:                               ## @.str.3
	.asciz	"fuc409d"

L_.str.4:                               ## @.str.4
	.asciz	"gpccs_inst"

L_.str.5:                               ## @.str.5
	.asciz	"fuc41ac"

L_.str.6:                               ## @.str.6
	.asciz	"gpccs_data"

L_.str.7:                               ## @.str.7
	.asciz	"fuc41ad"

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

L_.str.9:                               ## @.str.9
	.asciz	"%s: falling back to legacy path\n"

L_.str.10:                              ## @.str.10
	.asciz	"nouveau/nv%02x_%s"

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

	.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	_gf100_gr_ctor_fw_legacy        ; -- Begin function gf100_gr_ctor_fw_legacy
	.p2align	2
_gf100_gr_ctor_fw_legacy:               ; @gf100_gr_ctor_fw_legacy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	x23, [x0]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_5
; %bb.1:
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_6
; %bb.2:
Lloh7:
	adrp	x1, l_.str.4@PAGE
Lloh8:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_7
; %bb.3:
Lloh9:
	adrp	x1, l_.str.6@PAGE
Lloh10:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbnz	w0, LBB0_11
; %bb.4:
Lloh11:
	adrp	x21, l_.str.7@PAGE
Lloh12:
	add	x21, x21, l_.str.7@PAGEOFF
	b	LBB0_8
LBB0_5:
Lloh13:
	adrp	x21, l_.str.1@PAGE
Lloh14:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh15:
	adrp	x21, l_.str.3@PAGE
Lloh16:
	add	x21, x21, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh17:
	adrp	x21, l_.str.5@PAGE
Lloh18:
	add	x21, x21, l_.str.5@PAGEOFF
LBB0_8:
Lloh19:
	adrp	x1, l_.str.9@PAGE
Lloh20:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_nvkm_debug
	ldr	w8, [x23]
	stp	x8, x21, [sp]
Lloh21:
	adrp	x2, l_.str.10@PAGE
Lloh22:
	add	x2, x2, l_.str.10@PAGEOFF
	add	x0, sp, #24
	mov	w1, #32
	bl	_snprintf
	ldr	w2, [x23, #4]
	add	x0, sp, #16
	add	x1, sp, #24
	bl	_request_firmware
	cbz	w0, LBB0_12
; %bb.9:
	str	x21, [sp]
Lloh23:
	adrp	x2, l_.str.11@PAGE
Lloh24:
	add	x2, x2, l_.str.11@PAGEOFF
	add	x0, sp, #24
	mov	w1, #32
	bl	_snprintf
	ldr	w2, [x23, #4]
	add	x0, sp, #16
	add	x1, sp, #24
	bl	_request_firmware
	cbz	w0, LBB0_12
; %bb.10:
	mov	x22, x0
LBB0_11:
Lloh25:
	adrp	x1, l_.str.8@PAGE
Lloh26:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_nvkm_error
	b	LBB0_13
LBB0_12:
	ldr	x8, [sp, #16]
	ldr	w1, [x8, #4]
	str	w1, [x19, #8]
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	bl	_kmemdup
	str	x0, [x19]
	ldr	x0, [sp, #16]
	bl	_release_firmware
	ldr	x8, [x19]
Lloh30:
	adrp	x9, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x9, [x9, _ENOMEM@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	cmp	x8, #0
	csneg	w22, wzr, w9, ne
LBB0_13:
	ldr	x8, [sp, #56]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fecs_inst"

l_.str.1:                               ; @.str.1
	.asciz	"fuc409c"

l_.str.2:                               ; @.str.2
	.asciz	"fecs_data"

l_.str.3:                               ; @.str.3
	.asciz	"fuc409d"

l_.str.4:                               ; @.str.4
	.asciz	"gpccs_inst"

l_.str.5:                               ; @.str.5
	.asciz	"fuc41ac"

l_.str.6:                               ; @.str.6
	.asciz	"gpccs_data"

l_.str.7:                               ; @.str.7
	.asciz	"fuc41ad"

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

l_.str.9:                               ; @.str.9
	.asciz	"%s: falling back to legacy path\n"

l_.str.10:                              ; @.str.10
	.asciz	"nouveau/nv%02x_%s"

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

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