	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tar_write_long_link_header
_tar_write_long_link_header:            ## @tar_write_long_link_header
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %r13
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_tar_write_header
	testq	%rax, %rax
	js	LBB0_6
## %bb.1:
	testl	%r12d, %r12d
	js	LBB0_7
## %bb.2:
	leal	1(%r12), %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$512, %r14d                     ## imm = 0x200
	movl	$512, %ebx                      ## imm = 0x200
	cmovll	%r14d, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$512, %edx                      ## imm = 0x200
	callq	_memset
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_memcpy
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	movl	$512, %edx                      ## imm = 0x200
	callq	_gzwrite
	cmpl	$512, %eax                      ## imm = 0x200
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$512, %r15                      ## imm = 0x200
	addl	$-512, %r14d                    ## imm = 0xFE00
	cmpl	%r12d, %r15d
	jle	LBB0_3
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_6:
	movq	_TAR_PACK_ERR_WRITE_HEADER@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_TAR_PACK_ERR_GZWRITE@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TAR_PACK_ERR_WRITE_HEADER,4,2  ## @TAR_PACK_ERR_WRITE_HEADER
	.comm	_TAR_PACK_ERR_GZWRITE,4,2       ## @TAR_PACK_ERR_GZWRITE
	.no_dead_strip	_tar_write_long_link_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tar_write_long_link_header
_tar_write_long_link_header:            ; @tar_write_long_link_header
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_tar_write_header
	tbnz	x0, #63, LBB0_6
; %bb.1:
	tbnz	w20, #31, LBB0_5
; %bb.2:
	mov	x24, #0
	add	w8, w20, #1
	mov	w25, #512
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	subs	w26, w8, #512
	csel	w23, w8, w25, lt
	mov	x0, x21
	mov	w1, #0
	mov	w2, #512
	bl	_memset
	add	x1, x19, x24
	mov	x0, x21
	mov	x2, x23
	bl	_memcpy
	mov	x0, x22
	mov	x1, x21
	mov	w2, #512
	bl	_gzwrite
	cmp	w0, #512
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #512
	mov	x8, x26
	cmp	w24, w20
	b.le	LBB0_3
LBB0_5:
	mov	w0, #0
	b	LBB0_9
LBB0_6:
Lloh0:
	adrp	x8, _TAR_PACK_ERR_WRITE_HEADER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TAR_PACK_ERR_WRITE_HEADER@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _TAR_PACK_ERR_GZWRITE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TAR_PACK_ERR_GZWRITE@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_TAR_PACK_ERR_WRITE_HEADER,4,2  ; @TAR_PACK_ERR_WRITE_HEADER
	.comm	_TAR_PACK_ERR_GZWRITE,4,2       ; @TAR_PACK_ERR_GZWRITE
	.no_dead_strip	_tar_write_long_link_header
.subsections_via_symbols
