	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function next_head
_next_head:                             ## @next_head
	.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	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)
	movq	_frmt@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rax), %r15
	movq	_hdbuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r15, %rax
	decq	%rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %r14d
	movl	%r15d, %ebx
	xorl	%r12d, %r12d
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%ebx, %esi
	callq	_rd_wrbuf
	cmpl	%ebx, %eax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_hdbuf@GOTPCREL(%rip), %rbx
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_frmt@GOTPCREL(%rip), %rax
	movq	%rbx, %rcx
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	(%rcx), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	*8(%rax)
	movq	(%rbx), %rcx
	movq	32(%rcx), %rdx
	testq	%rax, %rax
	je	LBB0_26
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	testq	%rdx, %rdx
	movq	_hdbuf@GOTPCREL(%rip), %r13
	jne	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rdi
	movl	%r12d, %esi
	leaq	-44(%rbp), %rdx
	callq	*16(%rcx)
	cmpl	$1, %eax
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, %eax
	je	LBB0_19
LBB0_21:                                ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_act@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_APPND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_paxwarn
LBB0_25:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rdi
	leaq	1(%rdi), %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_memmove
	movq	(%r13), %rdi
	addq	%rbx, %rdi
	movl	$1, %ebx
	movl	$1, %r12d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_hdbuf@GOTPCREL(%rip), %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	(%rbx), %rdi
	movl	%r15d, %esi
	callq	_rd_wrbuf
	xorl	%r14d, %r14d
	movl	$1, %r12d
	cmpl	%r15d, %eax
	je	LBB0_15
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$-1, %r13d
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	testl	%eax, %eax
	je	LBB0_29
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%eax, %eax
	callq	_rd_sync
	testq	%rax, %rax
	js	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	testl	%r12d, %r12d
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	_act@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_APPND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	$1, %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_paxwarn
	jmp	LBB0_14
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rdi
	movl	%r15d, %ebx
	jmp	LBB0_1
LBB0_8:
	leaq	L_.str(%rip), %rsi
LBB0_9:
	movl	$1, %edi
	callq	_paxwarn
LBB0_29:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
LBB0_26:
	testq	%rdx, %rdx
	je	LBB0_28
## %bb.27:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	*24(%rcx)
	testq	%rax, %rax
	je	LBB0_19
LBB0_28:
	movq	_flcnt@GOTPCREL(%rip), %rax
	incl	(%rax)
	xorl	%r13d, %r13d
	jmp	LBB0_29
LBB0_19:
	xorl	%eax, %eax
	callq	_ar_drain
	movl	$-1, %r13d
	jmp	LBB0_29
LBB0_23:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_paxwarn
	movl	$-1, %r13d
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_frmt,8,3                       ## @frmt
	.comm	_hdbuf,8,3                      ## @hdbuf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Premature end of file on archive read"

	.comm	_act,8,3                        ## @act
	.comm	_APPND,8,3                      ## @APPND
L_.str.1:                               ## @.str.1
	.asciz	"Archive I/O error, cannot continue"

L_.str.2:                               ## @.str.2
	.asciz	"Archive I/O error. Trying to recover."

L_.str.3:                               ## @.str.3
	.asciz	"Unable to append, archive header flaw"

L_.str.4:                               ## @.str.4
	.asciz	"Invalid header, starting valid header search."

	.comm	_flcnt,4,2                      ## @flcnt
	.no_dead_strip	_next_head
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function next_head
_next_head:                             ; @next_head
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	mov	w24, #0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x26, _frmt@GOTPAGE
Lloh1:
	ldr	x26, [x26, _frmt@GOTPAGEOFF]
	ldr	x8, [x26]
	ldrsw	x20, [x8]
Lloh2:
	adrp	x27, _hdbuf@GOTPAGE
Lloh3:
	ldr	x27, [x27, _hdbuf@GOTPAGEOFF]
	ldr	x0, [x27]
	sub	x21, x20, #1
Lloh4:
	adrp	x28, _act@GOTPAGE
Lloh5:
	ldr	x28, [x28, _act@GOTPAGEOFF]
Lloh6:
	adrp	x22, _APPND@GOTPAGE
Lloh7:
	ldr	x22, [x22, _APPND@GOTPAGEOFF]
	mov	w23, #1
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
                                        ;       Child Loop BB0_13 Depth 3
	mov	x25, x20
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_13 Depth 3
	mov	x1, x25
	bl	_rd_wrbuf
	cmp	w0, w25
	b.ne	LBB0_11
LBB0_3:                                 ;   in Loop: Header=BB0_2 Depth=2
	ldr	x8, [x26]
	ldr	x8, [x8, #8]
	ldr	x1, [x27]
	mov	x0, x19
	blr	x8
	ldr	x8, [x26]
	ldr	x9, [x8, #32]
	cbz	x0, LBB0_26
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=2
	cbnz	x9, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=2
	ldr	x8, [x8, #16]
	ldr	x0, [x27]
	add	x2, sp, #12
	mov	x1, x24
	blr	x8
	cmp	w0, #1
	b.eq	LBB0_20
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=2
	cbz	w0, LBB0_29
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=2
	cbnz	w24, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=2
	ldr	x8, [x28]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_30
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	w0, #1
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_paxwarn
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=2
	ldr	x0, [x27]
	add	x1, x0, #1
	mov	x2, x21
	bl	_memmove
	ldr	x8, [x27]
	add	x0, x8, x21
	mov	w25, #1
	mov	w24, #1
	b	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	x8, x23
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=3
	ldr	x0, [x27]
	mov	x1, x20
	bl	_rd_wrbuf
	mov	w8, #0
	mov	w23, #0
	mov	w24, #1
	cmp	w0, w20
	b.eq	LBB0_3
LBB0_13:                                ;   Parent Loop BB0_1 Depth=1
                                        ;     Parent Loop BB0_2 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cbz	w8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=3
	cbz	w0, LBB0_23
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=3
	cbz	w0, LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=3
	bl	_rd_sync
	tbnz	x0, #63, LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=3
	cbnz	w24, LBB0_12
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=3
	ldr	x8, [x28]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_25
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=3
	mov	w0, #1
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_paxwarn
	b	LBB0_12
LBB0_20:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x27]
	b	LBB0_1
LBB0_21:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
LBB0_22:
	mov	w0, #1
	bl	_paxwarn
LBB0_23:
	mov	w0, #-1
LBB0_24:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_25:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_22
LBB0_26:
	cbz	x9, LBB0_28
; %bb.27:
	ldr	x8, [x8, #24]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_29
LBB0_28:
	mov	w0, #0
Lloh16:
	adrp	x8, _flcnt@GOTPAGE
Lloh17:
	ldr	x8, [x8, _flcnt@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_24
LBB0_29:
	bl	_ar_drain
	b	LBB0_23
LBB0_30:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_22
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_frmt,8,3                       ; @frmt
	.comm	_hdbuf,8,3                      ; @hdbuf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Premature end of file on archive read"

	.comm	_act,8,3                        ; @act
	.comm	_APPND,8,3                      ; @APPND
l_.str.1:                               ; @.str.1
	.asciz	"Archive I/O error, cannot continue"

l_.str.2:                               ; @.str.2
	.asciz	"Archive I/O error. Trying to recover."

l_.str.3:                               ; @.str.3
	.asciz	"Unable to append, archive header flaw"

l_.str.4:                               ; @.str.4
	.asciz	"Invalid header, starting valid header search."

	.comm	_flcnt,4,2                      ; @flcnt
	.no_dead_strip	_next_head
.subsections_via_symbols
