	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_asn1_time_from_tm              ## -- Begin function asn1_time_from_tm
	.p2align	4, 0x90
_asn1_time_from_tm:                     ## @asn1_time_from_tm
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_V_ASN1_UNDEF@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_3
## %bb.1:
	movl	(%r14), %edi
	callq	_is_utc
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	_V_ASN1_UTCTIME@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_3:
	movl	%edx, %ebx
	movq	_V_ASN1_UTCTIME@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_9
## %bb.4:
	movl	(%r14), %edi
	callq	_is_utc
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_5
LBB0_9:
	movq	_V_ASN1_GENERALIZEDTIME@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_12
LBB0_5:
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_10:
	movq	_V_ASN1_GENERALIZEDTIME@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %ebx
LBB0_12:
	movq	%r15, %r12
	testq	%r15, %r15
	jne	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	callq	_ASN1_STRING_new
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_8
LBB0_14:
	movl	$20, %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_ASN1_STRING_set
	testl	%eax, %eax
	je	LBB0_6
## %bb.15:
	movl	%ebx, (%r12)
	movq	16(%r12), %rdi
	movq	_V_ASN1_GENERALIZEDTIME@GOTPCREL(%rip), %rax
	movl	(%r14), %ecx
	cmpl	(%rax), %ebx
	jne	LBB0_19
## %bb.16:
	addl	$1900, %ecx                     ## imm = 0x76C
	movq	24(%r14), %r8
	incq	%r8
	movl	16(%r14), %r9d
	movl	12(%r14), %r10d
	movl	4(%r14), %ebx
	movl	8(%r14), %eax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdx
	movl	$20, %esi
	jmp	LBB0_17
LBB0_6:
	cmpq	%r15, %r12
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_ASN1_STRING_free
LBB0_8:
	xorl	%r12d, %r12d
	jmp	LBB0_18
LBB0_19:
	movslq	%ecx, %rcx
	imulq	$1374389535, %rcx, %rax         ## imm = 0x51EB851F
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$37, %rax
	addl	%edx, %eax
	imull	$100, %eax, %eax
	subl	%eax, %ecx
	movq	24(%r14), %r8
	incq	%r8
	movl	16(%r14), %r9d
	movl	12(%r14), %r10d
	movl	4(%r14), %ebx
	movl	8(%r14), %eax
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdx
	movl	$20, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
LBB0_17:
	pushq	%rbx
	pushq	%rax
	pushq	%r10
	callq	_BIO_snprintf
	addq	$32, %rsp
	movq	%rax, 8(%r12)
LBB0_18:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V_ASN1_UNDEF,4,2               ## @V_ASN1_UNDEF
	.comm	_V_ASN1_UTCTIME,4,2             ## @V_ASN1_UTCTIME
	.comm	_V_ASN1_GENERALIZEDTIME,4,2     ## @V_ASN1_GENERALIZEDTIME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%04d%02d%02d%02d%02d%02dZ"

L_.str.1:                               ## @.str.1
	.asciz	"%02d%02d%02d%02d%02d%02dZ"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_asn1_time_from_tm              ; -- Begin function asn1_time_from_tm
	.p2align	2
_asn1_time_from_tm:                     ; @asn1_time_from_tm
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _V_ASN1_UNDEF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_ASN1_UNDEF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x20]
	bl	_is_utc
	cbz	x0, LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _V_ASN1_UTCTIME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V_ASN1_UTCTIME@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
	mov	x22, x2
Lloh5:
	adrp	x8, _V_ASN1_UTCTIME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V_ASN1_UTCTIME@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [x20]
	bl	_is_utc
	cbz	x0, LBB0_7
LBB0_5:
	mov	x19, x21
	cbnz	x21, LBB0_11
	b	LBB0_10
LBB0_6:
Lloh8:
	adrp	x8, _V_ASN1_GENERALIZEDTIME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V_ASN1_GENERALIZEDTIME@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w22
	b.eq	LBB0_5
LBB0_7:
	mov	x19, #0
	b	LBB0_14
LBB0_8:
Lloh11:
	adrp	x8, _V_ASN1_GENERALIZEDTIME@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V_ASN1_GENERALIZEDTIME@GOTPAGEOFF]
LBB0_9:
	ldr	w22, [x8]
	mov	x19, x21
	cbnz	x21, LBB0_11
LBB0_10:
	bl	_ASN1_STRING_new
	mov	x19, x0
	cbz	x0, LBB0_19
LBB0_11:
	mov	x0, x19
	mov	x1, #0
	mov	w2, #20
	bl	_ASN1_STRING_set
	cbz	w0, LBB0_14
; %bb.12:
	str	w22, [x19]
	ldr	x0, [x19, #16]
Lloh13:
	adrp	x8, _V_ASN1_GENERALIZEDTIME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V_ASN1_GENERALIZEDTIME@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x8]
	ldr	w8, [x20]
	cmp	w22, w9
	b.ne	LBB0_17
; %bb.13:
	add	w3, w8, #1900
	ldr	x8, [x20, #24]
	add	x4, x8, #1
	ldp	w6, w5, [x20, #12]
	ldp	w8, w7, [x20, #4]
	str	w8, [sp]
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_18
LBB0_14:
	cmp	x19, x21
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_ASN1_STRING_free
LBB0_16:
	mov	x19, #0
	b	LBB0_19
LBB0_17:
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w9, w9, w10
	mov	w10, #100
	msub	w3, w9, w10, w8
	ldr	x8, [x20, #24]
	add	x4, x8, #1
	ldp	w6, w5, [x20, #12]
	ldp	w8, w7, [x20, #4]
	str	w8, [sp]
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_18:
	mov	w1, #20
	bl	_BIO_snprintf
	str	x0, [x19, #8]
LBB0_19:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_V_ASN1_UNDEF,4,2               ; @V_ASN1_UNDEF
	.comm	_V_ASN1_UTCTIME,4,2             ; @V_ASN1_UTCTIME
	.comm	_V_ASN1_GENERALIZEDTIME,4,2     ; @V_ASN1_GENERALIZEDTIME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%04d%02d%02d%02d%02d%02dZ"

l_.str.1:                               ; @.str.1
	.asciz	"%02d%02d%02d%02d%02d%02dZ"

.subsections_via_symbols
