	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_pm_virt_sysfs_init      ## -- Begin function amdgpu_pm_virt_sysfs_init
	.p2align	4, 0x90
_amdgpu_pm_virt_sysfs_init:             ## @amdgpu_pm_virt_sysfs_init
	.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	%rdi, %rbx
	callq	_amdgpu_sriov_vf
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rbx, %rdi
	callq	_amdgim_is_hwperf
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movl	(%rbx), %edi
	movq	_dev_attr_pp_dpm_sclk@GOTPCREL(%rip), %rsi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_8
LBB0_4:
	movl	(%rbx), %edi
	movq	_dev_attr_pp_dpm_mclk@GOTPCREL(%rip), %rsi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_8
LBB0_6:
	movl	(%rbx), %edi
	movq	_dev_attr_power_dpm_force_performance_level@GOTPCREL(%rip), %rsi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
LBB0_8:
	movl	%eax, %r14d
	callq	_DRM_ERROR
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_attr_pp_dpm_sclk,4,2       ## @dev_attr_pp_dpm_sclk
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create device file pp_dpm_sclk\n"

	.comm	_dev_attr_pp_dpm_mclk,4,2       ## @dev_attr_pp_dpm_mclk
L_.str.1:                               ## @.str.1
	.asciz	"failed to create device file pp_dpm_mclk\n"

	.comm	_dev_attr_power_dpm_force_performance_level,4,2 ## @dev_attr_power_dpm_force_performance_level
L_.str.2:                               ## @.str.2
	.asciz	"failed to create device file for dpm state\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_pm_virt_sysfs_init      ; -- Begin function amdgpu_pm_virt_sysfs_init
	.p2align	2
_amdgpu_pm_virt_sysfs_init:             ; @amdgpu_pm_virt_sysfs_init
	.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	x20, x0
	bl	_amdgpu_sriov_vf
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_amdgim_is_hwperf
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x20]
Lloh0:
	adrp	x1, _dev_attr_pp_dpm_sclk@GOTPAGE
Lloh1:
	ldr	x1, [x1, _dev_attr_pp_dpm_sclk@GOTPAGEOFF]
	bl	_device_create_file
	cbz	w0, LBB0_5
; %bb.3:
	mov	x19, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_4:
	mov	w19, #0
	b	LBB0_10
LBB0_5:
	ldr	w0, [x20]
Lloh4:
	adrp	x1, _dev_attr_pp_dpm_mclk@GOTPAGE
Lloh5:
	ldr	x1, [x1, _dev_attr_pp_dpm_mclk@GOTPAGEOFF]
	bl	_device_create_file
	cbz	w0, LBB0_7
; %bb.6:
	mov	x19, x0
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
	ldr	w0, [x20]
Lloh8:
	adrp	x1, _dev_attr_power_dpm_force_performance_level@GOTPAGE
Lloh9:
	ldr	x1, [x1, _dev_attr_power_dpm_force_performance_level@GOTPAGEOFF]
	bl	_device_create_file
	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	_DRM_ERROR
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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_attr_pp_dpm_sclk,4,2       ; @dev_attr_pp_dpm_sclk
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create device file pp_dpm_sclk\n"

	.comm	_dev_attr_pp_dpm_mclk,4,2       ; @dev_attr_pp_dpm_mclk
l_.str.1:                               ; @.str.1
	.asciz	"failed to create device file pp_dpm_mclk\n"

	.comm	_dev_attr_power_dpm_force_performance_level,4,2 ; @dev_attr_power_dpm_force_performance_level
l_.str.2:                               ; @.str.2
	.asciz	"failed to create device file for dpm state\n"

.subsections_via_symbols
