	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_setup_asic_task
_smu7_setup_asic_task:                  ## @smu7_setup_asic_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_smu7_check_mc_firmware
	movq	%rbx, %rdi
	callq	_smu7_read_clock_registers
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movq	%rbx, %rdi
	callq	_smu7_get_memory_type
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movq	%rbx, %rdi
	callq	_smu7_enable_acpi_power_management
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movq	%rbx, %rdi
	callq	_smu7_init_power_gate_state
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movq	%rbx, %rdi
	callq	_smu7_get_mc_microcode_version
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movq	%rbx, %rdi
	callq	_smu7_init_sclk_threshold
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.5(%rip), %rsi
	movl	%eax, %edx
	callq	_PP_ASSERT_WITH_CODE
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read clock registers!"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to get memory type!"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to enable ACPI power management!"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to init power gate state!"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to get MC microcode version!"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to init sclk threshold!"

	.no_dead_strip	_smu7_setup_asic_task
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu7_setup_asic_task
_smu7_setup_asic_task:                  ; @smu7_setup_asic_task
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_smu7_check_mc_firmware
	mov	x0, x19
	bl	_smu7_read_clock_registers
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
	mov	x0, x19
	bl	_smu7_get_memory_type
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
	mov	x0, x19
	bl	_smu7_enable_acpi_power_management
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
	mov	x0, x19
	bl	_smu7_init_power_gate_state
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
	mov	x0, x19
	bl	_smu7_get_mc_microcode_version
	mov	x2, x0
	cmp	w0, #0
	cset	w0, eq
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_PP_ASSERT_WITH_CODE
	mov	x0, x19
	bl	_smu7_init_sclk_threshold
	mov	x19, x0
	cmp	w0, #0
	cset	w0, eq
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x19
	bl	_PP_ASSERT_WITH_CODE
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read clock registers!"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to get memory type!"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to enable ACPI power management!"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to init power gate state!"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to get MC microcode version!"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to init sclk threshold!"

	.no_dead_strip	_smu7_setup_asic_task
.subsections_via_symbols
