	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_suspend
_smu_suspend:                           ## @smu_suspend
	.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
	movq	%rdi, %r14
	leaq	24(%rdi), %r15
	movq	_SMU_FEATURE_BACO_BIT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_smu_feature_is_enabled
	movl	%eax, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_smu_system_features_control
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpq	$0, 16(%r14)
	je	LBB0_5
## %bb.2:
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.3:
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_smu_feature_set_enabled
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_warn
	jmp	LBB0_8
LBB0_5:
	movq	_WATERMARKS_LOADED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 24(%r14)
	movq	(%r14), %rax
	movq	_CHIP_NAVI10@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jl	LBB0_8
## %bb.6:
	movq	8(%r14), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	*%rcx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU_FEATURE_BACO_BIT,4,2       ## @SMU_FEATURE_BACO_BIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set BACO feature enabled failed, return %d\n"

	.comm	_WATERMARKS_LOADED,4,2          ## @WATERMARKS_LOADED
	.comm	_CHIP_NAVI10,8,3                ## @CHIP_NAVI10
	.no_dead_strip	_smu_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu_suspend
_smu_suspend:                           ; @smu_suspend
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	add	x20, x0, #24
Lloh0:
	adrp	x23, _SMU_FEATURE_BACO_BIT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SMU_FEATURE_BACO_BIT@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_smu_feature_is_enabled
	mov	x22, x0
	mov	x0, x20
	mov	w1, #0
	bl	_smu_system_features_control
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	x8, [x19, #16]
	cmp	x8, #0
	ccmp	w22, #0, #4, ne
	b.eq	LBB0_4
; %bb.2:
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #1
	bl	_smu_feature_set_enabled
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_warn
	b	LBB0_8
LBB0_4:
Lloh4:
	adrp	x8, _WATERMARKS_LOADED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WATERMARKS_LOADED@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	bic	w8, w9, w8
	str	w8, [x19, #24]
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _CHIP_NAVI10@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CHIP_NAVI10@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_7
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	blr	x8
LBB0_7:
	mov	w21, #0
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU_FEATURE_BACO_BIT,4,2       ; @SMU_FEATURE_BACO_BIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set BACO feature enabled failed, return %d\n"

	.comm	_WATERMARKS_LOADED,4,2          ; @WATERMARKS_LOADED
	.comm	_CHIP_NAVI10,8,3                ; @CHIP_NAVI10
	.no_dead_strip	_smu_suspend
.subsections_via_symbols
