	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function archive_filter_uuencode_open
_archive_filter_uuencode_open:          ## @archive_filter_uuencode_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movl	16(%rdi), %edi
	callq	___archive_write_open_filter
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.1:
	movq	8(%r14), %rdi
	movq	(%rdi), %rax
	movq	_ARCHIVE_WRITE_MAGIC@GOTPCREL(%rip), %rcx
	movl	$65536, %ebx                    ## imm = 0x10000
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	callq	_archive_write_get_bytes_per_block
	movq	%rax, %rcx
	cmpq	$65536, %rax                    ## imm = 0x10000
	jbe	LBB0_4
## %bb.3:
	movq	%rcx, %rbx
	jmp	LBB0_6
LBB0_4:
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	movl	$65536, %eax                    ## imm = 0x10000
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	movl	$65536, %ebx                    ## imm = 0x10000
	subq	%rdx, %rbx
LBB0_6:
	movq	%rbx, (%r12)
	leaq	16(%r12), %r15
	addq	$512, %rbx                      ## imm = 0x200
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_archive_string_ensure
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	8(%r12), %ecx
	movl	12(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_archive_string_sprintf
	movq	%r12, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	movq	8(%r14), %rdi
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_WRITE_MAGIC,8,3        ## @ARCHIVE_WRITE_MAGIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't allocate data for uuencode buffer"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
L_.str.1:                               ## @.str.1
	.asciz	"begin %o %s\n"

	.no_dead_strip	_archive_filter_uuencode_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function archive_filter_uuencode_open
_archive_filter_uuencode_open:          ; @archive_filter_uuencode_open
	.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
	ldr	x21, [x0]
	ldr	w0, [x0, #16]
	bl	___archive_write_open_filter
Lloh0:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.1:
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _ARCHIVE_WRITE_MAGIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ARCHIVE_WRITE_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	bl	_archive_write_get_bytes_per_block
	cmp	x0, #16, lsl #12                ; =65536
	b.hi	LBB0_6
; %bb.3:
	mov	w8, #65536
	cbz	x0, LBB0_5
; %bb.4:
	udiv	w9, w8, w0
	msub	w9, w9, w0, w8
	sub	x0, x8, x9
	b	LBB0_6
LBB0_5:
	mov	w0, #65536
LBB0_6:
	mov	x20, x21
	str	x0, [x20], #16
	add	x1, x0, #512
	mov	x0, x20
	bl	_archive_string_ensure
	cbz	x0, LBB0_8
; %bb.7:
	ldp	w3, w2, [x21, #8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_archive_string_sprintf
	mov	w0, #0
	str	x21, [x19]
	b	LBB0_9
LBB0_8:
	ldr	x0, [x19, #8]
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	bl	_archive_set_error
Lloh13:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_WRITE_MAGIC,8,3        ; @ARCHIVE_WRITE_MAGIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't allocate data for uuencode buffer"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
l_.str.1:                               ; @.str.1
	.asciz	"begin %o %s\n"

	.no_dead_strip	_archive_filter_uuencode_open
.subsections_via_symbols
