	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dir_init
_dir_init:                              ## @dir_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rdx, %rbx
	movl	%edi, %r14d
	movq	$0, (%rdx)
	leaq	-32(%rbp), %rsi
	movq	%r8, %rdi
	callq	_stat
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	-32(%rbp), %edi
	callq	_S_ISDIR
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	%r15, %rdi
	callq	_strdup
	movq	%rax, %rcx
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_7
## %bb.6:
	movl	%r14d, %edi
	callq	_hx509_clear_error_string
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rcx
	movq	_ENOENT@GOTPCREL(%rip), %rbx
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rcx
	movq	_ENOTDIR@GOTPCREL(%rip), %rbx
LBB0_4:
	movl	(%rbx), %edx
	movl	%r14d, %edi
	xorl	%esi, %esi
	movq	%r15, %r8
	callq	_hx509_set_error_string
	movl	(%rbx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No such file %s"

	.comm	_ENOTDIR,4,2                    ## @ENOTDIR
L_.str.1:                               ## @.str.1
	.asciz	"%s is not a directory"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_dir_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dir_init
_dir_init:                              ; @dir_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x4
	mov	x21, x2
	mov	x19, x0
	str	xzr, [x2]
	add	x1, sp, #8
	mov	x0, x4
	bl	_stat
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_strdup
	str	x0, [x21]
	cbz	x0, LBB0_7
; %bb.3:
	mov	w0, #0
	b	LBB0_8
LBB0_4:
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
Lloh2:
	adrp	x21, _ENOENT@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ENOENT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x3, l_.str.1@PAGE
Lloh5:
	add	x3, x3, l_.str.1@PAGEOFF
Lloh6:
	adrp	x21, _ENOTDIR@GOTPAGE
Lloh7:
	ldr	x21, [x21, _ENOTDIR@GOTPAGEOFF]
LBB0_6:
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #0
	mov	x4, x20
	bl	_hx509_set_error_string
	ldr	w0, [x21]
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_hx509_clear_error_string
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No such file %s"

	.comm	_ENOTDIR,4,2                    ; @ENOTDIR
l_.str.1:                               ; @.str.1
	.asciz	"%s is not a directory"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_dir_init
.subsections_via_symbols
