	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function archive_compressor_compress_write
_archive_compressor_compress_write:     ## @archive_compressor_compress_write
	.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
	testq	%rdx, %rdx
	je	LBB0_29
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %r9
	movq	(%rdi), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_4
## %bb.2:
	movzbl	(%r9), %eax
	movl	%eax, 4(%r14)
	movl	$1, (%r14)
	decq	%r12
	je	LBB0_29
## %bb.3:
	incq	%r9
	movl	$1, %eax
LBB0_4:
	movq	_HSHIFT@GOTPCREL(%rip), %r10
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movzbl	(%r9), %r13d
	incl	%eax
	movl	%eax, (%r14)
	movl	%r13d, %eax
	shll	$16, %eax
	movl	4(%r14), %esi
	addl	%esi, %eax
	movl	%eax, 8(%r14)
	movb	(%r10), %cl
	movl	%r13d, %r15d
	shll	%cl, %r15d
	xorl	%esi, %r15d
	movq	16(%r14), %rcx
	movslq	%r15d, %rdx
	movl	(%rcx,%rdx,4), %edi
	cmpl	%eax, %edi
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r14), %rax
	movl	(%rax,%rdx,4), %eax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%edi, %edi
	js	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_HSIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movl	%r15d, %edx
	subl	%r8d, %edx
	cmpl	$1, %r15d
	movl	$0, %edi
	sbbl	%edi, %edi
	orl	%edx, %edi
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r15d, %edx
	addl	%edi, %edx
	movl	%edx, %r15d
	sarl	$31, %r15d
	andl	%r8d, %r15d
	addl	%edx, %r15d
	movslq	%r15d, %rbx
	movl	(%rcx,%rbx,4), %edx
	cmpl	%eax, %edx
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	testl	%edx, %edx
	jns	LBB0_12
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r9, %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_output_code
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_30
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, 4(%r14)
	movq	32(%r14), %rax
	cmpq	40(%r14), %rax
	movq	%rbx, %r9
	movq	_HSHIFT@GOTPCREL(%rip), %r10
	jge	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	1(%rax), %rcx
	movq	%rcx, 32(%r14)
	movq	24(%r14), %rcx
	movslq	%r15d, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	8(%r14), %eax
	movq	16(%r14), %rcx
	movl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_8
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r14), %eax
	cmpl	48(%r14), %eax
	jl	LBB0_8
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_CHECK_GAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	movl	%ecx, 48(%r14)
	movl	52(%r14), %esi
	cmpl	$8388607, %eax                  ## imm = 0x7FFFFF
	jg	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	testl	%esi, %esi
	je	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=1
	shll	$8, %eax
	cltd
	idivl	%esi
	jmp	LBB0_25
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r14), %rax
	movl	(%rax,%rbx,4), %eax
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, 4(%r14)
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	decq	%r12
	je	LBB0_29
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r9
	movl	(%r14), %eax
	jmp	LBB0_5
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	leal	255(%rsi), %edi
	movl	$2147483647, %ecx               ## imm = 0x7FFFFFFF
	cmpl	$511, %edi                      ## imm = 0x1FF
	jb	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_5 Depth=1
	testl	%esi, %esi
	cmovnsl	%esi, %edi
	sarl	$8, %edi
	cltd
	idivl	%edi
LBB0_25:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %ecx
LBB0_26:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	56(%r14), %ecx
	jle	LBB0_28
LBB0_27:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%ecx, 56(%r14)
	jmp	LBB0_8
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$2147483647, %ecx               ## imm = 0x7FFFFFFF
	cmpl	56(%r14), %ecx
	jg	LBB0_27
LBB0_28:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, 56(%r14)
	movq	16(%r14), %rdi
	movl	$255, %esi
	movl	$8, %edx
	callq	_memset
	movq	_FIRST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r14)
	movq	_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_output_code
	movq	_HSHIFT@GOTPCREL(%rip), %r10
	movq	%rbx, %r9
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_8
	jmp	LBB0_30
LBB0_29:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_30:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_HSHIFT,4,2                     ## @HSHIFT
	.comm	_HSIZE,4,2                      ## @HSIZE
	.comm	_CHECK_GAP,4,2                  ## @CHECK_GAP
	.comm	_FIRST,8,3                      ## @FIRST
	.comm	_CLEAR,4,2                      ## @CLEAR
	.no_dead_strip	_archive_compressor_compress_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function archive_compressor_compress_write
_archive_compressor_compress_write:     ; @archive_compressor_compress_write
	.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
	cbz	x2, LBB0_28
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0]
	ldr	w8, [x22]
Lloh0:
	adrp	x23, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ARCHIVE_OK@GOTPAGEOFF]
	cbnz	w8, LBB0_3
; %bb.2:
	ldrb	w9, [x20], #1
	mov	w8, #1
	stp	w8, w9, [x22]
	subs	x19, x19, #1
	b.eq	LBB0_27
LBB0_3:
Lloh2:
	adrp	x24, _HSHIFT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _HSHIFT@GOTPAGEOFF]
Lloh4:
	adrp	x25, _CHECK_GAP@GOTPAGE
Lloh5:
	ldr	x25, [x25, _CHECK_GAP@GOTPAGEOFF]
Lloh6:
	adrp	x28, _HSIZE@GOTPAGE
Lloh7:
	ldr	x28, [x28, _HSIZE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldrb	w27, [x20], #1
	add	w8, w8, #1
	str	w8, [x22]
	ldr	w1, [x22, #4]
	add	w8, w1, w27, lsl #16
	str	w8, [x22, #8]
	ldr	w9, [x24]
	lsl	w9, w27, w9
	eor	w26, w9, w1
	ldr	x9, [x22, #16]
	ldr	w10, [x9, w26, sxtw #2]
	cmp	w10, w8
	b.eq	LBB0_17
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w10, #31, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x28]
	sub	w11, w26, w10
	cmp	w26, #0
	csinv	w11, w11, wzr, ne
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w12, w26, w11
	and	w13, w10, w12, asr #31
	add	w26, w13, w12
	ldr	w12, [x9, w26, sxtw #2]
	cmp	w12, w8
	b.eq	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	tbz	w12, #31, LBB0_7
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_output_code
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_29
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	str	w27, [x22, #4]
	ldp	x8, x9, [x22, #32]
	cmp	x8, x9
	b.ge	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x8, #1
	str	x9, [x22, #32]
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
	sbfiz	x9, x26, #2, #32
	ldp	x11, x10, [x22, #16]
	str	w8, [x10, x9]
	ldr	w8, [x22, #8]
	str	w8, [x11, x9]
	b	LBB0_18
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x22, #48]
	cmp	w8, w9
	b.lt	LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x25]
	add	w9, w9, w8
	str	w9, [x22, #48]
	ldr	w9, [x22, #52]
	cmp	w8, #2048, lsl #12              ; =8388608
	b.ge	LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	cbz	w9, LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	lsl	w8, w8, #8
	b	LBB0_23
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x8, w26
	ldr	x9, [x22, #24]
	ldr	w8, [x9, x8, lsl #2]
	str	w8, [x22, #4]
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x19, x19, #1
	cbz	x19, LBB0_27
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	b	LBB0_4
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w10, w9, #255
	cmp	w10, #511
	b.hs	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #2147483647
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #8
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
	sdiv	w8, w8, w9
LBB0_24:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x22, #56]
	cmp	w8, w9
	b.le	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_4 Depth=1
	str	w8, [x22, #56]
	b	LBB0_18
LBB0_26:                                ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [x22, #56]
	ldr	x0, [x22, #16]
	mov	w1, #255
	mov	w2, #8
	bl	_memset
Lloh8:
	adrp	x8, _FIRST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FIRST@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x22, #32]
Lloh11:
	adrp	x8, _CLEAR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CLEAR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_output_code
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_18
	b	LBB0_29
LBB0_27:
	ldr	w0, [x23]
	b	LBB0_29
LBB0_28:
Lloh14:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
LBB0_29:
	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	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_HSHIFT,4,2                     ; @HSHIFT
	.comm	_HSIZE,4,2                      ; @HSIZE
	.comm	_CHECK_GAP,4,2                  ; @CHECK_GAP
	.comm	_FIRST,8,3                      ; @FIRST
	.comm	_CLEAR,4,2                      ; @CLEAR
	.no_dead_strip	_archive_compressor_compress_write
.subsections_via_symbols
