	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ls_ucode_img_load_gr
_ls_ucode_img_load_gr:                  ## @ls_ucode_img_load_gr
	.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	%r12
	pushq	%rbx
	subq	$112, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	L_.str(%rip), %rdx
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	_snprintf
	leaq	-144(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_nvkm_firmware_get
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	leaq	L_.str.1(%rip), %rdx
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$64, %esi
	movq	%r12, %rcx
	callq	_snprintf
	leaq	-136(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_nvkm_firmware_get
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.2:
	leaq	L_.str.2(%rip), %rdx
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$64, %esi
	movq	%r12, %rcx
	callq	_snprintf
	leaq	-128(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_nvkm_firmware_get
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	leaq	L_.str.3(%rip), %rdx
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$64, %esi
	movq	%r12, %rcx
	callq	_snprintf
	leaq	-120(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_nvkm_firmware_get
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	movq	-120(%rbp), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_kmemdup
	movl	%eax, 12(%r14)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	-120(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	-144(%rbp), %rdi
	movq	-136(%rbp), %rsi
	movq	-128(%rbp), %rdx
	movq	%r14, %rcx
	callq	_ls_ucode_img_build
	movl	%eax, 8(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	12(%r14), %edi
	callq	_kfree
	movl	8(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_8:
	movl	(%r14), %eax
	movl	%eax, 4(%r14)
	xorl	%ebx, %ebx
LBB0_9:
	movq	-120(%rbp), %rdi
	callq	_nvkm_firmware_put
LBB0_10:
	movq	-128(%rbp), %rdi
	callq	_nvkm_firmware_put
LBB0_11:
	movq	-136(%rbp), %rdi
	callq	_nvkm_firmware_put
LBB0_12:
	movq	-144(%rbp), %rdi
	callq	_nvkm_firmware_put
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%ebx, %eax
	addq	$112, %rsp
	popq	%rbx
	popq	%r12
	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	"gr/%s_bl"

L_.str.1:                               ## @.str.1
	.asciz	"gr/%s_inst"

L_.str.2:                               ## @.str.2
	.asciz	"gr/%s_data"

L_.str.3:                               ## @.str.3
	.asciz	"gr/%s_sig"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ls_ucode_img_load_gr
_ls_ucode_img_load_gr:                  ; @ls_ucode_img_load_gr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x21, x3
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #40
	mov	w1, #64
	bl	_snprintf
	add	x1, sp, #40
	add	x2, sp, #32
	mov	x0, x20
	bl	_nvkm_firmware_get
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.1:
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #40
	mov	w1, #64
	mov	x3, x21
	bl	_snprintf
	add	x1, sp, #40
	add	x2, sp, #24
	mov	x0, x20
	bl	_nvkm_firmware_get
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.2:
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #40
	mov	w1, #64
	mov	x3, x21
	bl	_snprintf
	add	x1, sp, #40
	add	x2, sp, #16
	mov	x0, x20
	bl	_nvkm_firmware_get
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.3:
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #40
	mov	w1, #64
	mov	x3, x21
	bl	_snprintf
	add	x1, sp, #40
	add	x2, sp, #8
	mov	x0, x20
	bl	_nvkm_firmware_get
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	x8, [sp, #8]
	ldp	w1, w0, [x8]
Lloh11:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_kmemdup
	str	w0, [x19, #12]
	cbz	w0, LBB0_7
; %bb.5:
	ldp	x8, x2, [sp, #8]
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldp	x1, x0, [sp, #24]
	mov	x3, x19
	bl	_ls_ucode_img_build
	str	w0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w0, [x19, #12]
	bl	_kfree
	ldr	w0, [x19, #8]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_9
LBB0_7:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_9
LBB0_8:
	mov	w22, #0
	ldr	w8, [x19]
	str	w8, [x19, #4]
LBB0_9:
	ldr	x0, [sp, #8]
	bl	_nvkm_firmware_put
LBB0_10:
	ldr	x0, [sp, #16]
	bl	_nvkm_firmware_put
LBB0_11:
	ldr	x0, [sp, #24]
	bl	_nvkm_firmware_put
LBB0_12:
	ldr	x0, [sp, #32]
	bl	_nvkm_firmware_put
LBB0_13:
	ldur	x8, [x29, #-40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x22
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	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 AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gr/%s_bl"

l_.str.1:                               ; @.str.1
	.asciz	"gr/%s_inst"

l_.str.2:                               ; @.str.2
	.asciz	"gr/%s_data"

l_.str.3:                               ; @.str.3
	.asciz	"gr/%s_sig"

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