	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pad_to
_pad_to:                                ## @pad_to
	.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	%r9, %rbx
	movl	%esi, %r15d
	movq	16(%rbp), %r14
	testl	%edx, %edx
	je	LBB0_1
## %bb.5:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	subq	%r14, %rsi
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	_lseek
	cmpq	%rbx, %rax
	je	LBB0_9
## %bb.6:
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_7
LBB0_1:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	cmpq	%r14, %rbx
	jle	LBB0_10
## %bb.2:
	movq	%r8, %r12
	movq	%rcx, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r14,%r13), %rax
	movq	%rbx, %rdx
	subq	%r14, %rdx
	cmpq	%rbx, %rax
	cmovleq	%r13, %rdx
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_write
	testq	%rax, %rax
	js	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	%rax, %r14
	cmpq	%rbx, %r14
	jl	LBB0_3
LBB0_9:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str.1(%rip), %rdx
LBB0_7:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Seek error"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
L_.str.1:                               ## @.str.1
	.asciz	"Write error"

	.no_dead_strip	_pad_to
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pad_to
_pad_to:                                ; @pad_to
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x6
	mov	x20, x5
	mov	x23, x1
	mov	x19, x0
	cbz	w2, LBB0_4
; %bb.1:
	sub	x1, x20, x21
Lloh0:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_lseek
	cmp	x0, x20
	b.eq	LBB0_8
; %bb.2:
Lloh3:
	adrp	x22, l_.str@PAGE
Lloh4:
	add	x22, x22, l_.str@PAGEOFF
LBB0_3:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_archive_set_error
Lloh8:
	adrp	x26, _ARCHIVE_FATAL@GOTPAGE
Lloh9:
	ldr	x26, [x26, _ARCHIVE_FATAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	cmp	x20, x21
	b.le	LBB0_8
; %bb.5:
	mov	x24, x4
	mov	x25, x3
Lloh10:
	adrp	x22, l_.str.1@PAGE
Lloh11:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh12:
	adrp	x26, _ARCHIVE_OK@GOTPAGE
Lloh13:
	ldr	x26, [x26, _ARCHIVE_OK@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	x8, x20, x21
	add	x9, x21, x25
	cmp	x9, x20
	csel	x2, x8, x25, gt
	mov	x0, x23
	mov	x1, x24
	bl	_write
	tbnz	x0, #63, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x0, x21
	cmp	x21, x20
	b.lt	LBB0_6
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x26, _ARCHIVE_OK@GOTPAGE
Lloh15:
	ldr	x26, [x26, _ARCHIVE_OK@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x26]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Seek error"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
l_.str.1:                               ; @.str.1
	.asciz	"Write error"

	.no_dead_strip	_pad_to
.subsections_via_symbols
