	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_compute_pack_layers            ## -- Begin function compute_pack_layers
	.p2align	4, 0x90
_compute_pack_layers:                   ## @compute_pack_layers
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_core_island_name@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movl	$1, %eax
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r13
	movq	_island_marks@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	testl	%edi, %edi
	je	LBB0_9
## %bb.2:
	movl	$2, %eax
	cmpq	$0, (%r13)
	je	LBB0_9
## %bb.3:
	movl	$1, %r14d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rbx
	movl	-4(%rbx,%r14,4), %esi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addq	%rax, %rbx
	callq	_kh_get_oid_map
	movq	%rax, %r12
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_oe_set_layer
	movl	(%r15), %edi
	callq	_kh_end
	cmpq	%rax, %r12
	jge	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_island_marks@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_kh_value
	movq	_island_counter_core@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_island_bitmap_get
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_oe_set_layer
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	(%r13), %r14
	jae	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_island_marks@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	incq	%r14
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$4, %rax
	jmp	LBB0_4
LBB0_8:
	movl	$2, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_core_island_name,4,2           ## @core_island_name
	.comm	_island_marks,4,2               ## @island_marks
	.comm	_island_counter_core,4,2        ## @island_counter_core
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_compute_pack_layers            ; -- Begin function compute_pack_layers
	.p2align	2
_compute_pack_layers:                   ; @compute_pack_layers
	.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	x19, x0
Lloh0:
	adrp	x8, _core_island_name@GOTPAGE
Lloh1:
	ldr	x8, [x8, _core_island_name@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x22, _island_marks@GOTPAGE
Lloh4:
	ldr	x22, [x22, _island_marks@GOTPAGEOFF]
	ldr	w0, [x22]
	cmp	w8, #0
	ccmp	w0, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_10
LBB0_2:
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.3:
	mov	x23, #0
	mov	w24, #1
Lloh5:
	adrp	x25, _island_counter_core@GOTPAGE
Lloh6:
	ldr	x25, [x25, _island_counter_core@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x20, x8, x23
	ldr	w1, [x20]
	bl	_kh_get_oid_map
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_oe_set_layer
	ldr	w0, [x22]
	bl	_kh_end
	cmp	x21, x0
	b.ge	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x22]
	mov	x1, x21
	bl	_kh_value
	ldr	w1, [x25]
	bl	_island_bitmap_get
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_oe_set_layer
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	cmp	x24, x8
	b.hs	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x22]
	add	x24, x24, #1
	add	x23, x23, #4
	b	LBB0_4
LBB0_9:
	mov	w0, #2
LBB0_10:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_core_island_name,4,2           ; @core_island_name
	.comm	_island_marks,4,2               ; @island_marks
	.comm	_island_counter_core,4,2        ; @island_counter_core
.subsections_via_symbols
