	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_prog_in_dir
_check_prog_in_dir:                     ## @check_prog_in_dir
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, (%rsi)
	je	LBB0_1
## %bb.6:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_atf_no_error                   ## TAILCALL
LBB0_1:
	movq	%rsi, %rbx
	movq	%rdi, %rdx
	movl	4(%rsi), %ecx
	leaq	L_.str(%rip), %rsi
	leaq	-20(%rbp), %rdi
	callq	_atf_fs_path_init_fmt
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_atf_is_error
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	_atf_fs_access_x@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdi
	callq	_atf_fs_eaccess
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_atf_is_error
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	%r14d, %edi
	callq	_atf_error_free
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	sete	%dil
	callq	_INV
	xorl	%eax, %eax
	callq	_atf_no_error
	movl	%eax, %r14d
	jmp	LBB0_5
LBB0_3:
	movl	$1, (%rbx)
LBB0_5:
	leaq	-20(%rbp), %rdi
	callq	_atf_fs_path_fini
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

	.comm	_atf_fs_access_x,4,2            ## @atf_fs_access_x
	.no_dead_strip	_check_prog_in_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_prog_in_dir
_check_prog_in_dir:                     ; @check_prog_in_dir
	.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
	ldr	w8, [x1]
	cbz	w8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_atf_no_error
LBB0_2:
	mov	x19, x1
	mov	x2, x0
	ldr	w3, [x1, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #12
	bl	_atf_fs_path_init_fmt
	mov	x20, x0
	bl	_atf_is_error
	cbnz	x0, LBB0_6
; %bb.3:
Lloh2:
	adrp	x8, _atf_fs_access_x@GOTPAGE
Lloh3:
	ldr	x8, [x8, _atf_fs_access_x@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_atf_fs_eaccess
	mov	x20, x0
	bl	_atf_is_error
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_atf_error_free
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, eq
	bl	_INV
	bl	_atf_no_error
	mov	x20, x0
	b	LBB0_6
LBB0_5:
	mov	w8, #1
	str	w8, [x19]
LBB0_6:
	add	x0, sp, #12
	bl	_atf_fs_path_fini
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

	.comm	_atf_fs_access_x,4,2            ; @atf_fs_access_x
	.no_dead_strip	_check_prog_in_dir
.subsections_via_symbols
