	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compute_layer_order
_compute_layer_order:                   ## @compute_layer_order
	.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, -48(%rbp)                 ## 8-byte Spill
	movq	_to_pack@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_29
## %bb.1:
	movq	%rsi, %r12
	movq	_to_pack@GOTPCREL(%rip), %rcx
	movq	8(%rcx), %r13
	cmpq	$0, 8(%r13)
	je	LBB0_3
## %bb.2:
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_3:
	movl	$1, %ecx
	movq	%r13, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %r15
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_add_to_write_order
	movq	_to_pack@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r15
	jae	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	1(%r15), %rcx
	cmpq	$0, 24(%rbx)
	leaq	16(%rbx), %rbx
	je	LBB0_5
LBB0_6:
	cmpl	%r15d, %eax
	jbe	LBB0_11
## %bb.7:
	movl	%r15d, %r14d
	movq	%r15, %rbx
	shlq	$4, %rbx
	addq	%r13, %rbx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	movl	%eax, %ecx
	addq	$16, %rbx
	cmpq	%rcx, %r14
	jae	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%rbx)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_add_to_write_order
	movq	_to_pack@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_11:
	cmpl	%r15d, %eax
	jbe	LBB0_17
## %bb.12:
	movl	%r15d, %r14d
	movq	%r15, %rbx
	shlq	$4, %rbx
	addq	%r13, %rbx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_add_to_write_order
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r14
	movq	_to_pack@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$16, %rbx
	cmpq	%rax, %r14
	jae	LBB0_17
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_oe_type
	movq	_OBJ_COMMIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	callq	_oe_type
	movq	_OBJ_TAG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
	jmp	LBB0_16
LBB0_17:
	cmpl	%r15d, %eax
	jbe	LBB0_23
## %bb.18:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r14d
	movq	%r15, %rbx
	shlq	$4, %rbx
	addq	%r13, %rbx
	movq	_OBJ_TREE@GOTPCREL(%rip), %r12
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	incq	%r14
	movq	_to_pack@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$16, %rbx
	cmpq	%rax, %r14
	jae	LBB0_22
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_oe_type
	cmpq	(%r12), %rax
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_add_to_write_order
	jmp	LBB0_21
LBB0_22:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_23:
	cmpl	%r15d, %eax
	jbe	LBB0_29
## %bb.24:
	movl	%r15d, %ebx
	shlq	$4, %r15
	addq	%r15, %r13
	movq	_write_layer@GOTPCREL(%rip), %r14
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_25 Depth=1
	incq	%rbx
	movq	_to_pack@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$16, %r13
	cmpq	%rax, %rbx
	jae	LBB0_29
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r13)
	jne	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	_to_pack@GOTPCREL(%rip), %rdi
	movq	%r13, %rsi
	callq	_oe_layer
	cmpq	(%r14), %rax
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_add_family_to_write_order
	jmp	LBB0_28
LBB0_29:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_to_pack,16,3                   ## @to_pack
	.comm	_OBJ_COMMIT,8,3                 ## @OBJ_COMMIT
	.comm	_OBJ_TAG,8,3                    ## @OBJ_TAG
	.comm	_OBJ_TREE,8,3                   ## @OBJ_TREE
	.comm	_write_layer,8,3                ## @write_layer
	.no_dead_strip	_compute_layer_order
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_layer_order
_compute_layer_order:                   ; @compute_layer_order
	.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
Lloh0:
	adrp	x21, _to_pack@GOTPAGE
Lloh1:
	ldr	x21, [x21, _to_pack@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_30
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x23, [x21, #8]
	ldr	x9, [x23, #8]
	cbz	x9, LBB0_3
; %bb.2:
	mov	x24, #0
	b	LBB0_6
LBB0_3:
	mov	w9, #1
	mov	x22, x23
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x9
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_add_to_write_order
	ldr	w8, [x21]
	cmp	x24, x8
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x22, #24]
	add	x9, x24, #1
	add	x22, x22, #16
	cbz	x10, LBB0_4
LBB0_6:
	cmp	w8, w24
	b.ls	LBB0_11
; %bb.7:
	and	x25, x24, #0xffffffff
	add	x22, x23, x24, lsl #4
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x25, #1
	add	x22, x22, #16
	cmp	x25, w8, uxtw
	b.hs	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, #8]
	cbz	x9, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_add_to_write_order
	ldr	w8, [x21]
	b	LBB0_8
LBB0_11:
	cmp	w8, w24
	b.hi	LBB0_14
; %bb.12:
	cmp	w8, w24
	b.hi	LBB0_20
LBB0_13:
	cmp	w8, w24
	b.hi	LBB0_25
	b	LBB0_30
LBB0_14:
	and	x25, x24, #0xffffffff
Lloh2:
	adrp	x26, _OBJ_COMMIT@GOTPAGE
Lloh3:
	ldr	x26, [x26, _OBJ_COMMIT@GOTPAGEOFF]
Lloh4:
	adrp	x27, _OBJ_TAG@GOTPAGE
Lloh5:
	ldr	x27, [x27, _OBJ_TAG@GOTPAGEOFF]
	add	x22, x23, x24, lsl #4
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_add_to_write_order
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x25, x25, #1
	ldr	w8, [x21]
	add	x22, x22, #16
	cmp	x25, x8
	b.hs	LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_oe_type
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x22
	bl	_oe_type
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_15
	b	LBB0_16
LBB0_19:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	cmp	w8, w24
	b.ls	LBB0_13
LBB0_20:
	and	x25, x24, #0xffffffff
	add	x22, x23, x24, lsl #4
Lloh6:
	adrp	x26, _OBJ_TREE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _OBJ_TREE@GOTPAGEOFF]
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x25, x25, #1
	ldr	w8, [x21]
	add	x22, x22, #16
	cmp	x25, x8
	b.hs	LBB0_24
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_oe_type
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_add_to_write_order
	b	LBB0_21
LBB0_24:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	cmp	w8, w24
	b.ls	LBB0_30
LBB0_25:
	and	x25, x24, #0xffffffff
	add	x22, x23, x24, lsl #4
Lloh8:
	adrp	x23, _write_layer@GOTPAGE
Lloh9:
	ldr	x23, [x23, _write_layer@GOTPAGEOFF]
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	add	x25, x25, #1
	ldr	w8, [x21]
	add	x22, x22, #16
	cmp	x25, x8
	b.hs	LBB0_30
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	cbnz	w8, LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_oe_layer
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_26
; %bb.29:                               ;   in Loop: Header=BB0_27 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_add_family_to_write_order
	b	LBB0_26
LBB0_30:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_to_pack,16,3                   ; @to_pack
	.comm	_OBJ_COMMIT,8,3                 ; @OBJ_COMMIT
	.comm	_OBJ_TAG,8,3                    ; @OBJ_TAG
	.comm	_OBJ_TREE,8,3                   ; @OBJ_TREE
	.comm	_write_layer,8,3                ; @write_layer
	.no_dead_strip	_compute_layer_order
.subsections_via_symbols
