	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psm_init_power_state_table     ## -- Begin function psm_init_power_state_table
	.p2align	4, 0x90
_psm_init_power_state_table:            ## @psm_init_power_state_table
	.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	40(%rdi), %rcx
	movq	(%rcx), %rax
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	cmpq	$0, 8(%rcx)
	je	LBB0_19
## %bb.2:
	movq	%rdi, %r13
	callq	*%rax
	movl	%eax, %r14d
	movl	%eax, (%r13)
	movq	40(%r13), %rax
	movq	%r13, %rdi
	callq	*8(%rax)
	movl	%eax, %r15d
	addl	$8, %r15d
	movl	%r15d, 4(%r13)
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.3:
	testl	%r15d, %r15d
	je	LBB0_13
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_kcalloc
	movq	%rax, 48(%r13)
	testq	%rax, %rax
	je	LBB0_18
## %bb.5:
	movl	(%rbx), %esi
	movl	%r15d, %edi
	callq	_kzalloc
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_15
## %bb.6:
	movl	(%rbx), %esi
	movl	%r15d, %edi
	callq	_kzalloc
	movq	%rax, 24(%r13)
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:
	movq	48(%r13), %rbx
	movslq	%r15d, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	addq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	cmpl	%r12d, %r14d
	je	LBB0_14
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r13), %rax
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	callq	*16(%rax)
	movl	4(%rbx), %eax
	movq	_PP_StateClassificationFlag_Boot@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, 32(%r13)
	movq	24(%r13), %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movq	16(%r13), %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movl	4(%rbx), %eax
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	%r12d
	movl	%r12d, (%rbx)
	movq	_PP_StateClassificationFlag_Uvd@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, 8(%r13)
	jmp	LBB0_8
LBB0_13:
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
	jmp	LBB0_19
LBB0_14:
	xorl	%r12d, %r12d
	jmp	LBB0_19
LBB0_15:
	movq	48(%r13), %rdi
	callq	_kfree
	jmp	LBB0_17
LBB0_16:
	movq	16(%r13), %rdi
	callq	_kfree
	movq	48(%r13), %rdi
	callq	_kfree
	movq	$0, 16(%r13)
LBB0_17:
	movq	$0, 48(%r13)
LBB0_18:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_19:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Please check whether power state management is supported on this asic\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PP_StateClassificationFlag_Boot,4,2 ## @PP_StateClassificationFlag_Boot
	.comm	_PP_StateClassificationFlag_Uvd,4,2 ## @PP_StateClassificationFlag_Uvd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psm_init_power_state_table     ; -- Begin function psm_init_power_state_table
	.p2align	2
_psm_init_power_state_table:            ; @psm_init_power_state_table
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x9, [x0, #40]
	ldr	x8, [x9]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_4
; %bb.2:
	mov	x19, x0
	blr	x8
	mov	x20, x0
	str	w0, [x19]
	ldr	x8, [x19, #40]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	add	w21, w0, #8
	str	w21, [x19, #4]
	cmp	w20, #0
	ccmp	w21, #0, #4, ne
	b.ne	LBB0_6
; %bb.3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh2:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_kcalloc
	str	x0, [x19, #48]
	cbz	x0, LBB0_18
; %bb.7:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_kzalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_15
; %bb.8:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_kzalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_16
; %bb.9:
	mov	w22, #0
	ldr	x23, [x19, #48]
	sxtw	x24, w21
Lloh4:
	adrp	x25, _PP_StateClassificationFlag_Boot@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PP_StateClassificationFlag_Boot@GOTPAGEOFF]
Lloh6:
	adrp	x26, _PP_StateClassificationFlag_Uvd@GOTPAGE
Lloh7:
	ldr	x26, [x26, _PP_StateClassificationFlag_Uvd@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x23, x23, x24
	cmp	w20, w22
	b.eq	LBB0_4
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	ldr	x8, [x8, #16]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	blr	x8
	ldr	w8, [x23, #4]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	str	x23, [x19, #32]
	ldr	x0, [x19, #24]
	mov	x1, x23
	mov	x2, x21
	bl	_memcpy
	ldr	x0, [x19, #16]
	mov	x1, x23
	mov	x2, x21
	bl	_memcpy
	ldr	w8, [x23, #4]
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w22, w22, #1
	str	w22, [x23]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	str	x23, [x19, #8]
	b	LBB0_10
LBB0_15:
	ldr	x0, [x19, #48]
	bl	_kfree
	b	LBB0_17
LBB0_16:
	ldr	x0, [x19, #16]
	bl	_kfree
	ldr	x0, [x19, #48]
	bl	_kfree
	str	xzr, [x19, #16]
LBB0_17:
	str	xzr, [x19, #48]
LBB0_18:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Please check whether power state management is supported on this asic\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PP_StateClassificationFlag_Boot,4,2 ; @PP_StateClassificationFlag_Boot
	.comm	_PP_StateClassificationFlag_Uvd,4,2 ; @PP_StateClassificationFlag_Uvd
.subsections_via_symbols
