	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vega10_enable_mgpu_fan_boost   ## -- Begin function vega10_enable_mgpu_fan_boost
	.p2align	4, 0x90
_vega10_enable_mgpu_fan_boost:          ## @vega10_enable_mgpu_fan_boost
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%rdi), %rsi
	movq	8(%rsi), %rax
	movq	_GNLD_FAN_CONTROL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%r14d, %r14d
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%rax, (%rsi)
	movq	_PPTABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_smum_smc_table_manager
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_8
LBB0_4:
	movq	%rbx, %rdi
	callq	_vega10_disable_fan_control_feature
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_vega10_enable_fan_control_feature
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rdi
LBB0_8:
	callq	_pr_info
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GNLD_FAN_CONTROL,8,3           ## @GNLD_FAN_CONTROL
	.comm	_PPTABLE,4,2                    ## @PPTABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to update fan control table in pptable!"

L_.str.1:                               ## @.str.1
	.asciz	"Attempt to disable SMC fan control feature failed!"

L_.str.2:                               ## @.str.2
	.asciz	"Attempt to enable SMC fan control feature failed!"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vega10_enable_mgpu_fan_boost   ; -- Begin function vega10_enable_mgpu_fan_boost
	.p2align	2
_vega10_enable_mgpu_fan_boost:          ; @vega10_enable_mgpu_fan_boost
	.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
	ldr	x1, [x0, #8]
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x9, _GNLD_FAN_CONTROL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GNLD_FAN_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.2:
	str	x8, [x1]
Lloh3:
	adrp	x8, _PPTABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PPTABLE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #0
	bl	_smum_smc_table_manager
	cbz	w0, LBB0_5
; %bb.3:
	mov	x19, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_4:
	mov	w19, #0
	b	LBB0_10
LBB0_5:
	mov	x0, x20
	bl	_vega10_disable_fan_control_feature
	cbz	w0, LBB0_7
; %bb.6:
	mov	x19, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
	mov	x0, x20
	bl	_vega10_enable_fan_control_feature
	mov	x19, x0
	cbz	w0, LBB0_10
; %bb.8:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_9:
	bl	_pr_info
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GNLD_FAN_CONTROL,8,3           ; @GNLD_FAN_CONTROL
	.comm	_PPTABLE,4,2                    ; @PPTABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to update fan control table in pptable!"

l_.str.1:                               ; @.str.1
	.asciz	"Attempt to disable SMC fan control feature failed!"

l_.str.2:                               ; @.str.2
	.asciz	"Attempt to enable SMC fan control feature failed!"

.subsections_via_symbols
