	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function receiver_directory_open
_receiver_directory_open:               ## @receiver_directory_open
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_adhost@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	16(%rax), %edi
	leaq	-16(%rbp), %rsi
	callq	_stat
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_receiver_directory_create
	jmp	LBB0_4
LBB0_3:
	movq	_EX_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movl	16(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_pjdlog_exit
LBB0_4:
	movq	(%rbx), %rax
	movl	16(%rax), %edi
	callq	_opendir
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_EX_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rcx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_pjdlog_exit
	movq	(%rbx), %rax
	movq	8(%rax), %rax
LBB0_6:
	movq	%rax, %rdi
	callq	_dirfd
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_adhost,8,3                     ## @adhost
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_EX_CONFIG,4,2                  ## @EX_CONFIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to stat directory \"%s\""

L_.str.1:                               ## @.str.1
	.asciz	"Unable to open directory \"%s\""

	.comm	_O_DIRECTORY,4,2                ## @O_DIRECTORY
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.no_dead_strip	_receiver_directory_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function receiver_directory_open
_receiver_directory_open:               ; @receiver_directory_open
	.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
Lloh0:
	adrp	x19, _adhost@GOTPAGE
Lloh1:
	ldr	x19, [x19, _adhost@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w0, [x8, #16]
	add	x1, sp, #8
	bl	_stat
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _ENOENT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	bl	_receiver_directory_create
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _EX_CONFIG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EX_CONFIG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	w2, [x8, #16]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_pjdlog_exit
LBB0_4:
	ldr	x8, [x19]
	ldr	w0, [x8, #16]
	bl	_opendir
	ldr	x8, [x19]
	str	x0, [x8, #8]
	cbnz	x0, LBB0_6
; %bb.5:
Lloh13:
	adrp	x9, _EX_CONFIG@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EX_CONFIG@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x9]
	ldr	w2, [x8, #16]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_pjdlog_exit
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
LBB0_6:
	bl	_dirfd
	ldr	x8, [x19]
	str	w0, [x8]
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_adhost,8,3                     ; @adhost
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_EX_CONFIG,4,2                  ; @EX_CONFIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to stat directory \"%s\""

l_.str.1:                               ; @.str.1
	.asciz	"Unable to open directory \"%s\""

	.comm	_O_DIRECTORY,4,2                ; @O_DIRECTORY
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.no_dead_strip	_receiver_directory_open
.subsections_via_symbols
