	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_format
_test_format:                           ## @test_format
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$1000000, %edi                  ## imm = 0xF4240
	callq	_malloc
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_archive_write_new
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	%r15, %rdi
	callq	*%r12
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r13), %ebx
	movq	%r15, %rdi
	callq	_archive_write_add_filter_b64encode
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r13), %ebx
	leaq	-120(%rbp), %rcx
	movl	$1000000, %edx                  ## imm = 0xF4240
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_archive_write_open_memory
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	xorl	%eax, %eax
	callq	_archive_entry_new
	movq	%rax, %rbx
	movq	%rax, -128(%rbp)
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_archive_entry_set_pathname
	movq	_AE_IFREG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_archive_entry_set_filetype
	movl	(%r13), %r12d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_archive_write_header
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	%rbx, %rdi
	callq	_archive_entry_free
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	$9, %edx
	callq	_archive_write_data
	movq	%r15, %rdi
	movl	$9, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r13), %ebx
	movq	%r15, %rdi
	callq	_archive_write_close
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r13), %ebx
	movq	%r15, %rdi
	callq	_archive_write_free
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	xorl	%eax, %eax
	callq	_archive_read_new
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movl	(%r13), %r15d
	movq	%rbx, %rdi
	callq	_archive_read_support_format_raw
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r13), %r15d
	movq	%rbx, %rdi
	callq	_archive_read_support_filter_none
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r13), %r15d
	movq	-120(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_archive_read_open_memory
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r13), %r15d
	leaq	-128(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_archive_read_next_header
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	leaq	-112(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$64, %edx
	callq	_archive_read_data
	movq	%rbx, %rdi
	movl	$37, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	$37, %edx
	callq	_assertEqualMem
	movl	(%r13), %r15d
	movq	%rbx, %rdi
	callq	_archive_read_close
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r13), %r15d
	movq	%rbx, %rdi
	callq	_archive_read_free
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	%r14, %rdi
	callq	_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"test"

	.comm	_AE_IFREG,4,2                   ## @AE_IFREG
L_.str.1:                               ## @.str.1
	.asciz	"12345678"

L_.str.2:                               ## @.str.2
	.asciz	"begin-base64 644 -\nMTIzNDU2NzgA\n====\n"

	.no_dead_strip	_test_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_format
_test_format:                           ; @test_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	w0, #16960
	movk	w0, #15, lsl #16
	bl	_malloc
	mov	x19, x0
	bl	_archive_write_new
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh3:
	adrp	x23, _ARCHIVE_OK@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	w22, [x23]
	mov	x0, x20
	blr	x21
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_assertEqualIntA
	ldr	w21, [x23]
	mov	x0, x20
	bl	_archive_write_add_filter_b64encode
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_assertEqualIntA
	ldr	w21, [x23]
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	w2, #16960
	movk	w2, #15, lsl #16
	bl	_archive_write_open_memory
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_assertEqualIntA
	bl	_archive_entry_new
	mov	x21, x0
	str	x0, [sp, #16]
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_archive_entry_set_pathname
Lloh7:
	adrp	x8, _AE_IFREG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AE_IFREG@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_archive_entry_set_filetype
	ldr	w22, [x23]
	mov	x0, x20
	mov	x1, x21
	bl	_archive_write_header
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_assertEqualIntA
	mov	x0, x21
	bl	_archive_entry_free
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w2, #9
	bl	_archive_write_data
	mov	x2, x0
	mov	x0, x20
	mov	w1, #9
	bl	_assertEqualIntA
	ldr	w21, [x23]
	mov	x0, x20
	bl	_archive_write_close
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_assertEqualIntA
	ldr	w21, [x23]
	mov	x0, x20
	bl	_archive_write_free
	mov	x1, x0
	mov	x0, x21
	bl	_assertEqualInt
	bl	_archive_read_new
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	w21, [x23]
	mov	x0, x20
	bl	_archive_read_support_format_raw
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_assertEqualIntA
	ldr	w21, [x23]
	mov	x0, x20
	bl	_archive_read_support_filter_none
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_assertEqualIntA
	ldr	w21, [x23]
	ldr	x2, [sp, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_archive_read_open_memory
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_assertEqualIntA
	ldr	w21, [x23]
	add	x1, sp, #16
	mov	x0, x20
	bl	_archive_read_next_header
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_assertEqualIntA
	add	x1, sp, #24
	mov	x0, x20
	mov	w2, #64
	bl	_archive_read_data
	mov	x2, x0
	mov	x0, x20
	mov	w1, #37
	bl	_assertEqualIntA
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #24
	mov	w2, #37
	bl	_assertEqualMem
	ldr	w21, [x23]
	mov	x0, x20
	bl	_archive_read_close
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_assertEqualIntA
	ldr	w21, [x23]
	mov	x0, x20
	bl	_archive_read_free
	mov	x1, x0
	mov	x0, x21
	bl	_assertEqualInt
	mov	x0, x19
	bl	_free
	ldur	x8, [x29, #-56]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"test"

	.comm	_AE_IFREG,4,2                   ; @AE_IFREG
l_.str.1:                               ; @.str.1
	.asciz	"12345678"

l_.str.2:                               ; @.str.2
	.asciz	"begin-base64 644 -\nMTIzNDU2NzgA\n====\n"

	.no_dead_strip	_test_format
.subsections_via_symbols
