	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_x509_crt_parse_path    ## -- Begin function mbedtls_x509_crt_parse_path
	.p2align	4, 0x90
_mbedtls_x509_crt_parse_path:           ## @mbedtls_x509_crt_parse_path
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsp, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MBEDTLS_X509_MAX_FILE_PATH_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r12, %rdi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %r13
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_mbedtls_snprintf
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cltq
	cmpq	%rbx, %rax
	jae	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	leaq	-56(%rbp), %rsi
	callq	_stat
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-56(%rbp), %edi
	callq	_S_ISREG
	testl	%eax, %eax
	je	LBB0_2
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_mbedtls_x509_crt_parse_file
	testl	%eax, %eax
	movl	$1, %ecx
	cmovsl	%ecx, %eax
	addl	%eax, -52(%rbp)                 ## 4-byte Folded Spill
	jmp	LBB0_2
LBB0_16:
	movq	_MBEDTLS_ERR_X509_FILE_IO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_3:
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_10
LBB0_6:
	movq	_MBEDTLS_ERR_X509_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_MBEDTLS_ERR_X509_FILE_IO_ERROR@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %ebx
LBB0_10:
	movq	%r13, %rdi
	callq	_closedir
	movq	-72(%rbp), %r15                 ## 8-byte Reload
LBB0_11:
	movq	%r15, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.15:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_X509_MAX_FILE_PATH_LEN,4,2 ## @MBEDTLS_X509_MAX_FILE_PATH_LEN
	.comm	_MBEDTLS_ERR_X509_FILE_IO_ERROR,4,2 ## @MBEDTLS_ERR_X509_FILE_IO_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

	.comm	_MBEDTLS_ERR_X509_BUFFER_TOO_SMALL,4,2 ## @MBEDTLS_ERR_X509_BUFFER_TOO_SMALL
	.comm	_CP_ACP,4,2                     ## @CP_ACP
	.comm	_ERROR_NO_MORE_FILES,8,3        ## @ERROR_NO_MORE_FILES
	.comm	_FILE_ATTRIBUTE_DIRECTORY,4,2   ## @FILE_ATTRIBUTE_DIRECTORY
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_MBEDTLS_ERR_THREADING_MUTEX_ERROR,4,2 ## @MBEDTLS_ERR_THREADING_MUTEX_ERROR
	.comm	_MBEDTLS_ERR_X509_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_X509_BAD_INPUT_DATA
	.comm	_mbedtls_threading_readdir_mutex,4,2 ## @mbedtls_threading_readdir_mutex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_x509_crt_parse_path    ; -- Begin function mbedtls_x509_crt_parse_path
	.p2align	2
_mbedtls_x509_crt_parse_path:           ; @mbedtls_x509_crt_parse_path
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x20, x1
	mov	x21, x0
	mov	x26, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MBEDTLS_X509_MAX_FILE_PATH_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_X509_MAX_FILE_PATH_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
	mov	x0, x1
	bl	_opendir
	cbz	x0, LBB0_8
; %bb.1:
	mov	x22, x0
	mov	w19, #0
Lloh8:
	adrp	x25, l_.str@PAGE
Lloh9:
	add	x25, x25, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_readdir
	cbz	x0, LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w4, [x0]
	mov	x0, x24
	mov	x1, x23
	mov	x2, x25
	mov	x3, x20
	bl	_mbedtls_snprintf
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x8, w0
	cmp	x8, x23
	b.hs	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x1, x29, #80
	mov	x0, x24
	bl	_stat
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldur	w0, [x29, #-80]
	bl	_S_ISREG
	cbz	w0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	mov	x1, x24
	bl	_mbedtls_x509_crt_parse_file
	cmp	w0, #0
	csinc	w8, w0, wzr, ge
	add	w19, w8, w19
	b	LBB0_2
LBB0_8:
Lloh10:
	adrp	x8, _MBEDTLS_ERR_X509_FILE_IO_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_FILE_IO_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w19, [x8]
	b	LBB0_13
LBB0_9:
Lloh13:
	adrp	x8, _MBEDTLS_ERR_X509_BUFFER_TOO_SMALL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_BUFFER_TOO_SMALL@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh15:
	adrp	x8, _MBEDTLS_ERR_X509_FILE_IO_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_FILE_IO_ERROR@GOTPAGEOFF]
LBB0_11:
	ldr	w19, [x8]
LBB0_12:
	mov	x0, x22
	bl	_closedir
LBB0_13:
	mov	sp, x26
	ldur	x8, [x29, #-72]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x19
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_X509_MAX_FILE_PATH_LEN,4,2 ; @MBEDTLS_X509_MAX_FILE_PATH_LEN
	.comm	_MBEDTLS_ERR_X509_FILE_IO_ERROR,4,2 ; @MBEDTLS_ERR_X509_FILE_IO_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

	.comm	_MBEDTLS_ERR_X509_BUFFER_TOO_SMALL,4,2 ; @MBEDTLS_ERR_X509_BUFFER_TOO_SMALL
	.comm	_CP_ACP,4,2                     ; @CP_ACP
	.comm	_ERROR_NO_MORE_FILES,8,3        ; @ERROR_NO_MORE_FILES
	.comm	_FILE_ATTRIBUTE_DIRECTORY,4,2   ; @FILE_ATTRIBUTE_DIRECTORY
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_MBEDTLS_ERR_THREADING_MUTEX_ERROR,4,2 ; @MBEDTLS_ERR_THREADING_MUTEX_ERROR
	.comm	_MBEDTLS_ERR_X509_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_X509_BAD_INPUT_DATA
	.comm	_mbedtls_threading_readdir_mutex,4,2 ; @mbedtls_threading_readdir_mutex
.subsections_via_symbols
