	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_openssl_asn1_time_to_time_t
_php_openssl_asn1_time_to_time_t:       ## @php_openssl_asn1_time_to_time_t
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_ASN1_STRING_type
	movq	_V_ASN1_UTCTIME@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_ASN1_STRING_type
	movq	_V_ASN1_GENERALIZEDTIME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_2:
	movq	%r12, %rdi
	callq	_ASN1_STRING_length
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_ASN1_STRING_get0_data
	movq	%rax, %rdi
	callq	_strlen
	cmpq	%rax, %rbx
	jne	LBB0_8
## %bb.3:
	cmpq	$12, %rbx
	ja	LBB0_5
## %bb.4:
	cmpq	$11, %rbx
	jne	LBB0_7
LBB0_5:
	movq	%r12, %rdi
	callq	_ASN1_STRING_type
	movq	_V_ASN1_GENERALIZEDTIME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.6:
	cmpq	$14, %rbx
	ja	LBB0_13
LBB0_7:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %ecx
	leaq	L_.str.2(%rip), %rdx
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_php_error_docref
	jmp	LBB0_11
LBB0_8:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_10
LBB0_9:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_10:
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_php_error_docref
LBB0_11:
	movq	$-1, %rbx
LBB0_12:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r12, %rdi
	callq	_ASN1_STRING_get0_data
	movq	%rax, %rdi
	callq	_estrdup
	movq	%rax, %r14
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	leaq	(%r14,%rbx), %r15
	addq	$-3, %r15
	cmpq	$11, %rbx
	jne	LBB0_15
## %bb.14:
	movl	$0, -80(%rbp)
	jmp	LBB0_16
LBB0_15:
	movq	%r15, %rdi
	callq	_atoi
	movl	%eax, -80(%rbp)
	movb	$0, (%r15)
	addq	$-2, %r15
LBB0_16:
	movq	%r15, %rdi
	callq	_atoi
	movl	%eax, -76(%rbp)
	movb	$0, (%r15)
	leaq	-2(%r15), %rdi
	callq	_atoi
	movl	%eax, -72(%rbp)
	movb	$0, -2(%r15)
	leaq	-4(%r15), %rdi
	callq	_atoi
	movl	%eax, -68(%rbp)
	movb	$0, -4(%r15)
	leaq	-6(%r15), %rdi
	callq	_atoi
	decl	%eax
	movl	%eax, -64(%rbp)
	movb	$0, -6(%r15)
	movq	%r12, %rdi
	callq	_ASN1_STRING_type
	cmpq	(%r13), %rax
	jne	LBB0_19
## %bb.17:
	addq	$-8, %r15
	movq	%r15, %rdi
	callq	_atoi
	movl	%eax, -60(%rbp)
	cmpl	$67, %eax
	jg	LBB0_22
## %bb.18:
	addl	$100, %eax
	jmp	LBB0_21
LBB0_19:
	movq	%r12, %rdi
	callq	_ASN1_STRING_type
	movq	_V_ASN1_GENERALIZEDTIME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.20:
	addq	$-10, %r15
	movq	%r15, %rdi
	callq	_atoi
	addl	$-1900, %eax                    ## imm = 0xF894
LBB0_21:
	movl	%eax, -60(%rbp)
LBB0_22:
	movl	$-1, -56(%rbp)
	leaq	-80(%rbp), %rdi
	callq	_mktime
	movq	%rax, %rbx
	movq	_timezone@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, -56(%rbp)
	leaq	-3600(%rax), %rcx
	cmoveq	%rax, %rcx
	subq	%rcx, %rbx
	movq	%r14, %rdi
	callq	_efree
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_V_ASN1_UTCTIME,8,3             ## @V_ASN1_UTCTIME
	.comm	_V_ASN1_GENERALIZEDTIME,8,3     ## @V_ASN1_GENERALIZEDTIME
	.comm	_E_WARNING,4,2                  ## @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"illegal ASN1 data type for timestamp"

L_.str.1:                               ## @.str.1
	.asciz	"illegal length in timestamp"

L_.str.2:                               ## @.str.2
	.asciz	"unable to parse time string %s correctly"

	.comm	_timezone,8,3                   ## @timezone
	.no_dead_strip	_php_openssl_asn1_time_to_time_t
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_openssl_asn1_time_to_time_t
_php_openssl_asn1_time_to_time_t:       ; @php_openssl_asn1_time_to_time_t
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	bl	_ASN1_STRING_type
Lloh0:
	adrp	x23, _V_ASN1_UTCTIME@GOTPAGE
Lloh1:
	ldr	x23, [x23, _V_ASN1_UTCTIME@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ASN1_STRING_type
Lloh2:
	adrp	x8, _V_ASN1_GENERALIZEDTIME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V_ASN1_GENERALIZEDTIME@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
LBB0_2:
	mov	x0, x19
	bl	_ASN1_STRING_length
	mov	x22, x0
	mov	x0, x19
	bl	_ASN1_STRING_get0_data
	bl	_strlen
	cmp	x22, x0
	b.ne	LBB0_8
; %bb.3:
	cmp	x22, #12
	b.hi	LBB0_5
; %bb.4:
	cmp	x22, #11
	b.ne	LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_ASN1_STRING_type
Lloh5:
	adrp	x24, _V_ASN1_GENERALIZEDTIME@GOTPAGE
Lloh6:
	ldr	x24, [x24, _V_ASN1_GENERALIZEDTIME@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	ccmp	x22, #14, #2, eq
	b.ls	LBB0_9
; %bb.6:
	mov	x0, x19
	bl	_ASN1_STRING_get0_data
	bl	_estrdup
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	add	x8, x20, x22
	sub	x21, x8, #3
	cmp	x22, #11
	b.ne	LBB0_13
; %bb.7:
	str	wzr, [sp, #8]
	b	LBB0_14
LBB0_8:
Lloh7:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh12:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w8, [x19]
	str	x8, [sp]
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh17:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh18:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
LBB0_11:
	mov	x0, #0
	bl	_php_error_docref
	mov	x19, #-1
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	mov	x0, x21
	bl	_atoi
	str	w0, [sp, #8]
	strb	wzr, [x21], #-2
LBB0_14:
	mov	x0, x21
	bl	_atoi
	str	w0, [sp, #12]
	strb	wzr, [x21]
	sub	x0, x21, #2
	bl	_atoi
	str	w0, [sp, #16]
	sturb	wzr, [x21, #-2]
	sub	x0, x21, #4
	bl	_atoi
	str	w0, [sp, #20]
	sturb	wzr, [x21, #-4]
	sub	x0, x21, #6
	bl	_atoi
	sub	w8, w0, #1
	str	w8, [sp, #24]
	sturb	wzr, [x21, #-6]
	mov	x0, x19
	bl	_ASN1_STRING_type
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.15:
	sub	x0, x21, #8
	bl	_atoi
	str	w0, [sp, #28]
	cmp	w0, #67
	b.gt	LBB0_20
; %bb.16:
	add	w8, w0, #100
	b	LBB0_19
LBB0_17:
	mov	x0, x19
	bl	_ASN1_STRING_type
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.18:
	sub	x0, x21, #10
	bl	_atoi
	sub	w8, w0, #1900
LBB0_19:
	str	w8, [sp, #28]
LBB0_20:
	mov	w8, #-1
	str	w8, [sp, #32]
	add	x0, sp, #8
	bl	_mktime
Lloh22:
	adrp	x8, _timezone@GOTPAGE
Lloh23:
	ldr	x8, [x8, _timezone@GOTPAGEOFF]
	ldr	w9, [sp, #32]
Lloh24:
	ldr	x8, [x8]
	sub	x10, x8, #3600
	cmp	w9, #0
	csel	x8, x8, x10, eq
	sub	x19, x0, x8
	mov	x0, x20
	bl	_efree
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_V_ASN1_UTCTIME,8,3             ; @V_ASN1_UTCTIME
	.comm	_V_ASN1_GENERALIZEDTIME,8,3     ; @V_ASN1_GENERALIZEDTIME
	.comm	_E_WARNING,4,2                  ; @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"illegal ASN1 data type for timestamp"

l_.str.1:                               ; @.str.1
	.asciz	"illegal length in timestamp"

l_.str.2:                               ; @.str.2
	.asciz	"unable to parse time string %s correctly"

	.comm	_timezone,8,3                   ; @timezone
	.no_dead_strip	_php_openssl_asn1_time_to_time_t
.subsections_via_symbols
