	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function archive_compressor_compress_open
_archive_compressor_compress_open:      ## @archive_compressor_compress_open
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_ARCHIVE_FILTER_COMPRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rdi)
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rdi)
	movl	40(%rdi), %edi
	callq	___archive_write_open_filter
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.1:
	movl	$1, %edi
	movl	$80, %esi
	callq	_calloc
	movq	32(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %r14
	movq	(%rdi), %rax
	movq	_ARCHIVE_WRITE_MAGIC@GOTPCREL(%rip), %rcx
	movl	$65536, %r15d                   ## imm = 0x10000
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.5:
	callq	_archive_write_get_bytes_per_block
	movq	%rax, %rcx
	cmpq	$65536, %rax                    ## imm = 0x10000
	jbe	LBB0_7
## %bb.6:
	movq	%rcx, %r15
	jmp	LBB0_9
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_archive_set_error
	jmp	LBB0_3
LBB0_7:
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	movl	$65536, %eax                    ## imm = 0x10000
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	movl	$65536, %r15d                   ## imm = 0x10000
	subq	%rdx, %r15
LBB0_9:
	movq	%r15, (%r14)
	movq	%r15, %rdi
	callq	_malloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	_archive_compressor_compress_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_archive_compressor_compress_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_archive_compressor_compress_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movabsq	$12884967424, %rax              ## imm = 0x300010000
	movq	%rax, 16(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%r14)
	movq	$0, 72(%r14)
	movq	$0, 48(%r14)
	movq	_CHECK_GAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r14)
	movl	$9, 24(%r14)
	movl	$9, %edi
	callq	_MAXCODE
	movl	%eax, 40(%r14)
	movq	_FIRST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
	movl	32(%r14), %edi
	movl	$255, %esi
	movl	$4, %edx
	callq	_memset
	movq	8(%r14), %rax
	movabsq	$674309865503, %rcx             ## imm = 0x9D0000001F
	movq	%rcx, (%rax)
	movl	$144, 8(%rax)
	movl	$3, 28(%r14)
	movq	%r14, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_10:
	movq	32(%rbx), %rdi
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	callq	_archive_set_error
	movq	%r14, %rdi
	callq	_free
LBB0_3:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_FILTER_COMPRESS,4,2    ## @ARCHIVE_FILTER_COMPRESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"compress"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate data for compression"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_ARCHIVE_WRITE_MAGIC,8,3        ## @ARCHIVE_WRITE_MAGIC
L_.str.2:                               ## @.str.2
	.asciz	"Can't allocate data for compression buffer"

	.comm	_archive_compressor_compress_write,4,2 ## @archive_compressor_compress_write
	.comm	_archive_compressor_compress_close,4,2 ## @archive_compressor_compress_close
	.comm	_archive_compressor_compress_free,4,2 ## @archive_compressor_compress_free
	.comm	_CHECK_GAP,4,2                  ## @CHECK_GAP
	.comm	_FIRST,4,2                      ## @FIRST
	.no_dead_strip	_archive_compressor_compress_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function archive_compressor_compress_open
lCPI0_0:
	.long	65536                           ; 0x10000
	.long	3                               ; 0x3
lCPI0_1:
	.long	31                              ; 0x1f
	.long	157                             ; 0x9d
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_archive_compressor_compress_open:      ; @archive_compressor_compress_open
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _ARCHIVE_FILTER_COMPRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_FILTER_COMPRESS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #44]
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
	ldr	w0, [x0, #40]
	bl	___archive_write_open_filter
Lloh5:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.1:
	mov	w0, #1
	mov	w1, #80
	bl	_calloc
	mov	x20, x0
	ldr	x0, [x19, #32]
	cbz	x20, LBB0_6
; %bb.2:
	ldr	x8, [x0]
Lloh8:
	adrp	x9, _ARCHIVE_WRITE_MAGIC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ARCHIVE_WRITE_MAGIC@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	bl	_archive_write_get_bytes_per_block
	cmp	x0, #16, lsl #12                ; =65536
	b.hi	LBB0_8
; %bb.4:
	mov	w8, #65536
	cbz	x0, LBB0_7
; %bb.5:
	udiv	w9, w8, w0
	msub	w9, w9, w0, w8
	sub	x0, x8, x9
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_archive_set_error
	b	LBB0_11
LBB0_7:
	mov	w0, #65536
LBB0_8:
	str	x0, [x20]
	bl	_malloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_10
; %bb.9:
Lloh16:
	adrp	x8, _archive_compressor_compress_write@GOTPAGE
Lloh17:
	ldr	x8, [x8, _archive_compressor_compress_write@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh19:
	adrp	x8, _archive_compressor_compress_close@GOTPAGE
Lloh20:
	ldr	x8, [x8, _archive_compressor_compress_close@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _archive_compressor_compress_free@GOTPAGE
Lloh23:
	ldr	x9, [x9, _archive_compressor_compress_free@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
	stp	xzr, xzr, [x20, #64]
Lloh25:
	adrp	x8, lCPI0_0@PAGE
Lloh26:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20, #16]
	stp	xzr, xzr, [x20, #48]
Lloh27:
	adrp	x8, _CHECK_GAP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CHECK_GAP@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [x20, #44]
	mov	w8, #9
	str	w8, [x20, #24]
	mov	w0, #9
	bl	_MAXCODE
Lloh30:
	adrp	x8, _FIRST@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FIRST@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	stp	w8, w0, [x20, #36]
	ldr	w0, [x20, #32]
	mov	w1, #255
	mov	w2, #4
	bl	_memset
	mov	w0, #0
	ldr	x8, [x20, #8]
Lloh33:
	adrp	x9, lCPI0_1@PAGE
Lloh34:
	ldr	d0, [x9, lCPI0_1@PAGEOFF]
	str	d0, [x8]
	mov	w9, #144
	str	w9, [x8, #8]
	mov	w8, #3
	str	w8, [x20, #28]
	str	x20, [x19, #8]
	b	LBB0_12
LBB0_10:
	ldr	x0, [x19, #32]
Lloh35:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x2, l_.str.2@PAGE
Lloh39:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_archive_set_error
	mov	x0, x20
	bl	_free
LBB0_11:
Lloh40:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdr	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdrp	Lloh25, Lloh27
	.loh AdrpLdr	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_FILTER_COMPRESS,4,2    ; @ARCHIVE_FILTER_COMPRESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"compress"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate data for compression"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_ARCHIVE_WRITE_MAGIC,8,3        ; @ARCHIVE_WRITE_MAGIC
l_.str.2:                               ; @.str.2
	.asciz	"Can't allocate data for compression buffer"

	.comm	_archive_compressor_compress_write,4,2 ; @archive_compressor_compress_write
	.comm	_archive_compressor_compress_close,4,2 ; @archive_compressor_compress_close
	.comm	_archive_compressor_compress_free,4,2 ; @archive_compressor_compress_free
	.comm	_CHECK_GAP,4,2                  ; @CHECK_GAP
	.comm	_FIRST,4,2                      ; @FIRST
	.no_dead_strip	_archive_compressor_compress_open
.subsections_via_symbols
