	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu8_smu_populate_single_ucode_load_task
_smu8_smu_populate_single_ucode_load_task: ## @smu8_smu_populate_single_ucode_load_task
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	(%rdi), %r15
	movq	24(%r15), %rax
	movq	(%rax), %r12
	movslq	16(%r15), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 16(%r15)
	movq	_TASK_TYPE_UCODE_LOAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	(%rax,%rax,2), %r13
	movl	%ecx, 20(%r12,%r13,8)
	callq	_smu8_translate_firmware_enum_to_arg
	movl	%eax, 16(%r12,%r13,8)
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	movq	_END_OF_TASK_LIST@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	leaq	16(%r15), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 12(%r12,%r13,8)
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	8(%r15), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, (%rcx,%rbx)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$12, %rbx
	decq	%rax
	jne	LBB0_5
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_8:
	movl	8(%rcx,%rbx), %edi
	callq	_lower_32_bits
	movl	%eax, 8(%r12,%r13,8)
	movq	8(%r15), %rax
	movl	8(%rax,%rbx), %edi
	callq	_upper_32_bits
	movl	%eax, 4(%r12,%r13,8)
	movq	8(%r15), %rax
	movl	4(%rax,%rbx), %eax
	movl	%eax, (%r12,%r13,8)
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TASK_TYPE_UCODE_LOAD,4,2       ## @TASK_TYPE_UCODE_LOAD
	.comm	_END_OF_TASK_LIST,4,2           ## @END_OF_TASK_LIST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid Firmware Type\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu8_smu_populate_single_ucode_load_task
_smu8_smu_populate_single_ucode_load_task: ; @smu8_smu_populate_single_ucode_load_task
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x19, x1
	ldr	x21, [x0]
	ldr	x8, [x21, #24]
	ldr	x22, [x8]
	mov	x24, x21
	ldrsw	x23, [x24, #16]!
	add	w8, w23, #1
	str	w8, [x24]
Lloh0:
	adrp	x8, _TASK_TYPE_UCODE_LOAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TASK_TYPE_UCODE_LOAD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #24
	madd	x25, x23, x9, x22
	str	w8, [x25, #20]
	bl	_smu8_translate_firmware_enum_to_arg
Lloh3:
	adrp	x8, _END_OF_TASK_LIST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _END_OF_TASK_LIST@GOTPAGEOFF]
	str	w0, [x25, #16]
	cmp	w20, #0
	csel	x8, x24, x8, eq
	ldr	w8, [x8]
	str	w8, [x25, #12]
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x20, #0
	ldr	x9, [x21, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9, x20]
	cmp	w10, w19
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #12
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	add	x8, x9, x20
	ldr	w0, [x8, #8]
	bl	_lower_32_bits
	mov	w8, #24
	madd	x19, x23, x8, x22
	str	w0, [x19, #8]
	ldr	x8, [x21, #8]
	add	x8, x8, x20
	ldr	w0, [x8, #8]
	bl	_upper_32_bits
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x21, #8]
	add	x9, x9, x20
	ldr	w9, [x9, #4]
	stp	w9, w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_TASK_TYPE_UCODE_LOAD,4,2       ; @TASK_TYPE_UCODE_LOAD
	.comm	_END_OF_TASK_LIST,4,2           ; @END_OF_TASK_LIST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid Firmware Type\n"

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