	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x509_write_time
_x509_write_time:                       ## @x509_write_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	%rsi, %r14
	movq	%rdi, %rbx
	cmpb	$50, (%rdx)
	jne	LBB0_4
## %bb.1:
	cmpb	$48, 1(%rdx)
	jne	LBB0_4
## %bb.2:
	cmpb	$52, 2(%rdx)
	jg	LBB0_4
## %bb.3:
	addq	$2, %rdx
	addq	$-2, %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mbedtls_asn1_write_raw_buffer
	movq	_MBEDTLS_ASN1_UTC_TIME@GOTPCREL(%rip), %r15
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mbedtls_asn1_write_raw_buffer
	movq	_MBEDTLS_ASN1_GENERALIZED_TIME@GOTPCREL(%rip), %r15
LBB0_5:
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_MBEDTLS_ASN1_CHK_ADD
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_mbedtls_asn1_write_len
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_MBEDTLS_ASN1_CHK_ADD
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mbedtls_asn1_write_tag
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_MBEDTLS_ASN1_CHK_ADD
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ASN1_UTC_TIME,4,2      ## @MBEDTLS_ASN1_UTC_TIME
	.comm	_MBEDTLS_ASN1_GENERALIZED_TIME,4,2 ## @MBEDTLS_ASN1_GENERALIZED_TIME
	.no_dead_strip	_x509_write_time
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x509_write_time
_x509_write_time:                       ; @x509_write_time
	.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	x19, x1
	mov	x20, x0
	ldrb	w8, [x2]
	cmp	w8, #50
	b.ne	LBB0_4
; %bb.1:
	ldrb	w8, [x2, #1]
	cmp	w8, #48
	b.ne	LBB0_4
; %bb.2:
	mov	x8, x2
	ldrsb	w9, [x8, #2]!
	cmp	w9, #52
	b.gt	LBB0_4
; %bb.3:
	sub	x3, x3, #2
	mov	x0, x20
	mov	x1, x19
	mov	x2, x8
	bl	_mbedtls_asn1_write_raw_buffer
	mov	x1, x0
Lloh0:
	adrp	x21, _MBEDTLS_ASN1_UTC_TIME@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MBEDTLS_ASN1_UTC_TIME@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_mbedtls_asn1_write_raw_buffer
	mov	x1, x0
Lloh2:
	adrp	x21, _MBEDTLS_ASN1_GENERALIZED_TIME@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MBEDTLS_ASN1_GENERALIZED_TIME@GOTPAGEOFF]
LBB0_5:
	mov	x0, #0
	bl	_MBEDTLS_ASN1_CHK_ADD
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	bl	_mbedtls_asn1_write_len
	mov	x1, x0
	mov	x0, #0
	bl	_MBEDTLS_ASN1_CHK_ADD
	ldr	w2, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_mbedtls_asn1_write_tag
	mov	x1, x0
	mov	x0, #0
	bl	_MBEDTLS_ASN1_CHK_ADD
	mov	w0, #0
	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 AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ASN1_UTC_TIME,4,2      ; @MBEDTLS_ASN1_UTC_TIME
	.comm	_MBEDTLS_ASN1_GENERALIZED_TIME,4,2 ; @MBEDTLS_ASN1_GENERALIZED_TIME
	.no_dead_strip	_x509_write_time
.subsections_via_symbols
