	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _tarGetHeader
__tarGetHeader:                         ## @_tarGetHeader
	.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	$712, %rsp                      ## imm = 0x2C8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	%rax, -744(%rbp)                ## 8-byte Spill
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	-744(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %r13d
	movl	4(%rax), %r8d
	movq	%r14, %rdi
	leaq	-560(%rbp), %rsi
	movl	$512, %edx                      ## imm = 0x200
	xorl	%ecx, %ecx
	callq	__tarReadRaw
	cmpl	$512, %eax                      ## imm = 0x200
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_ngettext
	movslq	%eax, %rdi
	movslq	%ebx, %rsi
	xorl	%eax, %eax
	callq	_fatal
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	-560(%rbp), %rdi
	callq	_tarChecksum
	movl	%eax, %r15d
	leaq	-412(%rbp), %rdi
	movl	$8, %esi
	callq	_read_tar_number
	movl	%eax, %ebx
	cmpl	%eax, %r15d
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$0, -560(%rbp,%rax)
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_10 Depth=2
	cmpb	$0, -559(%rbp,%rax)
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_10 Depth=2
	cmpb	$0, -558(%rbp,%rax)
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_10 Depth=2
	cmpb	$0, -557(%rbp,%rax)
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=2
	addq	$4, %rax
	cmpq	$512, %rax                      ## imm = 0x200
	jne	LBB0_10
	jmp	LBB0_1
LBB0_11:
	movq	%r12, -752(%rbp)                ## 8-byte Spill
	leaq	-672(%rbp), %rdi
	leaq	-560(%rbp), %rsi
	movl	$101, %edx
	callq	_strlcpy
	leaq	-436(%rbp), %rdi
	movl	$12, %esi
	callq	_read_tar_number
	movl	%eax, %r12d
	movq	_UINT64_FORMAT@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	leaq	-704(%rbp), %rdi
	movl	$32, %esi
	movl	%r13d, %ecx
	callq	_snprintf
	movq	(%r14), %rdx
	movl	%r12d, %r14d
	leaq	-736(%rbp), %r13
	movq	%r13, %rdi
	movl	$32, %esi
	movl	%r12d, %ecx
	callq	_snprintf
	leaq	L_.str.2(%rip), %rdi
	leaq	-672(%rbp), %rsi
	leaq	-704(%rbp), %rdx
	movq	%r13, %rcx
	movl	%ebx, %r8d
	callq	_pg_log_debug
	cmpl	%ebx, %r15d
	je	LBB0_13
## %bb.12:
	movq	_UINT64_FORMAT@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	-744(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax), %edi
	callq	_ftello
	leaq	-704(%rbp), %r13
	movq	%r13, %rdi
	movl	$32, %esi
	movq	%r12, %rdx
	movl	%eax, %ecx
	callq	_snprintf
	leaq	L_.str.3(%rip), %rdi
	leaq	-672(%rbp), %rsi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movq	%r13, %r8
	xorl	%eax, %eax
	callq	_fatal
LBB0_13:
	leaq	-672(%rbp), %rdi
	callq	_pg_strdup
	movq	-752(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movl	%r14d, (%rcx)
	movl	$1, %ebx
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%ebx, %eax
	addq	$712, %rsp                      ## imm = 0x2C8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"incomplete tar header found (%lu byte)"

L_.str.1:                               ## @.str.1
	.asciz	"incomplete tar header found (%lu bytes)"

	.comm	_UINT64_FORMAT,8,3              ## @UINT64_FORMAT
L_.str.2:                               ## @.str.2
	.asciz	"TOC Entry %s at %s (length %s, checksum %d)"

L_.str.3:                               ## @.str.3
	.asciz	"corrupt tar header found in %s (expected %d, computed %d) file position %s"

	.no_dead_strip	__tarGetHeader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _tarGetHeader
__tarGetHeader:                         ; @_tarGetHeader
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #736
	mov	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x27, [x0]
	add	x28, sp, #208
	add	x24, x28, #148
Lloh3:
	adrp	x25, l_.str@PAGE
Lloh4:
	add	x25, x25, l_.str@PAGEOFF
Lloh5:
	adrp	x26, l_.str.1@PAGE
Lloh6:
	add	x26, x26, l_.str.1@PAGEOFF
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldp	w21, w4, [x27]
	add	x1, sp, #208
	mov	x0, x23
	mov	w2, #512
	mov	x3, #0
	bl	__tarReadRaw
	cmp	w0, #512
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x20, x0
	cbz	w0, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x25
	mov	x1, x26
	mov	x2, x20
	bl	_ngettext
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	sxtw	x8, w20
	str	x8, [sp]
	bl	_fatal
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	x0, sp, #208
	bl	_tarChecksum
	mov	x20, x0
	mov	x0, x24
	mov	w1, #8
	bl	_read_tar_number
	mov	x22, x0
	cmp	w20, w0
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x8, #0
LBB0_6:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x28, x8]
	cbnz	w9, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x8, x8, #1
	cmp	x8, #512
	b.ne	LBB0_6
	b	LBB0_1
LBB0_8:
	add	x24, sp, #107
	add	x23, sp, #208
	add	x0, sp, #107
	add	x1, sp, #208
	mov	w2, #101
	bl	_strlcpy
	add	x0, x23, #124
	mov	w1, #12
	bl	_read_tar_number
	mov	x23, x0
Lloh7:
	adrp	x26, _UINT64_FORMAT@GOTPAGE
Lloh8:
	ldr	x26, [x26, _UINT64_FORMAT@GOTPAGEOFF]
	ldr	x2, [x26]
	add	x25, sp, #75
	add	x0, sp, #75
	mov	w1, #32
	mov	x3, x21
	bl	_snprintf
	ldr	x2, [x26]
	add	x0, sp, #43
	mov	w1, #32
	mov	x3, x23
	bl	_snprintf
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x1, sp, #107
	add	x2, sp, #75
	add	x3, sp, #43
	mov	x4, x22
	bl	_pg_log_debug
	cmp	w20, w22
	b.eq	LBB0_10
; %bb.9:
	ldr	x21, [x26]
	ldr	w0, [x27, #4]
	bl	_ftello
	mov	x3, x0
	add	x0, sp, #75
	mov	w1, #32
	mov	x2, x21
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_snprintf
	stp	x20, x25, [sp, #16]
	stp	x24, x22, [sp]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_fatal
LBB0_10:
	add	x0, sp, #107
	bl	_pg_strdup
	stp	w23, w0, [x19]
	mov	w20, #1
LBB0_11:
	ldur	x8, [x29, #-96]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x20
	add	sp, sp, #736
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"incomplete tar header found (%lu byte)"

l_.str.1:                               ; @.str.1
	.asciz	"incomplete tar header found (%lu bytes)"

	.comm	_UINT64_FORMAT,8,3              ; @UINT64_FORMAT
l_.str.2:                               ; @.str.2
	.asciz	"TOC Entry %s at %s (length %s, checksum %d)"

l_.str.3:                               ; @.str.3
	.asciz	"corrupt tar header found in %s (expected %d, computed %d) file position %s"

	.no_dead_strip	__tarGetHeader
.subsections_via_symbols
