	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_pm_init                 ## -- Begin function radeon_pm_init
	.p2align	4, 0x90
_radeon_pm_init:                        ## @radeon_pm_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_radeon_dpm_quirk_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	(%rcx), %rdx
	testq	%rdx, %rdx
	sete	%al
	je	LBB0_9
## %bb.3:
	movq	24(%rdi), %r8
	movq	(%r8), %rsi
	addq	$32, %rcx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rcx), %rdx
	addq	$32, %rcx
	testq	%rdx, %rdx
	sete	%al
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	-24(%rcx), %rsi
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rdx, 8(%r8)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r8), %rdx
	cmpq	-16(%rcx), %rdx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r8), %rdx
	cmpq	-8(%rcx), %rdx
	jne	LBB0_8
LBB0_9:
	xorb	$1, %al
	jmp	LBB0_10
LBB0_1:
	xorl	%eax, %eax
LBB0_10:
	movl	(%rdi), %ecx
	leal	-128(%rcx), %edx
	cmpl	$33, %edx
	ja	LBB0_23
## %bb.11:
	movabsq	$17179804127, %rsi              ## imm = 0x3FFFF01DF
	btq	%rdx, %rsi
	jae	LBB0_12
## %bb.17:
	cmpl	$0, 20(%rdi)
	je	LBB0_23
## %bb.18:
	cmpl	$133, %ecx
	jb	LBB0_21
## %bb.19:
	movq	_RADEON_IS_IGP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rdi)
	jne	LBB0_21
## %bb.20:
	cmpl	$0, 16(%rdi)
	je	LBB0_23
LBB0_21:
	movq	_radeon_dpm@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	$-1, %ecx
	sete	%dl
	andb	%dl, %al
	cmpb	$1, %al
	je	LBB0_23
## %bb.22:
	testl	%ecx, %ecx
	jne	LBB0_16
	jmp	LBB0_23
LBB0_12:
	cmpl	$0, 20(%rdi)
	je	LBB0_23
## %bb.13:
	movq	_RADEON_IS_IGP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rdi)
	jne	LBB0_15
## %bb.14:
	cmpl	$0, 16(%rdi)
	je	LBB0_23
LBB0_15:
	movq	_radeon_dpm@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jne	LBB0_23
LBB0_16:
	movq	_PM_METHOD_DPM@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_23:
	movq	_PM_METHOD_PROFILE@GOTPCREL(%rip), %rax
LBB0_24:
	movq	(%rax), %rax
	movq	%rax, 8(%rdi)
	movq	_PM_METHOD_DPM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.25:
	popq	%rbp
	jmp	_radeon_pm_init_dpm             ## TAILCALL
LBB0_26:
	popq	%rbp
	jmp	_radeon_pm_init_old             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_radeon_dpm_quirk_list,8,3      ## @radeon_dpm_quirk_list
	.comm	_PM_METHOD_PROFILE,8,3          ## @PM_METHOD_PROFILE
	.comm	_RADEON_IS_IGP,4,2              ## @RADEON_IS_IGP
	.comm	_radeon_dpm,4,2                 ## @radeon_dpm
	.comm	_PM_METHOD_DPM,8,3              ## @PM_METHOD_DPM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_pm_init                 ; -- Begin function radeon_pm_init
	.p2align	2
_radeon_pm_init:                        ; @radeon_pm_init
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _radeon_dpm_quirk_list@GOTPAGE
Lloh1:
	ldr	x8, [x8, _radeon_dpm_quirk_list@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x8]
	cbz	x11, LBB0_9
; %bb.1:
	ldr	x12, [x11]
	cmp	x12, #0
	cset	w8, eq
	cbz	x12, LBB0_8
; %bb.2:
	ldr	x9, [x0, #24]
	ldr	x10, [x9]
	add	x11, x11, #32
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x12, [x11], #32
	cmp	x12, #0
	cset	w8, eq
	cbz	x12, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x13, [x11, #-24]
	cmp	x10, x13
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x13, [x9, #8]
	cmp	x13, x12
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x12, [x9, #16]
	ldur	x13, [x11, #-16]
	cmp	x12, x13
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x12, [x9, #24]
	ldur	x13, [x11, #-8]
	cmp	x12, x13
	b.ne	LBB0_3
LBB0_8:
	eor	w9, w8, #0x1
	b	LBB0_10
LBB0_9:
	mov	w9, #0
LBB0_10:
	ldr	w10, [x0]
	sub	w11, w10, #128
Lloh3:
	adrp	x8, _PM_METHOD_DPM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PM_METHOD_DPM@GOTPAGEOFF]
	cmp	w11, #33
	b.hi	LBB0_23
; %bb.11:
	mov	w12, #1
	lsl	x11, x12, x11
	mov	x12, #17179803648
	movk	x12, #479
	tst	x11, x12
	b.eq	LBB0_18
; %bb.12:
	ldr	w11, [x0, #20]
	cbz	w11, LBB0_23
; %bb.13:
	cmp	w10, #133
	b.lo	LBB0_16
; %bb.14:
	ldr	w10, [x0, #4]
Lloh5:
	adrp	x11, _RADEON_IS_IGP@GOTPAGE
Lloh6:
	ldr	x11, [x11, _RADEON_IS_IGP@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	tst	w11, w10
	b.ne	LBB0_16
; %bb.15:
	ldr	w10, [x0, #16]
	cbz	w10, LBB0_23
LBB0_16:
Lloh8:
	adrp	x10, _radeon_dpm@GOTPAGE
Lloh9:
	ldr	x10, [x10, _radeon_dpm@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmn	w10, #1
	cset	w11, eq
	and	w9, w9, w11
	cmp	w9, #1
	b.eq	LBB0_23
; %bb.17:
	cbnz	w10, LBB0_22
	b	LBB0_23
LBB0_18:
	ldr	w9, [x0, #20]
	cbz	w9, LBB0_23
; %bb.19:
	ldr	w9, [x0, #4]
Lloh11:
	adrp	x10, _RADEON_IS_IGP@GOTPAGE
Lloh12:
	ldr	x10, [x10, _RADEON_IS_IGP@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_21
; %bb.20:
	ldr	w9, [x0, #16]
	cbz	w9, LBB0_23
LBB0_21:
Lloh14:
	adrp	x9, _radeon_dpm@GOTPAGE
Lloh15:
	ldr	x9, [x9, _radeon_dpm@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w9, #1
	b.ne	LBB0_23
LBB0_22:
	ldr	x9, [x8]
	b	LBB0_24
LBB0_23:
Lloh17:
	adrp	x9, _PM_METHOD_PROFILE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PM_METHOD_PROFILE@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
LBB0_24:
	str	x9, [x0, #8]
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.25:
	b	_radeon_pm_init_dpm
LBB0_26:
	b	_radeon_pm_init_old
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_radeon_dpm_quirk_list,8,3      ; @radeon_dpm_quirk_list
	.comm	_PM_METHOD_PROFILE,8,3          ; @PM_METHOD_PROFILE
	.comm	_RADEON_IS_IGP,4,2              ; @RADEON_IS_IGP
	.comm	_radeon_dpm,4,2                 ; @radeon_dpm
	.comm	_PM_METHOD_DPM,8,3              ; @PM_METHOD_DPM
.subsections_via_symbols
