	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function initialize_nocpsch
_initialize_nocpsch:                    ## @initialize_nocpsch
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_get_pipes_per_mec
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_debug
	movq	%r15, %rdi
	callq	_get_pipes_per_mec
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	76(%r15), %rdi
	callq	_mutex_init
	leaq	72(%r15), %rdi
	callq	_INIT_LIST_HEAD
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r15)
	movups	%xmm0, 56(%r15)
	movq	%r15, %rdi
	callq	_get_pipes_per_mec
	testl	%eax, %eax
	jle	LBB0_10
## %bb.3:
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	movq	%r15, %rdi
	callq	_get_pipes_per_mec
	cltq
	cmpq	%rax, %r12
	jge	LBB0_10
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%r15, %rdi
	callq	_get_queues_per_pipe
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_get_queues_per_pipe
	testl	%eax, %eax
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	imull	%r12d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	incl	%ebx
	movq	%r15, %rdi
	callq	_get_queues_per_pipe
	cmpl	%eax, %ebx
	jge	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r14,%rbx), %edi
	movq	32(%r15), %rax
	movl	4(%rax), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	movq	(%r15), %rcx
	orl	%eax, (%rcx,%r12,4)
	jmp	LBB0_8
LBB0_10:
	movq	32(%r15), %rax
	movb	(%rax), %cl
	movl	$-1, %eax
	shll	%cl, %eax
	notl	%eax
	movl	%eax, 8(%r15)
	movq	%r15, %rdi
	callq	_get_num_sdma_queues
	negb	%al
	movq	$-1, %rbx
	movq	$-1, %rdx
	movl	%eax, %ecx
	shrq	%cl, %rdx
	movq	%rdx, 16(%r15)
	movq	%r15, %rdi
	callq	_get_num_xgmi_sdma_queues
	negb	%al
	movl	%eax, %ecx
	shrq	%cl, %rbx
	movq	%rbx, 24(%r15)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"num of pipes: %d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_initialize_nocpsch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function initialize_nocpsch
_initialize_nocpsch:                    ; @initialize_nocpsch
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	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
	mov	x0, x19
	bl	_get_pipes_per_mec
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19]
	cbz	x0, LBB0_10
; %bb.1:
	add	x0, x19, #76
	bl	_mutex_init
	add	x0, x19, #72
	bl	_INIT_LIST_HEAD
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #40]
	stur	q0, [x19, #56]
	mov	x0, x19
	bl	_get_pipes_per_mec
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x21, #0
	mov	w22, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	mov	x0, x19
	bl	_get_pipes_per_mec
	cmp	x21, w0, sxtw
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x0, x19
	bl	_get_queues_per_pipe
	mov	x20, x0
	mov	x0, x19
	bl	_get_queues_per_pipe
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, #0
	mul	w20, w20, w21
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	w23, w23, #1
	mov	x0, x19
	bl	_get_queues_per_pipe
	cmp	w23, w0
	b.ge	LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w0, w20, w23
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #4]
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	lsl	w8, w22, w23
	ldr	x9, [x19]
	lsl	x10, x21, #2
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
	b	LBB0_6
LBB0_9:
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w8, w8
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_get_num_sdma_queues
	neg	w8, w0
	mov	x20, #-1
	lsr	x8, x20, x8
	str	x8, [x19, #16]
	mov	x0, x19
	bl	_get_num_xgmi_sdma_queues
	mov	x8, x0
	mov	w0, #0
	neg	w8, w8
	lsr	x8, x20, x8
	str	x8, [x19, #24]
	b	LBB0_11
LBB0_10:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"num of pipes: %d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_initialize_nocpsch
.subsections_via_symbols
