	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dir_ctrl
_dir_ctrl:                              ## @dir_ctrl
	.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
	xorl	%eax, %eax
	cmpl	$128, %esi
	jne	LBB0_6
## %bb.1:
	movq	(%rdi), %rbx
	movq	_X509_FILETYPE_DEFAULT@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_7
## %bb.2:
	xorl	%eax, %eax
	callq	_X509_get_default_cert_dir_env
	movl	%eax, %edi
	callq	_ossl_safe_getenv
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_X509_get_default_cert_dir
LBB0_4:
	movq	_X509_FILETYPE_PEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_add_cert_dir
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_X509_F_DIR_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_X509_R_LOADING_CERT_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_X509err
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	movq	%rdx, %rsi
	movl	%ecx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_add_cert_dir                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_X509_FILETYPE_DEFAULT,8,3      ## @X509_FILETYPE_DEFAULT
	.comm	_X509_FILETYPE_PEM,4,2          ## @X509_FILETYPE_PEM
	.comm	_X509_F_DIR_CTRL,4,2            ## @X509_F_DIR_CTRL
	.comm	_X509_R_LOADING_CERT_DIR,4,2    ## @X509_R_LOADING_CERT_DIR
	.no_dead_strip	_dir_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dir_ctrl
_dir_ctrl:                              ; @dir_ctrl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w1, #128
	b.ne	LBB0_6
; %bb.1:
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _X509_FILETYPE_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X509_FILETYPE_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x3
	b.ne	LBB0_8
; %bb.2:
	bl	_X509_get_default_cert_dir_env
	bl	_ossl_safe_getenv
	cbnz	x0, LBB0_4
; %bb.3:
	bl	_X509_get_default_cert_dir
LBB0_4:
	mov	x1, x0
Lloh3:
	adrp	x8, _X509_FILETYPE_PEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _X509_FILETYPE_PEM@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_add_cert_dir
	cbnz	w0, LBB0_7
; %bb.5:
Lloh6:
	adrp	x8, _X509_F_DIR_CTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _X509_F_DIR_CTRL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _X509_R_LOADING_CERT_DIR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _X509_R_LOADING_CERT_DIR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_X509err
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x19
	mov	x1, x2
	mov	x2, x3
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_add_cert_dir
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_X509_FILETYPE_DEFAULT,8,3      ; @X509_FILETYPE_DEFAULT
	.comm	_X509_FILETYPE_PEM,4,2          ; @X509_FILETYPE_PEM
	.comm	_X509_F_DIR_CTRL,4,2            ; @X509_F_DIR_CTRL
	.comm	_X509_R_LOADING_CERT_DIR,4,2    ; @X509_R_LOADING_CERT_DIR
	.no_dead_strip	_dir_ctrl
.subsections_via_symbols
