	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_test
_read_test:                             ## @read_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_archive_read_new
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_archive_read_support_filter_bzip2
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %r12
	cmpl	%eax, (%r12)
	jne	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_canBzip2
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	cmpl	%ebx, (%r12)
LBB0_3:
	jg	LBB0_4
## %bb.5:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	%r15, %rdi
	callq	_archive_read_support_format_all
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	%r14, %rdi
	callq	_extract_reference_file
	movl	(%r12), %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$2, %edx
	callq	_archive_read_open_filename
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	%r15, %rdi
	callq	_archive_filter_count
	movl	$2, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_archive_read_free              ## TAILCALL
LBB0_4:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_skipping                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bzip2 unsupported"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_read_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_test
_read_test:                             ; @read_test
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	bl	_archive_read_new
	mov	x19, x0
	bl	_archive_read_support_filter_bzip2
Lloh0:
	adrp	x22, _ARCHIVE_WARN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ARCHIVE_WARN@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, w0
	b.ne	LBB0_3
; %bb.1:
	mov	x21, x0
	bl	_canBzip2
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w8, [x22]
	cmp	w8, w21
LBB0_3:
	b.gt	LBB0_5
; %bb.4:
Lloh2:
	adrp	x22, _ARCHIVE_OK@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	w21, [x22]
	mov	x0, x19
	bl	_archive_read_support_format_all
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_assertEqualIntA
	mov	x0, x20
	bl	_extract_reference_file
	ldr	w21, [x22]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #2
	bl	_archive_read_open_filename
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_assertEqualIntA
	mov	x0, x19
	bl	_archive_filter_count
	mov	x1, x0
	mov	w0, #2
	bl	_assertEqualInt
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_archive_read_free
LBB0_5:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_skipping
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bzip2 unsupported"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_read_test
.subsections_via_symbols
