	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_appnd_start                    ## -- Begin function appnd_start
	.p2align	4, 0x90
_appnd_start:                           ## @appnd_start
	.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	_exit_val@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	callq	_paxwarn
	movl	$-1, %r14d
LBB0_21:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, %rbx
	movq	_wrblksz@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_rdblksz@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_blksz@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	jne	LBB0_4
## %bb.3:
	movq	%rcx, (%rax)
LBB0_4:
	xorl	%eax, %eax
	callq	_ar_app_ok
	movl	$-1, %r14d
	testq	%rax, %rax
	js	LBB0_21
## %bb.5:
	movq	_bufend@GOTPCREL(%rip), %r13
	movq	(%r13), %r15
	movq	_bufpt@GOTPCREL(%rip), %r12
	subq	(%r12), %r15
	addq	%rbx, %r15
	movq	_blksz@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r15, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_6
## %bb.7:
	movq	%r15, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_8
LBB0_6:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_8:
	movq	%r15, %rax
	subq	%rdx, %rax
	xorl	%ebx, %ebx
	cmpq	%r15, %rax
	cmovlq	%rcx, %rbx
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_ar_rev
	testq	%rax, %rax
	js	LBB0_20
## %bb.9:
	movq	_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	subq	%r15, %rbx
	jle	LBB0_17
## %bb.10:
	movq	%rdi, (%r12)
	movq	_blksz@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rdi), %rcx
	movq	%rcx, (%r13)
	testq	%rax, %rax
	jle	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	_rdblksz@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_ar_read
	testl	%eax, %eax
	jle	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%eax, %edi
	addq	(%r12), %rdi
	movq	%rdi, (%r12)
	cmpq	(%r13), %rdi
	jl	LBB0_12
## %bb.14:
	movq	_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_15
LBB0_17:
	movq	_blksz@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rdi), %rcx
	movq	%rcx, (%r13)
	movq	%rdi, (%r12)
	jmp	LBB0_18
LBB0_11:
	movq	%rdi, %rax
LBB0_15:
	subq	%rax, %rdi
	callq	_ar_rev
	testq	%rax, %rax
	js	LBB0_20
## %bb.16:
	movq	_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addq	%rcx, %rbx
	movq	%rbx, (%r12)
	movq	_blksz@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rax, %rcx
	movq	%rcx, (%r13)
LBB0_18:
	movq	_rdcnt@GOTPCREL(%rip), %rcx
	subq	%r15, (%rcx)
	movq	_rdblksz@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_wrcnt@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	callq	_ar_set_wr
	testq	%rax, %rax
	js	LBB0_21
## %bb.19:
	movq	_ARCHIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_act@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%r14d, %r14d
	jmp	LBB0_21
LBB0_20:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_paxwarn
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_exit_val,8,3                   ## @exit_val
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot append to an archive that may have flaws."

	.comm	_wrblksz,8,3                    ## @wrblksz
	.comm	_rdblksz,8,3                    ## @rdblksz
	.comm	_blksz,8,3                      ## @blksz
	.comm	_bufend,8,3                     ## @bufend
	.comm	_bufpt,8,3                      ## @bufpt
	.comm	_buf,8,3                        ## @buf
	.comm	_rdcnt,8,3                      ## @rdcnt
	.comm	_wrcnt,8,3                      ## @wrcnt
	.comm	_ARCHIVE,4,2                    ## @ARCHIVE
	.comm	_act,4,2                        ## @act
L_.str.1:                               ## @.str.1
	.asciz	"Unable to rewrite archive trailer, cannot append."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_appnd_start                    ; -- Begin function appnd_start
	.p2align	2
_appnd_start:                           ; @appnd_start
	.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
Lloh0:
	adrp	x8, _exit_val@GOTPAGE
Lloh1:
	ldr	x8, [x8, _exit_val@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
LBB0_2:
	bl	_paxwarn
LBB0_3:
	mov	w0, #-1
LBB0_4:
	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
LBB0_5:
	mov	x19, x0
Lloh5:
	adrp	x8, _wrblksz@GOTPAGE
Lloh6:
	ldr	x8, [x8, _wrblksz@GOTPAGEOFF]
	ldr	x10, [x8]
Lloh7:
	adrp	x20, _rdblksz@GOTPAGE
Lloh8:
	ldr	x20, [x20, _rdblksz@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh9:
	adrp	x21, _blksz@GOTPAGE
Lloh10:
	ldr	x21, [x21, _blksz@GOTPAGEOFF]
	str	x9, [x21]
	cbnz	x10, LBB0_7
; %bb.6:
	str	x9, [x8]
LBB0_7:
	bl	_ar_app_ok
	tbnz	x0, #63, LBB0_3
; %bb.8:
Lloh11:
	adrp	x23, _bufend@GOTPAGE
Lloh12:
	ldr	x23, [x23, _bufend@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh13:
	adrp	x24, _bufpt@GOTPAGE
Lloh14:
	ldr	x24, [x24, _bufpt@GOTPAGEOFF]
	ldr	x9, [x24]
	sub	x8, x8, x9
	add	x22, x8, x19
	ldr	x8, [x21]
	sdiv	x9, x22, x8
	mul	x9, x9, x8
	cmp	x9, x22
	csel	x8, x8, xzr, lt
	add	x19, x8, x9
	mov	x0, x19
	bl	_ar_rev
	tbnz	x0, #63, LBB0_20
; %bb.9:
	sub	x19, x19, x22
Lloh15:
	adrp	x25, _buf@GOTPAGE
Lloh16:
	ldr	x25, [x25, _buf@GOTPAGEOFF]
	ldr	x0, [x25]
	cmp	x19, #1
	b.lt	LBB0_14
; %bb.10:
	str	x0, [x24]
	ldr	x8, [x21]
	add	x9, x8, x0
	str	x9, [x23]
	cmp	x8, #1
	b.lt	LBB0_15
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x20]
	bl	_ar_read
	cmp	w0, #1
	b.lt	LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x24]
	add	x0, x8, w0, uxtw
	str	x0, [x24]
	ldr	x8, [x23]
	cmp	x0, x8
	b.lt	LBB0_11
; %bb.13:
	ldr	x8, [x25]
	b	LBB0_16
LBB0_14:
	ldr	x8, [x21]
	add	x9, x8, x0
	str	x9, [x23]
	str	x0, [x24]
	b	LBB0_18
LBB0_15:
	mov	x8, x0
LBB0_16:
	sub	x0, x0, x8
	bl	_ar_rev
	tbnz	x0, #63, LBB0_20
; %bb.17:
	ldr	x9, [x25]
	add	x8, x9, x19
	str	x8, [x24]
	ldr	x8, [x21]
	add	x9, x8, x9
	str	x9, [x23]
LBB0_18:
	str	x8, [x20]
Lloh17:
	adrp	x8, _rdcnt@GOTPAGE
Lloh18:
	ldr	x8, [x8, _rdcnt@GOTPAGEOFF]
	ldr	x9, [x8]
	sub	x9, x9, x22
	str	x9, [x8]
Lloh19:
	adrp	x8, _wrcnt@GOTPAGE
Lloh20:
	ldr	x8, [x8, _wrcnt@GOTPAGEOFF]
Lloh21:
	str	xzr, [x8]
	bl	_ar_set_wr
	tbnz	x0, #63, LBB0_3
; %bb.19:
	mov	w0, #0
Lloh22:
	adrp	x8, _ARCHIVE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ARCHIVE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _act@GOTPAGE
Lloh26:
	ldr	x9, [x9, _act@GOTPAGEOFF]
Lloh27:
	str	w8, [x9]
	b	LBB0_4
LBB0_20:
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_exit_val,8,3                   ; @exit_val
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot append to an archive that may have flaws."

	.comm	_wrblksz,8,3                    ; @wrblksz
	.comm	_rdblksz,8,3                    ; @rdblksz
	.comm	_blksz,8,3                      ; @blksz
	.comm	_bufend,8,3                     ; @bufend
	.comm	_bufpt,8,3                      ; @bufpt
	.comm	_buf,8,3                        ; @buf
	.comm	_rdcnt,8,3                      ; @rdcnt
	.comm	_wrcnt,8,3                      ; @wrcnt
	.comm	_ARCHIVE,4,2                    ; @ARCHIVE
	.comm	_act,4,2                        ; @act
l_.str.1:                               ; @.str.1
	.asciz	"Unable to rewrite archive trailer, cannot append."

.subsections_via_symbols
