	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_compat_gtar_2
_test_compat_gtar_2:                    ## @test_compat_gtar_2
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movaps	L___const.test_compat_gtar_2.name(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movabsq	$32195298964168562, %rax        ## imm = 0x7261742E325F72
	movq	%rax, -65(%rbp)
	xorl	%eax, %eax
	callq	_archive_read_new
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r13
	movl	(%r13), %r14d
	movq	%r12, %rdi
	callq	_archive_read_support_filter_all
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r13), %r14d
	movq	%r12, %rdi
	callq	_archive_read_support_format_all
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	leaq	-80(%rbp), %r14
	movq	%r14, %rdi
	callq	_extract_reference_file
	movl	(%r13), %r15d
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$10240, %edx                    ## imm = 0x2800
	callq	_archive_read_open_filename
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r13), %r14d
	leaq	-88(%rbp), %rsi
	movq	%r12, %rdi
	callq	_archive_read_next_header
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	cmpl	(%r13), %ebx
	jne	LBB0_1
## %bb.2:
	movq	-88(%rbp), %rdi
	callq	_archive_entry_uid
	movl	$2097152, %edi                  ## imm = 0x200000
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	-88(%rbp), %rdi
	callq	_archive_entry_gid
	movl	$2097152, %edi                  ## imm = 0x200000
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	_ARCHIVE_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-88(%rbp), %rsi
	movq	%r12, %rdi
	callq	_archive_read_next_header
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_archive_filter_code
	movq	_ARCHIVE_FILTER_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_assertEqualInt
	movq	%r12, %rdi
	callq	_archive_format
	movq	_ARCHIVE_FORMAT_TAR_GNUTAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_assertEqualInt
	movl	(%r13), %ebx
	movq	%r12, %rdi
	callq	_archive_read_close
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movl	(%r13), %ebx
	movq	%r12, %rdi
	callq	_archive_read_free
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	jmp	LBB0_3
LBB0_1:
	movq	%r12, %rdi
	callq	_archive_read_free
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
	.p2align	4                               ## @__const.test_compat_gtar_2.name
L___const.test_compat_gtar_2.name:
	.asciz	"test_compat_gtar_2.tar"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_EOF,4,2                ## @ARCHIVE_EOF
	.comm	_ARCHIVE_FILTER_NONE,4,2        ## @ARCHIVE_FILTER_NONE
	.comm	_ARCHIVE_FORMAT_TAR_GNUTAR,4,2  ## @ARCHIVE_FORMAT_TAR_GNUTAR
	.no_dead_strip	_test_compat_gtar_2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_compat_gtar_2
_test_compat_gtar_2:                    ; @test_compat_gtar_2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, l___const.test_compat_gtar_2.name@PAGE
Lloh4:
	add	x8, x8, l___const.test_compat_gtar_2.name@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp, #16]
	ldur	x8, [x8, #15]
	stur	x8, [sp, #31]
	bl	_archive_read_new
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh5:
	adrp	x22, _ARCHIVE_OK@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	w20, [x22]
	mov	x0, x19
	bl	_archive_read_support_filter_all
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
	ldr	w20, [x22]
	mov	x0, x19
	bl	_archive_read_support_format_all
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
	add	x0, sp, #16
	bl	_extract_reference_file
	ldr	w20, [x22]
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #10240
	bl	_archive_read_open_filename
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
	ldr	w20, [x22]
	add	x1, sp, #8
	mov	x0, x19
	bl	_archive_read_next_header
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_assertEqualIntA
	ldr	w8, [x22]
	cmp	w21, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [sp, #8]
	bl	_archive_entry_uid
	mov	x1, x0
	mov	w0, #2097152
	bl	_assertEqualInt
	ldr	x0, [sp, #8]
	bl	_archive_entry_gid
	mov	x1, x0
	mov	w0, #2097152
	bl	_assertEqualInt
Lloh7:
	adrp	x8, _ARCHIVE_EOF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ARCHIVE_EOF@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_archive_read_next_header
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
	mov	x0, x19
	mov	w1, #0
	bl	_archive_filter_code
Lloh10:
	adrp	x8, _ARCHIVE_FILTER_NONE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ARCHIVE_FILTER_NONE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_assertEqualInt
	mov	x0, x19
	bl	_archive_format
Lloh13:
	adrp	x8, _ARCHIVE_FORMAT_TAR_GNUTAR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ARCHIVE_FORMAT_TAR_GNUTAR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_assertEqualInt
	ldr	w20, [x22]
	mov	x0, x19
	bl	_archive_read_close
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualInt
	ldr	w20, [x22]
	mov	x0, x19
	bl	_archive_read_free
	mov	x1, x0
	mov	x0, x20
	bl	_assertEqualInt
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_archive_read_free
LBB0_3:
	ldr	x8, [sp, #40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	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
	add	sp, sp, #96
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l___const.test_compat_gtar_2.name:      ; @__const.test_compat_gtar_2.name
	.asciz	"test_compat_gtar_2.tar"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_EOF,4,2                ; @ARCHIVE_EOF
	.comm	_ARCHIVE_FILTER_NONE,4,2        ; @ARCHIVE_FILTER_NONE
	.comm	_ARCHIVE_FORMAT_TAR_GNUTAR,4,2  ; @ARCHIVE_FORMAT_TAR_GNUTAR
	.no_dead_strip	_test_compat_gtar_2
.subsections_via_symbols
