	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu8_smu_populate_firmware_entries
_smu8_smu_populate_firmware_entries:    ## @smu8_smu_populate_firmware_entries
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	8(%rdi), %r15
	movl	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, (%r15)
	movq	_firmware_list@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	$2, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-52(%rbp), %eax
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	-56(%rbp), %eax
	movl	%eax, -4(%rcx,%rbx,4)
	movq	(%r12), %rdi
	movl	(%rdi,%r14,4), %eax
	movl	%eax, -8(%rcx,%rbx,4)
	incq	(%r15)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	callq	_ARRAY_SIZE
	addq	$3, %rbx
	cmpq	%rax, %r14
	jae	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r13, %rdi
	callq	_smu8_translate_firmware_enum_to_arg
	movq	%rax, %rdi
	callq	_smu8_convert_fw_type_to_cgs
	movl	(%r13), %edi
	movl	%eax, %esi
	leaq	-56(%rbp), %rdx
	callq	_cgs_get_firmware_info
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rdi
	jmp	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_firmware_list,8,3              ## @firmware_list
	.no_dead_strip	_smu8_smu_populate_firmware_entries
.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_firmware_entries
_smu8_smu_populate_firmware_entries:    ; @smu8_smu_populate_firmware_entries
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	x20, [x0, #8]
	str	wzr, [sp, #8]
	str	xzr, [sp]
	str	xzr, [x20]
Lloh0:
	adrp	x21, _firmware_list@GOTPAGE
Lloh1:
	ldr	x21, [x21, _firmware_list@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cbz	x0, LBB0_6
; %bb.1:
	mov	x22, #0
	mov	x23, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	d0, [sp]
	ldp	x9, x8, [x20]
	add	x8, x8, x22
	stur	d0, [x8, #4]
	ldr	x0, [x21]
	ldr	w10, [x0, x23, lsl #2]
	str	w10, [x8]
	add	x8, x9, #1
	str	x8, [x20]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	add	x22, x22, #12
	cmp	x23, x0
	b.hs	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w1, [x8, x23, lsl #2]
	mov	x0, x19
	bl	_smu8_translate_firmware_enum_to_arg
	bl	_smu8_convert_fw_type_to_cgs
	mov	x1, x0
	ldr	w0, [x19]
	mov	x2, sp
	bl	_cgs_get_firmware_info
	cbz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x21]
	b	LBB0_3
LBB0_6:
	mov	w0, #0
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_firmware_list,8,3              ; @firmware_list
	.no_dead_strip	_smu8_smu_populate_firmware_entries
.subsections_via_symbols
