	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hwmgr_hw_fini                  ## -- Begin function hwmgr_hw_fini
	.p2align	4, 0x90
_hwmgr_hw_fini:                         ## @hwmgr_hw_fini
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, 16(%rdi)
	je	LBB0_7
## %bb.2:
	movq	%rbx, %rdi
	callq	_phm_stop_thermal_controller
	movq	%rbx, %rdi
	callq	_psm_set_boot_states
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_psm_adjust_power_state_dynamic
	movq	%rbx, %rdi
	callq	_phm_disable_dynamic_state_management
	movq	%rbx, %rdi
	callq	_phm_disable_clock_power_gatings
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_4:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_6:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_psm_fini_power_state_table     ## TAILCALL
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hwmgr_hw_fini                  ; -- Begin function hwmgr_hw_fini
	.p2align	2
_hwmgr_hw_fini:                         ; @hwmgr_hw_fini
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_7
; %bb.2:
	mov	x0, x19
	bl	_phm_stop_thermal_controller
	mov	x0, x19
	bl	_psm_set_boot_states
	mov	x0, x19
	mov	w1, #1
	mov	x2, #0
	bl	_psm_adjust_power_state_dynamic
	mov	x0, x19
	bl	_phm_disable_dynamic_state_management
	mov	x0, x19
	bl	_phm_disable_clock_power_gatings
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	blr	x8
LBB0_4:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	blr	x8
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_psm_fini_power_state_table
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
