	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_write_add_filter_grzip ## -- Begin function archive_write_add_filter_grzip
	.p2align	4, 0x90
_archive_write_add_filter_grzip:        ## @archive_write_add_filter_grzip
	.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	%rdi, %r14
	callq	___archive_write_allocate_filter
	movq	%rax, %r12
	movq	_ARCHIVE_WRITE_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARCHIVE_STATE_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_archive_check_magic
	movl	$1, %edi
	movl	$8, %esi
	callq	_calloc
	leaq	L_.str.1(%rip), %r15
	movq	_ENOMEM@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rdi
	callq	___archive_write_program_allocate
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%r12)
	movq	_ARCHIVE_FILTER_GRZIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
	movq	%rbx, 32(%r12)
	movq	_archive_write_grzip_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_archive_write_grzip_options@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_archive_write_grzip_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_archive_write_grzip_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_archive_write_grzip_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rbx
	leaq	L_.str.3(%rip), %r15
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %r13
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_free
LBB0_5:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rbx
LBB0_6:
	movl	(%r13), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_archive_set_error
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_WRITE_MAGIC,4,2        ## @ARCHIVE_WRITE_MAGIC
	.comm	_ARCHIVE_STATE_NEW,4,2          ## @ARCHIVE_STATE_NEW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"archive_write_add_filter_grzip"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate memory"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
L_.str.2:                               ## @.str.2
	.asciz	"grzip"

	.comm	_ARCHIVE_FILTER_GRZIP,4,2       ## @ARCHIVE_FILTER_GRZIP
	.comm	_archive_write_grzip_open,4,2   ## @archive_write_grzip_open
	.comm	_archive_write_grzip_options,4,2 ## @archive_write_grzip_options
	.comm	_archive_write_grzip_write,4,2  ## @archive_write_grzip_write
	.comm	_archive_write_grzip_close,4,2  ## @archive_write_grzip_close
	.comm	_archive_write_grzip_free,4,2   ## @archive_write_grzip_free
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ## @ARCHIVE_ERRNO_MISC
L_.str.3:                               ## @.str.3
	.asciz	"Using external grzip program for grzip compression"

	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_write_add_filter_grzip ; -- Begin function archive_write_add_filter_grzip
	.p2align	2
_archive_write_add_filter_grzip:        ; @archive_write_add_filter_grzip
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	___archive_write_allocate_filter
	mov	x20, x0
Lloh0:
	adrp	x8, _ARCHIVE_WRITE_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_WRITE_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ARCHIVE_STATE_NEW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARCHIVE_STATE_NEW@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_archive_check_magic
	mov	w0, #1
	mov	w1, #8
	bl	_calloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh8:
	adrp	x22, l_.str.2@PAGE
Lloh9:
	add	x22, x22, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	___archive_write_program_allocate
	str	x0, [x21]
	cbz	x0, LBB0_3
; %bb.2:
Lloh10:
	adrp	x8, _ARCHIVE_FILTER_GRZIP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ARCHIVE_FILTER_GRZIP@GOTPAGEOFF]
	str	x22, [x20]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x20, #40]
	str	x21, [x20, #32]
Lloh13:
	adrp	x8, _archive_write_grzip_open@GOTPAGE
Lloh14:
	ldr	x8, [x8, _archive_write_grzip_open@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x20, #24]
Lloh16:
	adrp	x8, _archive_write_grzip_options@GOTPAGE
Lloh17:
	ldr	x8, [x8, _archive_write_grzip_options@GOTPAGEOFF]
Lloh18:
	adrp	x9, _archive_write_grzip_write@GOTPAGE
Lloh19:
	ldr	x9, [x9, _archive_write_grzip_write@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
Lloh22:
	adrp	x8, _archive_write_grzip_close@GOTPAGE
Lloh23:
	ldr	x8, [x8, _archive_write_grzip_close@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _archive_write_grzip_free@GOTPAGE
Lloh26:
	ldr	x9, [x9, _archive_write_grzip_free@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
Lloh28:
	adrp	x20, _ARCHIVE_WARN@GOTPAGE
Lloh29:
	ldr	x20, [x20, _ARCHIVE_WARN@GOTPAGEOFF]
Lloh30:
	adrp	x2, l_.str.3@PAGE
Lloh31:
	add	x2, x2, l_.str.3@PAGEOFF
Lloh32:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	x0, x21
	bl	_free
LBB0_4:
Lloh34:
	adrp	x20, _ARCHIVE_FATAL@GOTPAGE
Lloh35:
	ldr	x20, [x20, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh36:
	adrp	x2, l_.str.1@PAGE
Lloh37:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh38:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_archive_set_error
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_WRITE_MAGIC,4,2        ; @ARCHIVE_WRITE_MAGIC
	.comm	_ARCHIVE_STATE_NEW,4,2          ; @ARCHIVE_STATE_NEW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"archive_write_add_filter_grzip"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate memory"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
l_.str.2:                               ; @.str.2
	.asciz	"grzip"

	.comm	_ARCHIVE_FILTER_GRZIP,4,2       ; @ARCHIVE_FILTER_GRZIP
	.comm	_archive_write_grzip_open,4,2   ; @archive_write_grzip_open
	.comm	_archive_write_grzip_options,4,2 ; @archive_write_grzip_options
	.comm	_archive_write_grzip_write,4,2  ; @archive_write_grzip_write
	.comm	_archive_write_grzip_close,4,2  ; @archive_write_grzip_close
	.comm	_archive_write_grzip_free,4,2   ; @archive_write_grzip_free
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ; @ARCHIVE_ERRNO_MISC
l_.str.3:                               ; @.str.3
	.asciz	"Using external grzip program for grzip compression"

	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
.subsections_via_symbols
