	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_srcdir
_handle_srcdir:                         ## @handle_srcdir
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	4(%rdi), %rsi
	leaq	-28(%rbp), %rdi
	callq	_atf_fs_path_copy
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_atf_is_error
	testq	%rax, %rax
	jne	LBB0_16
## %bb.1:
	leaq	-28(%rbp), %rdi
	callq	_atf_fs_path_is_absolute
	testl	%eax, %eax
	je	LBB0_2
LBB0_4:
	leaq	-28(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	callq	_atf_fs_path_leaf_name
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_atf_is_error
	testq	%rax, %rax
	jne	LBB0_15
## %bb.5:
	leaq	L_.str(%rip), %rsi
	leaq	-36(%rbp), %r15
	movq	%r15, %rdi
	callq	_atf_equal_dynstr_cstring
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_atf_dynstr_fini
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:
	leaq	-28(%rbp), %rdi
	callq	_srcdir_strip_libtool
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_atf_is_error
	testq	%rax, %rax
	jne	LBB0_16
LBB0_7:
	leaq	-32(%rbp), %rdi
	leaq	-28(%rbp), %rsi
	callq	_atf_fs_path_copy
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_atf_is_error
	testq	%rax, %rax
	jne	LBB0_15
## %bb.8:
	movq	_progname@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	leaq	-32(%rbp), %rdi
	callq	_atf_fs_path_append_fmt
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_atf_is_error
	testq	%rax, %rax
	jne	LBB0_14
## %bb.9:
	leaq	-32(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	_atf_fs_exists
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_atf_is_error
	testq	%rax, %rax
	jne	LBB0_14
## %bb.10:
	cmpl	$0, -40(%rbp)
	je	LBB0_12
## %bb.11:
	leaq	-28(%rbp), %rdi
	callq	_atf_fs_path_cstring
	movl	%eax, %edi
	callq	_strdup
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_atf_map_insert
	jmp	LBB0_13
LBB0_2:
	leaq	-28(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	callq	_atf_fs_path_to_absolute
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_atf_is_error
	testq	%rax, %rax
	jne	LBB0_15
## %bb.3:
	leaq	-28(%rbp), %rdi
	callq	_atf_fs_path_fini
	movl	-36(%rbp), %eax
	movl	%eax, -28(%rbp)
	jmp	LBB0_4
LBB0_12:
	leaq	-28(%rbp), %rdi
	callq	_atf_fs_path_cstring
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_user_error
LBB0_13:
	movl	%eax, %ebx
LBB0_14:
	leaq	-32(%rbp), %rdi
	callq	_atf_fs_path_fini
LBB0_15:
	leaq	-28(%rbp), %rdi
	callq	_atf_fs_path_fini
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".libs"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_progname,4,2                   ## @progname
L_.str.2:                               ## @.str.2
	.asciz	"srcdir"

L_.str.3:                               ## @.str.3
	.asciz	"Cannot find the test program in the source directory `%s'"

	.no_dead_strip	_handle_srcdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_srcdir
_handle_srcdir:                         ; @handle_srcdir
	.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	x19, x0
	add	x1, x0, #4
	add	x0, sp, #4
	bl	_atf_fs_path_copy
	mov	x20, x0
	bl	_atf_is_error
	cbnz	x0, LBB0_16
; %bb.1:
	add	x0, sp, #4
	bl	_atf_fs_path_is_absolute
	cbz	w0, LBB0_10
LBB0_2:
	add	x0, sp, #4
	add	x1, sp, #12
	bl	_atf_fs_path_leaf_name
	mov	x20, x0
	bl	_atf_is_error
	cbnz	x0, LBB0_15
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #12
	bl	_atf_equal_dynstr_cstring
	mov	x20, x0
	add	x0, sp, #12
	bl	_atf_dynstr_fini
	cbz	w20, LBB0_5
; %bb.4:
	add	x0, sp, #4
	bl	_srcdir_strip_libtool
	mov	x20, x0
	bl	_atf_is_error
	cbnz	x0, LBB0_16
LBB0_5:
	add	x0, sp, #8
	add	x1, sp, #4
	bl	_atf_fs_path_copy
	mov	x20, x0
	bl	_atf_is_error
	cbnz	x0, LBB0_15
; %bb.6:
Lloh2:
	adrp	x8, _progname@GOTPAGE
Lloh3:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_atf_fs_path_append_fmt
	mov	x20, x0
	bl	_atf_is_error
	cbnz	x0, LBB0_14
; %bb.7:
	add	x0, sp, #8
	mov	x1, sp
	bl	_atf_fs_exists
	mov	x20, x0
	bl	_atf_is_error
	cbnz	x0, LBB0_14
; %bb.8:
	ldr	w8, [sp]
	cbz	w8, LBB0_12
; %bb.9:
	add	x0, sp, #4
	bl	_atf_fs_path_cstring
	bl	_strdup
	mov	x2, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w3, #1
	bl	_atf_map_insert
	b	LBB0_13
LBB0_10:
	add	x0, sp, #4
	add	x1, sp, #12
	bl	_atf_fs_path_to_absolute
	mov	x20, x0
	bl	_atf_is_error
	cbnz	x0, LBB0_15
; %bb.11:
	add	x0, sp, #4
	bl	_atf_fs_path_fini
	ldr	w8, [sp, #12]
	str	w8, [sp, #4]
	b	LBB0_2
LBB0_12:
	add	x0, sp, #4
	bl	_atf_fs_path_cstring
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_user_error
LBB0_13:
	mov	x20, x0
LBB0_14:
	add	x0, sp, #8
	bl	_atf_fs_path_fini
LBB0_15:
	add	x0, sp, #4
	bl	_atf_fs_path_fini
LBB0_16:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".libs"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_progname,4,2                   ; @progname
l_.str.2:                               ; @.str.2
	.asciz	"srcdir"

l_.str.3:                               ; @.str.3
	.asciz	"Cannot find the test program in the source directory `%s'"

	.no_dead_strip	_handle_srcdir
.subsections_via_symbols
