	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_init_ao_cu_mask
_si_init_ao_cu_mask:                    ## @si_init_ao_cu_mask
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	jle	LBB0_1
## %bb.2:
	movq	8(%rdi), %rax
	xorl	%esi, %esi
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rdi), %rcx
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	movq	%rbx, %rdx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %rbx
	jge	LBB0_15
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
	testq	%rax, %rax
	jle	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	shlq	$4, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rdx
	xorl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	8(%rdi), %rax
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leal	(%rcx,%rbx,8), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %r14
	addq	%r15, %r12
	orq	%r14, %rsi
	incq	%rbx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rbx
	jge	LBB0_13
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	testq	%rdx, %rdx
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	$1, %r12d
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=3
	xorl	%edx, %edx
	testq	%rax, %rax
	setne	%dl
	cmoveq	%rax, %rcx
	addq	%rdx, %r15
	orq	%rcx, %r14
	addq	%r12, %r12
	incq	%r13
	movq	%rbx, %rdi
	movq	16(%rbx), %rdx
	cmpq	%rdx, %r13
	jge	LBB0_11
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%rdi, %rbx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_si_get_cu_active_bitmap
	andq	%r12, %rax
	movq	%r12, %rcx
	cmpq	$2, %r15
	jb	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=3
	xorl	%ecx, %ecx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=2
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_1:
	xorl	%r12d, %r12d
	xorl	%esi, %esi
LBB0_15:
	movq	_RLC_PG_AO_CU_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WREG32
	movq	_RLC_MAX_PG_CU@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_RREG32
	movq	_MAX_PU_CU_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	notq	%rbx
	andq	%rax, %rbx
	movq	%r12, %rdi
	callq	_MAX_PU_CU
	orq	%rax, %rbx
	movl	(%r14), %edi
	movq	%rbx, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RLC_PG_AO_CU_MASK,4,2          ## @RLC_PG_AO_CU_MASK
	.comm	_RLC_MAX_PG_CU,4,2              ## @RLC_MAX_PG_CU
	.comm	_MAX_PU_CU_MASK,8,3             ## @MAX_PU_CU_MASK
	.no_dead_strip	_si_init_ao_cu_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_init_ao_cu_mask
_si_init_ao_cu_mask:                    ; @si_init_ao_cu_mask
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x9, [x0]
	cmp	x9, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x21, x0
	mov	x20, #0
	mov	x19, #0
	mov	x22, #0
	ldr	x8, [x0, #8]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	cmp	x22, x9
	b.ge	LBB0_13
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, #0
	lsl	x24, x22, #4
	ldr	x9, [x21, #16]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x26, #0
	mov	x25, #0
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x19, x26, x19
	add	x10, x24, x23, lsl #3
	lsl	x10, x25, x10
	orr	x20, x10, x20
	add	x23, x23, #1
	cmp	x23, x8
	b.ge	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
	cmp	x9, #1
	b.lt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x25, #0
	mov	x26, #0
	mov	x27, #0
	mov	w28, #1
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_si_get_cu_active_bitmap
	cmp	x26, #2
	csel	x8, x28, xzr, lo
	tst	x0, x28
	cinc	x26, x26, ne
	csel	x8, xzr, x8, eq
	orr	x25, x8, x25
	lsl	x28, x28, #1
	add	x27, x27, #1
	ldr	x9, [x21, #16]
	cmp	x27, x9
	b.lt	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x21, #8]
	b	LBB0_7
LBB0_12:
	mov	x19, #0
	mov	x20, #0
LBB0_13:
Lloh0:
	adrp	x8, _RLC_PG_AO_CU_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RLC_PG_AO_CU_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_WREG32
Lloh3:
	adrp	x20, _RLC_MAX_PG_CU@GOTPAGE
Lloh4:
	ldr	x20, [x20, _RLC_MAX_PG_CU@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_RREG32
Lloh5:
	adrp	x8, _MAX_PU_CU_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_PU_CU_MASK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	bic	x21, x0, x8
	mov	x0, x19
	bl	_MAX_PU_CU
	orr	x1, x21, x0
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_WREG32
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RLC_PG_AO_CU_MASK,4,2          ; @RLC_PG_AO_CU_MASK
	.comm	_RLC_MAX_PG_CU,4,2              ; @RLC_MAX_PG_CU
	.comm	_MAX_PU_CU_MASK,8,3             ; @MAX_PU_CU_MASK
	.no_dead_strip	_si_init_ao_cu_mask
.subsections_via_symbols
