	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_x509_get_time          ## -- Begin function mbedtls_x509_get_time
	.p2align	4, 0x90
_mbedtls_x509_get_time:                 ## @mbedtls_x509_get_time
	.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	(%rdi), %rax
	movq	%rsi, %rcx
	subq	%rax, %rcx
	testq	%rcx, %rcx
	jle	LBB0_5
## %bb.1:
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movb	(%rax), %cl
	movq	_MBEDTLS_ASN1_UTC_TIME@GOTPCREL(%rip), %rdx
	movl	$2, %r15d
	cmpb	(%rdx), %cl
	je	LBB0_3
## %bb.2:
	movq	_MBEDTLS_ASN1_GENERALIZED_TIME@GOTPCREL(%rip), %rdx
	movl	$4, %r15d
	cmpb	(%rdx), %cl
	jne	LBB0_7
LBB0_3:
	incq	%rax
	movq	%rax, (%rbx)
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mbedtls_asn1_get_len
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	_MBEDTLS_ERR_X509_INVALID_DATE@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_5:
	movq	_MBEDTLS_ERR_X509_INVALID_DATE@GOTPCREL(%rip), %rcx
	movq	_MBEDTLS_ERR_ASN1_OUT_OF_DATA@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_x509_parse_time
	jmp	LBB0_10
LBB0_7:
	movq	_MBEDTLS_ERR_X509_INVALID_DATE@GOTPCREL(%rip), %rcx
	movq	_MBEDTLS_ERR_ASN1_UNEXPECTED_TAG@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	addl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_X509_INVALID_DATE,4,2 ## @MBEDTLS_ERR_X509_INVALID_DATE
	.comm	_MBEDTLS_ERR_ASN1_OUT_OF_DATA,4,2 ## @MBEDTLS_ERR_ASN1_OUT_OF_DATA
	.comm	_MBEDTLS_ASN1_UTC_TIME,1,0      ## @MBEDTLS_ASN1_UTC_TIME
	.comm	_MBEDTLS_ASN1_GENERALIZED_TIME,1,0 ## @MBEDTLS_ASN1_GENERALIZED_TIME
	.comm	_MBEDTLS_ERR_ASN1_UNEXPECTED_TAG,4,2 ## @MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_x509_get_time          ; -- Begin function mbedtls_x509_get_time
	.p2align	2
_mbedtls_x509_get_time:                 ; @mbedtls_x509_get_time
	.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
	ldr	x8, [x0]
	sub	x9, x1, x8
	cmp	x9, #0
	b.le	LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	ldrb	w9, [x8]
Lloh0:
	adrp	x10, _MBEDTLS_ASN1_UTC_TIME@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MBEDTLS_ASN1_UTC_TIME@GOTPAGEOFF]
	ldrb	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_4
; %bb.2:
	mov	w21, #2
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x8, _MBEDTLS_ERR_X509_INVALID_DATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_INVALID_DATE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _MBEDTLS_ERR_ASN1_OUT_OF_DATA@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MBEDTLS_ERR_ASN1_OUT_OF_DATA@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
Lloh7:
	adrp	x10, _MBEDTLS_ASN1_GENERALIZED_TIME@GOTPAGE
Lloh8:
	ldr	x10, [x10, _MBEDTLS_ASN1_GENERALIZED_TIME@GOTPAGEOFF]
	ldrb	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_9
; %bb.5:
	mov	w21, #4
LBB0_6:
	add	x8, x8, #1
	str	x8, [x20]
	add	x2, sp, #8
	mov	x0, x20
	bl	_mbedtls_asn1_get_len
	cbz	w0, LBB0_8
; %bb.7:
Lloh9:
	adrp	x8, _MBEDTLS_ERR_X509_INVALID_DATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_INVALID_DATE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	add	w0, w8, w0
	b	LBB0_11
LBB0_8:
	ldr	x1, [sp, #8]
	mov	x0, x20
	mov	x2, x21
	mov	x3, x19
	bl	_x509_parse_time
	b	LBB0_11
LBB0_9:
Lloh12:
	adrp	x8, _MBEDTLS_ERR_X509_INVALID_DATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_INVALID_DATE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _MBEDTLS_ERR_ASN1_UNEXPECTED_TAG@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MBEDTLS_ERR_ASN1_UNEXPECTED_TAG@GOTPAGEOFF]
LBB0_10:
	ldr	w9, [x9]
	add	w0, w9, w8
LBB0_11:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_X509_INVALID_DATE,4,2 ; @MBEDTLS_ERR_X509_INVALID_DATE
	.comm	_MBEDTLS_ERR_ASN1_OUT_OF_DATA,4,2 ; @MBEDTLS_ERR_ASN1_OUT_OF_DATA
	.comm	_MBEDTLS_ASN1_UTC_TIME,1,0      ; @MBEDTLS_ASN1_UTC_TIME
	.comm	_MBEDTLS_ASN1_GENERALIZED_TIME,1,0 ; @MBEDTLS_ASN1_GENERALIZED_TIME
	.comm	_MBEDTLS_ERR_ASN1_UNEXPECTED_TAG,4,2 ; @MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
.subsections_via_symbols
