	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function initialize_cpsch
_initialize_cpsch:                      ## @initialize_cpsch
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_get_pipes_per_mec
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_debug
	leaq	68(%rbx), %rdi
	callq	_mutex_init
	leaq	64(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movl	$0, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movups	%xmm0, 48(%rbx)
	movq	%rbx, %rdi
	callq	_get_num_sdma_queues
	negb	%al
	movq	$-1, %r14
	movq	$-1, %rdx
	movl	%eax, %ecx
	shrq	%cl, %rdx
	movq	%rdx, 8(%rbx)
	movq	%rbx, %rdi
	callq	_get_num_xgmi_sdma_queues
	negb	%al
	movl	%eax, %ecx
	shrq	%cl, %r14
	movq	%r14, 16(%rbx)
	addq	$24, %rbx
	movq	_kfd_process_hw_exception@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_WORK
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"num of pipes: %d\n"

	.comm	_kfd_process_hw_exception,4,2   ## @kfd_process_hw_exception
	.no_dead_strip	_initialize_cpsch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function initialize_cpsch
_initialize_cpsch:                      ; @initialize_cpsch
	.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
	mov	x19, x0
	bl	_get_pipes_per_mec
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	add	x0, x19, #68
	bl	_mutex_init
	add	x0, x19, #64
	bl	_INIT_LIST_HEAD
	str	wzr, [x19]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #32]
	mov	x0, x19
	bl	_get_num_sdma_queues
	neg	w8, w0
	mov	x20, #-1
	lsr	x8, x20, x8
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_get_num_xgmi_sdma_queues
	neg	w8, w0
	lsr	x8, x20, x8
	str	x8, [x19, #16]
	add	x0, x19, #24
Lloh2:
	adrp	x8, _kfd_process_hw_exception@GOTPAGE
Lloh3:
	ldr	x8, [x8, _kfd_process_hw_exception@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"num of pipes: %d\n"

	.comm	_kfd_process_hw_exception,4,2   ; @kfd_process_hw_exception
	.no_dead_strip	_initialize_cpsch
.subsections_via_symbols
