	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tar_unpack_check_header
_tar_unpack_check_header:               ## @tar_unpack_check_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	pxor	%xmm0, %xmm0
	movl	$12, %eax
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	pmovzxbd	-12(%rbx,%rax), %xmm2           ## xmm2 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero
	paddd	%xmm0, %xmm2
	pmovzxbd	-8(%rbx,%rax), %xmm3            ## xmm3 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero
	paddd	%xmm1, %xmm3
	pmovzxbd	-4(%rbx,%rax), %xmm0            ## xmm0 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero
	pmovzxbd	(%rbx,%rax), %xmm1              ## xmm1 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero
	paddd	%xmm2, %xmm0
	paddd	%xmm3, %xmm1
	addq	$16, %rax
	cmpq	$524, %rax                      ## imm = 0x20C
	jne	LBB0_1
## %bb.2:
	paddd	%xmm0, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %r14d
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.4:
	movq	148(%rbx), %xmm0                ## xmm0 = mem[0],zero
	pxor	%xmm1, %xmm1
	psadbw	%xmm0, %xmm1
	movd	%xmm1, %eax
	subl	%eax, %r14d
	addl	$256, %r14d                     ## imm = 0x100
	movq	%rbx, %rdi
	movl	$148, %esi
	movl	$6, %edx
	callq	_get_oct
	cmpl	%eax, %r14d
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_kprintf
	xorl	%edi, %edi
	callq	_assert
LBB0_6:
	addq	$257, %rbx                      ## imm = 0x101
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	$5, %edx
	callq	_memcmp
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movl	$1, %eax
	jmp	LBB0_7
LBB0_3:
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"broken header, chksum = %d, but sum = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"ustar"

	.no_dead_strip	_tar_unpack_check_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tar_unpack_check_header
_tar_unpack_check_header:               ; @tar_unpack_check_header
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	q0, q1, [x0]
	ushll2.8h	v2, v0, #0
	ushll.8h	v0, v0, #0
	ushll2.8h	v3, v1, #0
	ushll.8h	v1, v1, #0
	ldp	q4, q5, [x0, #32]
	ushll.8h	v6, v4, #0
	ushll2.8h	v4, v4, #0
	ushll2.8h	v7, v5, #0
	ushll.8h	v5, v5, #0
	ldp	q16, q17, [x0, #64]
	ushll2.8h	v18, v16, #0
	ushll.8h	v16, v16, #0
	ushll2.8h	v19, v17, #0
	ushll.8h	v17, v17, #0
	ldp	q20, q21, [x0, #96]
	ushll.8h	v22, v20, #0
	ushll2.8h	v20, v20, #0
	ushll2.8h	v23, v21, #0
	ushll.8h	v21, v21, #0
	uaddl2.4s	v24, v0, v16
	uaddl2.4s	v25, v2, v18
	uaddl.4s	v0, v0, v16
	uaddl.4s	v2, v2, v18
	uaddl2.4s	v16, v1, v17
	uaddl2.4s	v18, v3, v19
	uaddl.4s	v1, v1, v17
	uaddl.4s	v3, v3, v19
	uaddl.4s	v17, v4, v20
	uaddl.4s	v19, v6, v22
	uaddl2.4s	v4, v4, v20
	uaddl2.4s	v6, v6, v22
	uaddl2.4s	v20, v5, v21
	uaddl2.4s	v22, v7, v23
	uaddl.4s	v5, v5, v21
	uaddl.4s	v7, v7, v23
	ldp	q21, q23, [x0, #128]
	ldp	q26, q27, [x0, #160]
	ushll.8h	v28, v21, #0
	ushll2.8h	v21, v21, #0
	ushll.8h	v29, v23, #0
	ushll2.8h	v23, v23, #0
	ushll2.8h	v30, v26, #0
	ushll.8h	v26, v26, #0
	ushll.8h	v31, v27, #0
	ushll2.8h	v27, v27, #0
	uaddw.4s	v2, v2, v21
	uaddw.4s	v0, v0, v28
	uaddw2.4s	v21, v25, v21
	uaddw2.4s	v24, v24, v28
	uaddw.4s	v3, v3, v23
	uaddw.4s	v1, v1, v29
	uaddw2.4s	v18, v18, v23
	uaddw2.4s	v16, v16, v29
	uaddw2.4s	v6, v6, v26
	uaddw2.4s	v4, v4, v30
	uaddw.4s	v19, v19, v26
	uaddw.4s	v17, v17, v30
	uaddw.4s	v7, v7, v27
	uaddw.4s	v5, v5, v31
	uaddw2.4s	v22, v22, v27
	uaddw2.4s	v20, v20, v31
	ldp	q23, q25, [x0, #192]
	ldp	q26, q27, [x0, #224]
	ushll2.8h	v28, v23, #0
	ushll.8h	v23, v23, #0
	ushll2.8h	v29, v25, #0
	ushll.8h	v25, v25, #0
	ushll.8h	v30, v26, #0
	ushll2.8h	v26, v26, #0
	ushll2.8h	v31, v27, #0
	ushll.8h	v27, v27, #0
	uaddw2.4s	v24, v24, v23
	uaddw2.4s	v21, v21, v28
	uaddw.4s	v0, v0, v23
	uaddw.4s	v2, v2, v28
	uaddw2.4s	v16, v16, v25
	uaddw2.4s	v18, v18, v29
	uaddw.4s	v1, v1, v25
	uaddw.4s	v3, v3, v29
	uaddw.4s	v17, v17, v26
	uaddw.4s	v19, v19, v30
	uaddw2.4s	v4, v4, v26
	uaddw2.4s	v6, v6, v30
	uaddw2.4s	v20, v20, v27
	uaddw2.4s	v22, v22, v31
	uaddw.4s	v5, v5, v27
	uaddw.4s	v7, v7, v31
	ldp	q23, q25, [x0, #256]
	ldp	q26, q27, [x0, #288]
	ushll.8h	v28, v23, #0
	ushll2.8h	v23, v23, #0
	ushll.8h	v29, v25, #0
	ushll2.8h	v25, v25, #0
	ushll2.8h	v30, v26, #0
	ushll.8h	v26, v26, #0
	ushll.8h	v31, v27, #0
	ushll2.8h	v27, v27, #0
	uaddw.4s	v2, v2, v23
	uaddw.4s	v0, v0, v28
	uaddw2.4s	v21, v21, v23
	uaddw2.4s	v23, v24, v28
	uaddw.4s	v3, v3, v25
	uaddw.4s	v1, v1, v29
	uaddw2.4s	v18, v18, v25
	uaddw2.4s	v16, v16, v29
	uaddw2.4s	v6, v6, v26
	uaddw2.4s	v4, v4, v30
	uaddw.4s	v19, v19, v26
	uaddw.4s	v17, v17, v30
	uaddw.4s	v7, v7, v27
	uaddw.4s	v5, v5, v31
	uaddw2.4s	v22, v22, v27
	uaddw2.4s	v20, v20, v31
	ldp	q24, q25, [x0, #320]
	ldp	q26, q27, [x0, #352]
	ushll2.8h	v28, v24, #0
	ushll.8h	v24, v24, #0
	ushll2.8h	v29, v25, #0
	ushll.8h	v25, v25, #0
	ushll.8h	v30, v26, #0
	ushll2.8h	v26, v26, #0
	ushll2.8h	v31, v27, #0
	ushll.8h	v27, v27, #0
	uaddw2.4s	v23, v23, v24
	uaddw2.4s	v21, v21, v28
	uaddw.4s	v0, v0, v24
	uaddw.4s	v2, v2, v28
	uaddw2.4s	v16, v16, v25
	uaddw2.4s	v18, v18, v29
	uaddw.4s	v1, v1, v25
	uaddw.4s	v3, v3, v29
	uaddw.4s	v17, v17, v26
	uaddw.4s	v19, v19, v30
	uaddw2.4s	v4, v4, v26
	uaddw2.4s	v6, v6, v30
	uaddw2.4s	v20, v20, v27
	uaddw2.4s	v22, v22, v31
	uaddw.4s	v5, v5, v27
	uaddw.4s	v7, v7, v31
	ldp	q24, q25, [x0, #384]
	ldp	q26, q27, [x0, #416]
	ushll.8h	v28, v24, #0
	ushll2.8h	v24, v24, #0
	ushll.8h	v29, v25, #0
	ushll2.8h	v25, v25, #0
	ushll2.8h	v30, v26, #0
	ushll.8h	v26, v26, #0
	ushll.8h	v31, v27, #0
	ushll2.8h	v27, v27, #0
	uaddw.4s	v2, v2, v24
	uaddw.4s	v0, v0, v28
	uaddw2.4s	v21, v21, v24
	uaddw2.4s	v23, v23, v28
	uaddw.4s	v3, v3, v25
	uaddw.4s	v1, v1, v29
	uaddw2.4s	v18, v18, v25
	uaddw2.4s	v16, v16, v29
	uaddw2.4s	v6, v6, v26
	uaddw2.4s	v4, v4, v30
	uaddw.4s	v19, v19, v26
	uaddw.4s	v17, v17, v30
	uaddw.4s	v7, v7, v27
	uaddw.4s	v5, v5, v31
	uaddw2.4s	v22, v22, v27
	uaddw2.4s	v20, v20, v31
	ldp	q24, q25, [x0, #448]
	ldp	q26, q27, [x0, #480]
	ushll2.8h	v28, v24, #0
	ushll.8h	v24, v24, #0
	ushll2.8h	v29, v25, #0
	ushll.8h	v25, v25, #0
	ushll.8h	v30, v26, #0
	ushll2.8h	v26, v26, #0
	ushll2.8h	v31, v27, #0
	ushll.8h	v27, v27, #0
	uaddw2.4s	v23, v23, v24
	uaddw2.4s	v21, v21, v28
	uaddw.4s	v0, v0, v24
	uaddw.4s	v2, v2, v28
	uaddw2.4s	v16, v16, v25
	uaddw2.4s	v18, v18, v29
	uaddw.4s	v1, v1, v25
	uaddw.4s	v3, v3, v29
	uaddw.4s	v17, v17, v26
	uaddw.4s	v19, v19, v30
	uaddw2.4s	v4, v4, v26
	uaddw2.4s	v6, v6, v30
	uaddw2.4s	v20, v20, v27
	uaddw2.4s	v22, v22, v31
	uaddw.4s	v5, v5, v27
	uaddw.4s	v7, v7, v31
	add.4s	v2, v3, v2
	add.4s	v0, v1, v0
	add.4s	v1, v18, v21
	add.4s	v3, v16, v23
	add.4s	v3, v6, v3
	add.4s	v1, v4, v1
	add.4s	v0, v19, v0
	add.4s	v2, v17, v2
	add.4s	v2, v7, v2
	add.4s	v0, v5, v0
	add.4s	v1, v22, v1
	add.4s	v3, v20, v3
	add.4s	v1, v3, v1
	add.4s	v0, v0, v2
	add.4s	v0, v0, v1
	addv.4s	s0, v0
	fmov	w8, s0
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldur	d0, [x0, #148]
	movi.2d	v1, #0000000000000000
	movi.8b	v2, #1
	udot.2s	v1, v0, v2
	addp.2s	v0, v1, v1
	fmov	w9, s0
	sub	w8, w8, w9
	add	w20, w8, #256
	mov	w1, #148
	mov	w2, #6
	bl	_get_oct
	cmp	w20, w0
	b.eq	LBB0_3
; %bb.2:
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_kprintf
	mov	w0, #0
	bl	_assert
LBB0_3:
	add	x0, x19, #257
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #5
	bl	_memcmp
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"broken header, chksum = %d, but sum = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"ustar"

	.no_dead_strip	_tar_unpack_check_header
.subsections_via_symbols
