	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_x509write_crt_set_validity ## -- Begin function mbedtls_x509write_crt_set_validity
	.p2align	4, 0x90
_mbedtls_x509write_crt_set_validity:    ## @mbedtls_x509write_crt_set_validity
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_strlen
	movq	_MBEDTLS_X509_RFC5280_UTC_TIME_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_strlen
	movl	(%r12), %edx
	leal	-1(%rdx), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_2
## %bb.3:
	movq	(%r15), %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_strncpy
	movq	8(%r15), %rdi
	movl	(%r12), %edx
	movq	%r14, %rsi
	callq	_strncpy
	movq	(%r15), %rax
	movslq	(%r12), %rcx
	movb	$90, -1(%rcx,%rax)
	movq	8(%r15), %rax
	movslq	(%r12), %rcx
	movb	$90, -1(%rcx,%rax)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	_MBEDTLS_ERR_X509_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_X509_RFC5280_UTC_TIME_LEN,4,2 ## @MBEDTLS_X509_RFC5280_UTC_TIME_LEN
	.comm	_MBEDTLS_ERR_X509_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_X509_BAD_INPUT_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_x509write_crt_set_validity ; -- Begin function mbedtls_x509write_crt_set_validity
	.p2align	2
_mbedtls_x509write_crt_set_validity:    ; @mbedtls_x509write_crt_set_validity
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_strlen
Lloh0:
	adrp	x22, _MBEDTLS_X509_RFC5280_UTC_TIME_LEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MBEDTLS_X509_RFC5280_UTC_TIME_LEN@GOTPAGEOFF]
	ldr	w8, [x22]
	sub	w8, w8, #1
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_strlen
	ldr	w2, [x22]
	sub	w8, w2, #1
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:
	ldr	x0, [x19]
	mov	x1, x21
	bl	_strncpy
	ldr	x0, [x19, #8]
	ldr	w2, [x22]
	mov	x1, x20
	bl	_strncpy
	mov	w0, #0
	ldr	x8, [x19]
	ldrsw	x9, [x22]
	add	x8, x9, x8
	mov	w9, #90
	sturb	w9, [x8, #-1]
	ldr	x8, [x19, #8]
	ldrsw	x10, [x22]
	add	x8, x10, x8
	sturb	w9, [x8, #-1]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _MBEDTLS_ERR_X509_BAD_INPUT_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_X509_RFC5280_UTC_TIME_LEN,4,2 ; @MBEDTLS_X509_RFC5280_UTC_TIME_LEN
	.comm	_MBEDTLS_ERR_X509_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_X509_BAD_INPUT_DATA
.subsections_via_symbols
