	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test
_test:                                  ## @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	%rsi, %r15
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_archive_entry_filetype
	movl	%eax, %edi
	callq	_S_ISDIR
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	%r15, %rdi
	callq	_archive_entry_pathname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_info
	movq	_buffer@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_archive_read_data
	testq	%rax, %rax
	jg	LBB0_2
## %bb.3:
	js	LBB0_4
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_info
	jmp	LBB0_6
LBB0_4:
	movq	%r12, %rdi
	callq	_archive_error_string
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_info
	movl	$1, %r14d
LBB0_6:
	movq	%r12, %rdi
	callq	_archive_read_data_skip
	movl	%eax, %edi
	callq	_ac
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"    testing: %s\t"

	.comm	_buffer,4,2                     ## @buffer
L_.str.1:                               ## @.str.1
	.asciz	" %s\n"

L_.str.2:                               ## @.str.2
	.asciz	" OK\n"

	.no_dead_strip	_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test
_test:                                  ; @test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_archive_entry_filetype
	bl	_S_ISDIR
	cbz	x0, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_8
LBB0_2:
	mov	x0, x20
	bl	_archive_entry_pathname
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_info
Lloh2:
	adrp	x20, _buffer@GOTPAGE
Lloh3:
	ldr	x20, [x20, _buffer@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #4
	bl	_archive_read_data
	cmp	x0, #0
	b.gt	LBB0_3
; %bb.4:
	tbnz	x0, #63, LBB0_6
; %bb.5:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_info
	mov	w20, #0
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_archive_error_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_info
	mov	w20, #1
LBB0_7:
	mov	x0, x19
	bl	_archive_read_data_skip
	bl	_ac
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"    testing: %s\t"

	.comm	_buffer,4,2                     ; @buffer
l_.str.1:                               ; @.str.1
	.asciz	" %s\n"

l_.str.2:                               ; @.str.2
	.asciz	" OK\n"

	.no_dead_strip	_test
.subsections_via_symbols
