	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ensure_in_buff_size
_ensure_in_buff_size:                   ## @ensure_in_buff_size
	.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	(%rsi), %rbx
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r13
	cmpq	%rdx, %rbx
	jae	LBB0_8
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_IN_BUFF_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, %rcx
	shlq	$5, %rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%rbx), %rsi
	cmpq	%rcx, %rbx
	leaq	(%rbx,%rax), %rbx
	cmovbq	%rsi, %rbx
	cmpq	%rdx, %rbx
	jb	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %r12
	movl	16(%r14), %edx
	testl	%edx, %edx
	je	LBB0_6
## %bb.5:
	movq	8(%r14), %rsi
	movq	%r12, %rdi
	callq	_memmove
LBB0_6:
	movq	8(%r14), %rdi
	callq	_free
	movq	%r12, 8(%r14)
	movq	%rbx, (%r14)
	jmp	LBB0_8
LBB0_7:
	xorl	%edi, %edi
	callq	_free
	movq	(%r15), %rdi
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %r13
LBB0_8:
	movl	(%r13), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IN_BUFF_SIZE,4,2               ## @IN_BUFF_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't allocate data for uudecode"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_ensure_in_buff_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ensure_in_buff_size
_ensure_in_buff_size:                   ; @ensure_in_buff_size
	.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
	ldr	x20, [x1]
	cmp	x20, x2
	b.hs	LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _IN_BUFF_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IN_BUFF_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	lsl	x9, x8, #5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x10, x20, #1
	add	x11, x20, x8
	cmp	x20, x9
	csel	x20, x10, x11, lo
	cmp	x20, x2
	b.lo	LBB0_2
; %bb.3:
	mov	x0, x20
	bl	_malloc
	cbz	x0, LBB0_8
; %bb.4:
	mov	x22, x0
	ldr	w2, [x19, #16]
	cbz	w2, LBB0_6
; %bb.5:
	ldr	x1, [x19, #8]
	mov	x0, x22
	bl	_memmove
LBB0_6:
	ldr	x0, [x19, #8]
	bl	_free
	stp	x20, x22, [x19]
LBB0_7:
Lloh3:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	bl	_free
	ldr	x0, [x21]
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	bl	_archive_set_error
Lloh10:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IN_BUFF_SIZE,4,2               ; @IN_BUFF_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't allocate data for uudecode"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_ensure_in_buff_size
.subsections_via_symbols
