	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pm_init                        ## -- Begin function pm_init
	.p2align	4, 0x90
_pm_init:                               ## @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
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	leal	-128(%rdx), %eax
	cmpl	$15, %eax
	jae	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cltq
	leaq	l_switch.table.pm_init(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	%rax, 24(%rdi)
	movq	%rsi, 16(%rdi)
	leaq	4(%rdi), %r15
	movq	%r15, %rdi
	callq	_mutex_init
	movq	(%rbx), %rdi
	movq	_KFD_QUEUE_TYPE_HIQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kernel_queue_init
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movl	$0, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_WARN
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	%r15, %rdi
	callq	_mutex_destroy
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kfd_vi_pm_funcs,4,2            ## @kfd_vi_pm_funcs
	.comm	_kfd_v9_pm_funcs,4,2            ## @kfd_v9_pm_funcs
	.comm	_kfd_v10_pm_funcs,4,2           ## @kfd_v10_pm_funcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected ASIC family %u"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_KFD_QUEUE_TYPE_HIQ,4,2         ## @KFD_QUEUE_TYPE_HIQ
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.pm_init
l_switch.table.pm_init:
	.quad	_kfd_vi_pm_funcs
	.quad	_kfd_v9_pm_funcs
	.quad	_kfd_v9_pm_funcs
	.quad	_kfd_v9_pm_funcs
	.quad	_kfd_vi_pm_funcs
	.quad	_kfd_v9_pm_funcs
	.quad	_kfd_vi_pm_funcs
	.quad	_kfd_vi_pm_funcs
	.quad	_kfd_vi_pm_funcs
	.quad	_kfd_v10_pm_funcs
	.quad	_kfd_vi_pm_funcs
	.quad	_kfd_vi_pm_funcs
	.quad	_kfd_vi_pm_funcs
	.quad	_kfd_vi_pm_funcs
	.quad	_kfd_v9_pm_funcs

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pm_init                        ; -- Begin function pm_init
	.p2align	2
_pm_init:                               ; @pm_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x1]
	ldr	x8, [x8]
	ldr	w2, [x8]
	sub	w8, w2, #128
	cmp	w8, #15
	b.hs	LBB0_3
; %bb.1:
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x9, l_switch.table.pm_init@PAGE
Lloh1:
	add	x9, x9, l_switch.table.pm_init@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	stp	x1, x8, [x0, #16]
	add	x20, x0, #4
	mov	x0, x20
	bl	_mutex_init
	ldr	x0, [x21]
Lloh2:
	adrp	x8, _KFD_QUEUE_TYPE_HIQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KFD_QUEUE_TYPE_HIQ@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kernel_queue_init
	str	w0, [x19, #8]
	cbz	w0, LBB0_4
; %bb.2:
	mov	w0, #0
	str	wzr, [x19]
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_mutex_destroy
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_kfd_vi_pm_funcs,4,2            ; @kfd_vi_pm_funcs
	.comm	_kfd_v9_pm_funcs,4,2            ; @kfd_v9_pm_funcs
	.comm	_kfd_v10_pm_funcs,4,2           ; @kfd_v10_pm_funcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected ASIC family %u"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_KFD_QUEUE_TYPE_HIQ,4,2         ; @KFD_QUEUE_TYPE_HIQ
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.pm_init
l_switch.table.pm_init:
	.quad	_kfd_vi_pm_funcs
	.quad	_kfd_v9_pm_funcs
	.quad	_kfd_v9_pm_funcs
	.quad	_kfd_v9_pm_funcs
	.quad	_kfd_vi_pm_funcs
	.quad	_kfd_v9_pm_funcs
	.quad	_kfd_vi_pm_funcs
	.quad	_kfd_vi_pm_funcs
	.quad	_kfd_vi_pm_funcs
	.quad	_kfd_v10_pm_funcs
	.quad	_kfd_vi_pm_funcs
	.quad	_kfd_vi_pm_funcs
	.quad	_kfd_vi_pm_funcs
	.quad	_kfd_vi_pm_funcs
	.quad	_kfd_v9_pm_funcs

.subsections_via_symbols
