	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acr_ls_ucode_load_msgqueue
_acr_ls_ucode_load_msgqueue:            ## @acr_ls_ucode_load_msgqueue
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdx
	leaq	-112(%rbp), %r13
	movq	%r13, %rdi
	movl	$64, %esi
	movq	%r12, %rcx
	callq	_snprintf
	leaq	-136(%rbp), %r8
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_nvkm_firmware_get_version
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movq	-136(%rbp), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_kmemdup
	movq	%rax, 40(%r14)
	movq	-136(%rbp), %rdi
	callq	_nvkm_firmware_put
	cmpq	$0, 40(%r14)
	je	LBB0_5
## %bb.2:
	leaq	L_.str.1(%rip), %rdx
	leaq	-112(%rbp), %r13
	movq	%r13, %rdi
	movl	$64, %esi
	movq	%r12, %rcx
	callq	_snprintf
	leaq	-128(%rbp), %r8
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movl	%ebx, %ecx
	callq	_nvkm_firmware_get_version
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	leaq	16(%r14), %rdi
	movq	-128(%rbp), %rax
	movl	4(%rax), %esi
	movl	$16, %edx
	callq	_memcpy
	movq	16(%r14), %rdi
	addq	24(%r14), %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_ALIGN
	movl	%eax, 32(%r14)
	movq	-128(%rbp), %rdi
	callq	_nvkm_firmware_put
	leaq	L_.str.2(%rip), %rdx
	leaq	-112(%rbp), %r13
	movq	%r13, %rdi
	movl	$64, %esi
	movq	%r12, %rcx
	callq	_snprintf
	leaq	-120(%rbp), %r8
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movl	%ebx, %ecx
	callq	_nvkm_firmware_get_version
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	movq	-120(%rbp), %rax
	movl	(%rax), %esi
	movl	%esi, 8(%r14)
	movl	4(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_kmemdup
	movq	%rax, (%r14)
	movq	-120(%rbp), %rdi
	callq	_nvkm_firmware_put
	cmpq	$0, (%r14)
	jne	LBB0_8
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_7:
	movl	%eax, %ebx
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/image"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"%s/desc"

L_.str.2:                               ## @.str.2
	.asciz	"%s/sig"

	.no_dead_strip	_acr_ls_ucode_load_msgqueue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acr_ls_ucode_load_msgqueue
_acr_ls_ucode_load_msgqueue:            ; @acr_ls_ucode_load_msgqueue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x22, 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, #-56]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #24
	mov	w1, #64
	mov	x3, x22
	bl	_snprintf
	add	x1, sp, #24
	add	x4, sp, #16
	mov	x0, x21
	mov	w2, #0
	mov	x3, x20
	bl	_nvkm_firmware_get_version
	mov	x20, x0
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	x8, [sp, #16]
	ldp	w1, w0, [x8]
Lloh5:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_kmemdup
	str	x0, [x19, #40]
	ldr	x0, [sp, #16]
	bl	_nvkm_firmware_put
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_5
; %bb.2:
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #24
	mov	w1, #64
	mov	x3, x22
	bl	_snprintf
	add	x1, sp, #24
	add	x4, sp, #8
	mov	x0, x21
	mov	x2, x20
	mov	x3, x20
	bl	_nvkm_firmware_get_version
	tbnz	w0, #31, LBB0_6
; %bb.3:
	add	x0, x19, #16
	ldr	x8, [sp, #8]
	ldr	w1, [x8, #4]
	mov	w2, #16
	bl	_memcpy
	ldp	x9, x8, [x19, #16]
	add	x0, x9, x8
	mov	w1, #256
	bl	_ALIGN
	str	w0, [x19, #32]
	ldr	x0, [sp, #8]
	bl	_nvkm_firmware_put
Lloh9:
	adrp	x2, l_.str.2@PAGE
Lloh10:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #24
	mov	w1, #64
	mov	x3, x22
	bl	_snprintf
	add	x1, sp, #24
	mov	x4, sp
	mov	x0, x21
	mov	x2, x20
	mov	x3, x20
	bl	_nvkm_firmware_get_version
	tbnz	w0, #31, LBB0_6
; %bb.4:
	ldr	x8, [sp]
	ldr	w1, [x8]
	str	w1, [x19, #8]
	ldr	w0, [x8, #4]
	ldr	w2, [x23]
	bl	_kmemdup
	str	x0, [x19]
	ldr	x0, [sp]
	bl	_nvkm_firmware_put
	ldr	x8, [x19]
	cbnz	x8, LBB0_7
LBB0_5:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_6:
	mov	x20, x0
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x20
	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
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/image"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"%s/desc"

l_.str.2:                               ; @.str.2
	.asciz	"%s/sig"

	.no_dead_strip	_acr_ls_ucode_load_msgqueue
.subsections_via_symbols
