	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hwmgr_hw_init                  ## -- Begin function hwmgr_hw_init
	.p2align	4, 0x90
_hwmgr_hw_init:                         ## @hwmgr_hw_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	cmpl	$0, (%rdi)
	je	LBB0_19
## %bb.1:
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.2:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.3:
	movq	16(%r14), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_17
## %bb.4:
	movq	%r14, %rdi
	callq	*%rax
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.5:
	movl	64(%r14), %eax
	movq	24(%r14), %rcx
	movl	%eax, 4(%rcx)
	movq	16(%r14), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.6:
	cmpq	$0, 48(%r14)
	je	LBB0_8
## %bb.7:
	cmpq	$0, 56(%r14)
	jne	LBB0_9
LBB0_8:
	leaq	48(%r14), %rax
	movups	32(%r14), %xmm0
	movups	%xmm0, (%rax)
LBB0_9:
	movq	%r14, %rdi
	callq	_psm_init_power_state_table
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	%r14, %rdi
	callq	_phm_setup_asic
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	%r14, %rdi
	callq	_phm_enable_dynamic_state_management
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_phm_start_thermal_controller
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_psm_set_performance_states
	movl	%eax, %ebx
	orl	%r15d, %ebx
	je	LBB0_20
LBB0_13:
	movq	16(%r14), %rax
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	*%rcx
LBB0_15:
	movq	8(%r14), %rax
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.16:
	movq	%r14, %rdi
	callq	*%rcx
	jmp	LBB0_19
LBB0_17:
	movl	$0, (%r14)
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
LBB0_18:
	xorl	%ebx, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	24(%r14), %rax
	movl	$1, (%rax)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dpm not supported \n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hwmgr_hw_init                  ; -- Begin function hwmgr_hw_init
	.p2align	2
_hwmgr_hw_init:                         ; @hwmgr_hw_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
	ldr	w8, [x0]
	cbz	w8, LBB0_18
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_17
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_17
; %bb.3:
	ldr	x9, [x19, #16]
	ldr	x9, [x9]
	cbz	x9, LBB0_17
; %bb.4:
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbnz	w0, LBB0_19
; %bb.5:
	ldr	w8, [x19, #64]
	ldp	x10, x9, [x19, #16]
	str	w8, [x9, #4]
	ldr	x8, [x10]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbnz	w0, LBB0_15
; %bb.6:
	mov	x8, x19
	ldr	x9, [x8, #48]!
	cbz	x9, LBB0_8
; %bb.7:
	ldr	x9, [x19, #56]
	cbnz	x9, LBB0_9
LBB0_8:
	ldr	q0, [x19, #32]
	str	q0, [x8]
LBB0_9:
	mov	x0, x19
	bl	_psm_init_power_state_table
	mov	x20, x0
	cbnz	w0, LBB0_13
; %bb.10:
	mov	x0, x19
	bl	_phm_setup_asic
	mov	x20, x0
	cbnz	w0, LBB0_13
; %bb.11:
	mov	x0, x19
	bl	_phm_enable_dynamic_state_management
	mov	x20, x0
	cbnz	w0, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_phm_start_thermal_controller
	mov	x20, x0
	mov	x0, x19
	bl	_psm_set_performance_states
	orr	w20, w0, w20
	cbz	w20, LBB0_20
LBB0_13:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_15
; %bb.14:
	mov	x0, x19
	blr	x8
LBB0_15:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_19
; %bb.16:
	mov	x0, x19
	blr	x8
	b	LBB0_19
LBB0_17:
	str	wzr, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
LBB0_18:
	mov	w20, #0
LBB0_19:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_20:
	ldr	x8, [x19, #24]
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_19
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dpm not supported \n"

.subsections_via_symbols
