	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_test
_write_test:                            ## @write_test
	.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	%r12
	pushq	%rbx
	movl	$4112, %eax                     ## imm = 0x1010
	callq	____chkstk_darwin
	subq	%rax, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	callq	_archive_write_new
	movq	%rax, %rbx
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	movq	%rax, %rdi
	callq	_archive_write_set_format_ustar
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movl	(%r15), %r14d
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_archive_write_set_bytes_per_block
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	%rbx, %rdi
	callq	_archive_write_add_filter_bzip2
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %r12
	cmpl	%eax, (%r12)
	jne	LBB0_3
## %bb.1:
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_canBzip2
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	cmpl	%r14d, (%r12)
LBB0_3:
	jg	LBB0_4
## %bb.6:
	movl	(%r15), %r14d
	leaq	-4144(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4096, %edx                     ## imm = 0x1000
	xorl	%ecx, %ecx
	callq	_archive_write_open_memory
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	%rbx, %rdi
	callq	_archive_filter_count
	movl	$2, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	%rbx, %rdi
	callq	_archive_write_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$4112, %rsp                     ## imm = 0x1010
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_8
## %bb.5:
	leaq	L_.str(%rip), %rdi
	addq	$4112, %rsp                     ## imm = 0x1010
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_skipping                       ## TAILCALL
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bzip2 unsupported"

	.no_dead_strip	_write_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_test
_write_test:                            ; @write_test
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 w27, -56
	.cfi_offset w28, -64
	mov	w9, #4112
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #16
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_archive_write_new
	mov	x19, x0
Lloh5:
	adrp	x21, _ARCHIVE_OK@GOTPAGE
Lloh6:
	ldr	x21, [x21, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	w20, [x21]
	bl	_archive_write_set_format_ustar
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
	ldr	w20, [x21]
	mov	x0, x19
	mov	w1, #10
	bl	_archive_write_set_bytes_per_block
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
	mov	x0, x19
	bl	_archive_write_add_filter_bzip2
Lloh7:
	adrp	x22, _ARCHIVE_WARN@GOTPAGE
Lloh8:
	ldr	x22, [x22, _ARCHIVE_WARN@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, w0
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_canBzip2
	cbz	w0, LBB0_6
; %bb.2:
	ldr	w8, [x22]
	cmp	w8, w20
LBB0_3:
	b.gt	LBB0_6
; %bb.4:
	ldr	w20, [x21]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #4096
	mov	w3, #0
	bl	_archive_write_open_memory
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_assertEqualIntA
	mov	x0, x19
	bl	_archive_filter_count
	mov	x1, x0
	mov	w0, #2
	bl	_assertEqualInt
	mov	x0, x19
	bl	_archive_write_free
	ldur	x8, [x29, #-56]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.5:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	b	_skipping
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bzip2 unsupported"

	.no_dead_strip	_write_test
.subsections_via_symbols
