	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lima_init_pp_pipe
_lima_init_pp_pipe:                     ## @lima_init_pp_pipe
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %r12
	movq	_lima_pipe_pp@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	shlq	$6, %rbx
	leaq	(%r12,%rbx), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_lima_sched_pipe_init
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	_LIMA_SCHED_PIPE_MAX_PROCESSOR@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.2:
	movq	(%r15), %r9
	movq	_lima_gpu_mali400@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %rsi
	addq	$56, %rsi
	xorl	%edi, %edi
	movq	_lima_ip_l2_cache0@GOTPCREL(%rip), %r11
	movq	_lima_ip_l2_cache1@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdi
	movq	_LIMA_SCHED_PIPE_MAX_PROCESSOR@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rdi
	jge	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, %eax
	shrl	$2, %eax
	cmpq	%r10, %r9
	movq	8(%r15), %rbx
	movq	_lima_ip_pp0@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rbx,%rcx,8), %r12
	movslq	(%r11), %rcx
	leaq	(%rbx,%rcx,8), %rcx
	movslq	(%r13), %rdx
	leaq	(%rbx,%rdx,8), %rdx
	leaq	(%rdx,%rax,8), %r14
	cmoveq	%rcx, %r14
	cmpq	$0, (%r12,%rdi,8)
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_lima_ip_ppmmu0@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rbx,%rcx,8), %rcx
	leaq	(%rcx,%rdi,8), %r8
	cmpq	$0, (%r8)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r14)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r12,%rdi,8), %r12
	movq	(%rsi), %rdx
	movslq	-8(%rsi), %rbx
	leal	1(%rbx), %ecx
	movl	%ecx, -8(%rsi)
	movq	%r8, (%rdx,%rbx,8)
	movq	-16(%rsi), %rcx
	movslq	-24(%rsi), %rdx
	leal	1(%rdx), %ebx
	movl	%ebx, -24(%rsi)
	movq	%r12, (%rcx,%rdx,8)
	movq	-32(%rsi), %rbx
	cmpq	$0, (%rbx,%rax,8)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	-40(%rsi), %rax
	leal	1(%rax), %ecx
	movl	%ecx, -40(%rsi)
	movq	%r14, (%rbx,%rax,8)
	jmp	LBB0_8
LBB0_9:
	movq	8(%r15), %rax
	movq	_lima_ip_bcast@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_11
## %bb.10:
	movq	_lima_ip_pp_bcast@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,8), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rcx, 8(%rdx,%rsi)
	movq	_lima_ip_ppmmu_bcast@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,8), %rax
	movq	%rax, (%r14)
LBB0_11:
	movq	%r15, %rdi
	callq	_lima_pp_pipe_init
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_lima_sched_pipe_fini
	jmp	LBB0_14
LBB0_12:
	xorl	%r13d, %r13d
LBB0_14:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lima_pipe_pp,4,2               ## @lima_pipe_pp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pp"

	.comm	_LIMA_SCHED_PIPE_MAX_PROCESSOR,4,2 ## @LIMA_SCHED_PIPE_MAX_PROCESSOR
	.comm	_lima_ip_pp0,4,2                ## @lima_ip_pp0
	.comm	_lima_ip_ppmmu0,4,2             ## @lima_ip_ppmmu0
	.comm	_lima_gpu_mali400,8,3           ## @lima_gpu_mali400
	.comm	_lima_ip_l2_cache0,4,2          ## @lima_ip_l2_cache0
	.comm	_lima_ip_l2_cache1,4,2          ## @lima_ip_l2_cache1
	.comm	_lima_ip_bcast,8,3              ## @lima_ip_bcast
	.comm	_lima_ip_pp_bcast,4,2           ## @lima_ip_pp_bcast
	.comm	_lima_ip_ppmmu_bcast,4,2        ## @lima_ip_ppmmu_bcast
	.no_dead_strip	_lima_init_pp_pipe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lima_init_pp_pipe
_lima_init_pp_pipe:                     ; @lima_init_pp_pipe
	.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
	mov	x20, x0
	ldr	x22, [x0, #16]
Lloh0:
	adrp	x8, _lima_pipe_pp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lima_pipe_pp@GOTPAGEOFF]
Lloh2:
	ldrsw	x23, [x8]
	add	x19, x22, x23, lsl #6
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_lima_sched_pipe_init
	mov	x21, x0
	cbnz	w0, LBB0_13
; %bb.1:
Lloh5:
	adrp	x8, _LIMA_SCHED_PIPE_MAX_PROCESSOR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LIMA_SCHED_PIPE_MAX_PROCESSOR@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x9, #0
	ldr	x10, [x20]
Lloh7:
	adrp	x11, _lima_gpu_mali400@GOTPAGE
Lloh8:
	ldr	x11, [x11, _lima_gpu_mali400@GOTPAGEOFF]
Lloh9:
	ldr	x11, [x11]
	add	x17, x22, x23, lsl #6
	add	x12, x17, #56
	add	x13, x17, #48
	add	x14, x17, #40
	add	x15, x17, #32
	add	x16, x17, #24
	add	x17, x17, #16
Lloh10:
	adrp	x0, _lima_ip_pp0@GOTPAGE
Lloh11:
	ldr	x0, [x0, _lima_ip_pp0@GOTPAGEOFF]
Lloh12:
	adrp	x1, _lima_ip_ppmmu0@GOTPAGE
Lloh13:
	ldr	x1, [x1, _lima_ip_ppmmu0@GOTPAGEOFF]
Lloh14:
	adrp	x2, _lima_ip_l2_cache0@GOTPAGE
Lloh15:
	ldr	x2, [x2, _lima_ip_l2_cache0@GOTPAGEOFF]
Lloh16:
	adrp	x3, _lima_ip_l2_cache1@GOTPAGE
Lloh17:
	ldr	x3, [x3, _lima_ip_l2_cache1@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	ldrsw	x4, [x8]
	cmp	x9, x4
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x7, [x20, #8]
	ldrsw	x4, [x0]
	add	x4, x7, x4, lsl #3
	lsl	x21, x9, #3
	add	x5, x4, x21
	ldrsw	x4, [x2]
	add	x4, x7, x4, lsl #3
	ldrsw	x6, [x3]
	add	x24, x7, x6, lsl #3
	ubfx	x6, x9, #2, #30
	add	x24, x24, x6, lsl #3
	cmp	x10, x11
	csel	x4, x4, x24, eq
	ldr	x24, [x5]
	cbz	x24, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x24, [x1]
	add	x7, x7, x24, lsl #3
	add	x7, x7, x21
	ldr	x21, [x7]
	cbz	x21, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x21, [x4]
	cbz	x21, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x21, [x12]
	ldrsw	x24, [x13]
	add	w25, w24, #1
	str	w25, [x13]
	str	x7, [x21, x24, lsl #3]
	ldr	x7, [x14]
	ldrsw	x21, [x15]
	add	w24, w21, #1
	str	w24, [x15]
	str	x5, [x7, x21, lsl #3]
	ldr	x5, [x16]
	ldr	x6, [x5, x6, lsl #3]
	cbnz	x6, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x6, [x17]
	add	w7, w6, #1
	str	w7, [x17]
	str	x4, [x5, x6, lsl #3]
	b	LBB0_3
LBB0_9:
	ldr	x8, [x20, #8]
Lloh18:
	adrp	x9, _lima_ip_bcast@GOTPAGE
Lloh19:
	ldr	x9, [x9, _lima_ip_bcast@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_11
; %bb.10:
Lloh21:
	adrp	x9, _lima_ip_pp_bcast@GOTPAGE
Lloh22:
	ldr	x9, [x9, _lima_ip_pp_bcast@GOTPAGEOFF]
Lloh23:
	ldrsw	x9, [x9]
	add	x9, x8, x9, lsl #3
	add	x10, x22, x23, lsl #6
	str	x9, [x10, #8]
Lloh24:
	adrp	x9, _lima_ip_ppmmu_bcast@GOTPAGE
Lloh25:
	ldr	x9, [x9, _lima_ip_ppmmu_bcast@GOTPAGEOFF]
Lloh26:
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #3
	str	x8, [x19]
LBB0_11:
	mov	x0, x20
	bl	_lima_pp_pipe_init
	mov	x21, x0
	cbz	w0, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_lima_sched_pipe_fini
LBB0_13:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_lima_pipe_pp,4,2               ; @lima_pipe_pp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pp"

	.comm	_LIMA_SCHED_PIPE_MAX_PROCESSOR,4,2 ; @LIMA_SCHED_PIPE_MAX_PROCESSOR
	.comm	_lima_ip_pp0,4,2                ; @lima_ip_pp0
	.comm	_lima_ip_ppmmu0,4,2             ; @lima_ip_ppmmu0
	.comm	_lima_gpu_mali400,8,3           ; @lima_gpu_mali400
	.comm	_lima_ip_l2_cache0,4,2          ; @lima_ip_l2_cache0
	.comm	_lima_ip_l2_cache1,4,2          ; @lima_ip_l2_cache1
	.comm	_lima_ip_bcast,8,3              ; @lima_ip_bcast
	.comm	_lima_ip_pp_bcast,4,2           ; @lima_ip_pp_bcast
	.comm	_lima_ip_ppmmu_bcast,4,2        ; @lima_ip_ppmmu_bcast
	.no_dead_strip	_lima_init_pp_pipe
.subsections_via_symbols
