	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function sumo_dpm_init
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_sumo_dpm_init
	.p2align	4, 0x90
_sumo_dpm_init:                         ## @sumo_dpm_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	%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
	movq	_HW_REV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %r15d
	movq	_ATI_REV_ID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ATI_REV_ID_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$68, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	andl	%r15d, %ebx
	movl	%r12d, %ecx
	sarl	%cl, %ebx
	movq	%rax, 8(%r14)
	movl	$0, (%rax)
	movq	(%r14), %rax
	movq	_CHIP_PALM@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setne	%dl
	sete	%al
	cmpl	$3, %ebx
	setl	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	movl	%eax, 4(%r13)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,0,1]
	movups	%xmm0, 8(%r13)
	movl	%edx, 24(%r13)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 28(%r13)
	movl	$1, 36(%r13)
	movq	%r14, %rdi
	callq	_sumo_parse_sys_info_table
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	%r14, %rdi
	callq	_sumo_construct_boot_and_acpi_state
	movq	%r14, %rdi
	callq	_r600_get_platform_caps
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	callq	_sumo_parse_power_table
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_CYPRESS_HASI_DFLT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r13)
	movq	_RV770_ASI_DFLT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r13)
	movq	44(%r13), %rax
	movq	%rax, 52(%r13)
	movl	$1, 40(%r13)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_REV,4,2                     ## @HW_REV
	.comm	_ATI_REV_ID_MASK,4,2            ## @ATI_REV_ID_MASK
	.comm	_ATI_REV_ID_SHIFT,4,2           ## @ATI_REV_ID_SHIFT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CHIP_PALM,8,3                  ## @CHIP_PALM
	.comm	_CYPRESS_HASI_DFLT,4,2          ## @CYPRESS_HASI_DFLT
	.comm	_RV770_ASI_DFLT,4,2             ## @RV770_ASI_DFLT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function sumo_dpm_init
lCPI0_0:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_sumo_dpm_init
	.p2align	2
_sumo_dpm_init:                         ; @sumo_dpm_init
	.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
Lloh0:
	adrp	x8, _HW_REV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HW_REV@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_RREG32
	mov	x21, x0
Lloh3:
	adrp	x8, _ATI_REV_ID_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATI_REV_ID_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x8, _ATI_REV_ID_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATI_REV_ID_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w0, #68
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	and	w8, w22, w21
	asr	w8, w8, w23
	str	x0, [x19, #8]
Lloh12:
	adrp	x9, _CHIP_PALM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CHIP_PALM@GOTPAGEOFF]
	ldr	x10, [x19]
Lloh14:
	ldr	x9, [x9]
	cmp	x10, x9
	cset	w9, ne
	cset	w10, eq
	cmp	w8, #3
	cset	w8, lt
	and	w8, w10, w8
	stp	wzr, w8, [x0]
Lloh15:
	adrp	x8, lCPI0_0@PAGE
Lloh16:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x0, #8]
	str	w9, [x0, #24]
	movi.2s	v0, #1
	stur	d0, [x0, #28]
	mov	w8, #1
	str	w8, [x0, #36]
	mov	x0, x19
	bl	_sumo_parse_sys_info_table
	cbnz	w0, LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_sumo_construct_boot_and_acpi_state
	mov	x0, x19
	bl	_r600_get_platform_caps
	cbnz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_sumo_parse_power_table
	cbnz	w0, LBB0_6
; %bb.4:
Lloh17:
	adrp	x8, _CYPRESS_HASI_DFLT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CYPRESS_HASI_DFLT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _RV770_ASI_DFLT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _RV770_ASI_DFLT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #60]
	ldur	d0, [x20, #44]
	stur	d0, [x20, #52]
	mov	w8, #1
	str	w8, [x20, #40]
	b	LBB0_6
LBB0_5:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_REV,4,2                     ; @HW_REV
	.comm	_ATI_REV_ID_MASK,4,2            ; @ATI_REV_ID_MASK
	.comm	_ATI_REV_ID_SHIFT,4,2           ; @ATI_REV_ID_SHIFT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CHIP_PALM,8,3                  ; @CHIP_PALM
	.comm	_CYPRESS_HASI_DFLT,4,2          ; @CYPRESS_HASI_DFLT
	.comm	_RV770_ASI_DFLT,4,2             ; @RV770_ASI_DFLT
.subsections_via_symbols
