	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_midx_pack_names
_write_midx_pack_names:                 ## @write_midx_pack_names
	.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	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MIDX_CHUNK_ALIGNMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, 8(%r15)
	je	LBB0_4
## %bb.3:
	xorl	%r13d, %r13d
	cmpq	$1, %rbx
	je	LBB0_12
	jmp	LBB0_6
LBB0_1:
	xorl	%r13d, %r13d
	movl	%r14d, %esi
	movq	%r14, %r8
	jmp	LBB0_13
LBB0_4:
	movq	(%r15), %rdi
	callq	_strlen
	incl	%eax
	movslq	%eax, %r13
	movq	(%r15), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_hashwrite
	cmpq	$1, %rbx
	jne	LBB0_6
LBB0_12:
	movq	_MIDX_CHUNK_ALIGNMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %r8                  ## 8-byte Reload
LBB0_13:
	movslq	%esi, %rcx
	movq	%r13, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_14
## %bb.15:
	movq	%r13, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_16
LBB0_14:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_16:
	movq	%rcx, %rbx
	subq	%rdx, %rbx
	cmpq	%rcx, %rbx
	jae	LBB0_18
## %bb.17:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r8d, %edx
	callq	_memset
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_hashwrite
	addq	%rbx, %r13
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movq	%r13, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	addq	$24, %r15
	decq	%rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-8(%r15), %rdi
	callq	_strlen
	movslq	%eax, %r14
	leaq	1(%r14), %rdx
	movq	-8(%r15), %rsi
	movq	%r12, %rdi
	callq	_hashwrite
	addq	%r14, %r13
	incq	%r13
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	$16, %r15
	decq	%rbx
	je	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r15)
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-24(%r15), %rsi
	movq	-8(%r15), %rdi
	callq	_strcmp
	testq	%rax, %rax
	jg	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-24(%r15), %rsi
	movq	-8(%r15), %rdx
	leaq	L_.str(%rip), %rdi
	callq	_BUG
	jmp	LBB0_10
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MIDX_CHUNK_ALIGNMENT,4,2       ## @MIDX_CHUNK_ALIGNMENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"incorrect pack-file order: %s before %s"

	.no_dead_strip	_write_midx_pack_names
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_midx_pack_names
_write_midx_pack_names:                 ; @write_midx_pack_names
	.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
	sub	sp, sp, #16
	mov	x24, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x25, _MIDX_CHUNK_ALIGNMENT@GOTPAGE
Lloh4:
	ldr	x25, [x25, _MIDX_CHUNK_ALIGNMENT@GOTPAGEOFF]
	ldr	w20, [x25]
	mov	x9, x20
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	cbz	x2, LBB0_3
; %bb.1:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x22, #0
	subs	x26, x24, #1
	b.eq	LBB0_5
	b	LBB0_10
LBB0_3:
	mov	x22, #0
	mov	x8, x20
	b	LBB0_6
LBB0_4:
	ldr	x0, [x23]
	bl	_strlen
	add	w8, w0, #1
	sxtw	x22, w8
	ldr	x1, [x23]
	mov	x0, x19
	mov	x2, x22
	bl	_hashwrite
	subs	x26, x24, #1
	b.ne	LBB0_10
LBB0_5:
	ldr	w8, [x25]
LBB0_6:
	sxtw	x8, w8
	udiv	x9, x22, x8
	neg	x10, x22
	madd	x9, x9, x8, x10
	add	x23, x8, x9
	cmp	x23, x8
	b.hs	LBB0_8
; %bb.7:
	mov	x0, x21
	mov	w1, #0
	mov	x2, x20
	bl	_memset
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_hashwrite
	add	x22, x23, x22
LBB0_8:
	ldur	x8, [x29, #-88]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.9:
	mov	x0, x22
	sub	sp, x29, #80
	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
LBB0_10:
	add	x27, x23, #16
Lloh10:
	adrp	x23, l_.str@PAGE
Lloh11:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x0, [x27]
	bl	_strlen
	add	w8, w0, #1
	sxtw	x24, w8
	ldr	x1, [x27]
	mov	x0, x19
	mov	x2, x24
	bl	_hashwrite
	add	x22, x22, x24
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x27, x27, #16
	subs	x26, x26, #1
	b.eq	LBB0_5
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27, #8]
	cbnz	x8, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x0, [x27]
	ldur	x1, [x27, #-16]
	bl	_strcmp
	cmp	x0, #0
	b.gt	LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldur	x1, [x27, #-16]
	ldr	x2, [x27]
	mov	x0, x23
	bl	_BUG
	b	LBB0_11
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MIDX_CHUNK_ALIGNMENT,4,2       ; @MIDX_CHUNK_ALIGNMENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"incorrect pack-file order: %s before %s"

	.no_dead_strip	_write_midx_pack_names
.subsections_via_symbols
