	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_x509_crt_parse_der     ## -- Begin function mbedtls_x509_crt_parse_der
	.p2align	4, 0x90
_mbedtls_x509_crt_parse_der:            ## @mbedtls_x509_crt_parse_der
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.2:
	movq	%rdx, %r15
	movq	%rdi, %r13
	cmpq	$0, (%rdi)
	je	LBB0_3
## %bb.4:
	movq	%r13, %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r14
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, (%rbx)
	jne	LBB0_7
	jmp	LBB0_11
LBB0_5:
	movq	_MBEDTLS_ERR_X509_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
LBB0_3:
	movq	%r13, %rbx
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_8:
	movl	$1, %edi
	movl	$16, %esi
	callq	_mbedtls_calloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %rdi
	callq	_mbedtls_x509_crt_init
	movq	8(%r14), %rbx
LBB0_11:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_x509_crt_parse_der_core
	movl	%eax, %r15d
	testl	%eax, %eax
	movl	$0, %eax
	je	LBB0_17
## %bb.12:
	testq	%r14, %r14
	je	LBB0_14
## %bb.13:
	movq	$0, 8(%r14)
LBB0_14:
	cmpq	%r13, %rbx
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	callq	_mbedtls_free
LBB0_16:
	movl	%r15d, %eax
LBB0_17:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_MBEDTLS_ERR_X509_ALLOC_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_X509_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_X509_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_X509_ALLOC_FAILED,4,2 ## @MBEDTLS_ERR_X509_ALLOC_FAILED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_x509_crt_parse_der     ; -- Begin function mbedtls_x509_crt_parse_der
	.p2align	2
_mbedtls_x509_crt_parse_der:            ; @mbedtls_x509_crt_parse_der
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x1
	cbz	x1, LBB0_6
; %bb.2:
	mov	x20, x2
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.3:
	mov	x22, x19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x22
	ldr	x22, [x22, #8]
	cbz	x22, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	cbnz	x8, LBB0_4
	b	LBB0_11
LBB0_6:
Lloh0:
	adrp	x8, _MBEDTLS_ERR_X509_BAD_INPUT_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_BAD_INPUT_DATA@GOTPAGEOFF]
LBB0_7:
	ldr	w20, [x8]
	b	LBB0_16
LBB0_8:
	mov	x23, #0
	mov	x22, x19
	b	LBB0_11
LBB0_9:
	mov	w0, #1
	mov	w1, #16
	bl	_mbedtls_calloc
	str	x0, [x23, #8]
	cbz	x0, LBB0_17
; %bb.10:
	bl	_mbedtls_x509_crt_init
	ldr	x22, [x23, #8]
LBB0_11:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_x509_crt_parse_der_core
	mov	x20, x0
	cbz	w0, LBB0_16
; %bb.12:
	cbz	x23, LBB0_14
; %bb.13:
	str	xzr, [x23, #8]
LBB0_14:
	cmp	x22, x19
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x22
	bl	_mbedtls_free
LBB0_16:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_17:
Lloh2:
	adrp	x8, _MBEDTLS_ERR_X509_ALLOC_FAILED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_ALLOC_FAILED@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_X509_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_X509_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_X509_ALLOC_FAILED,4,2 ; @MBEDTLS_ERR_X509_ALLOC_FAILED
.subsections_via_symbols
