	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __wceex_mktime_internal
___wceex_mktime_internal:               ## @__wceex_mktime_internal
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r9d
	movl	$-1, %eax
	cmpl	$11, %r9d
	ja	LBB0_21
## %bb.1:
	movq	%rdi, %r15
	movl	4(%rdi), %ecx
	movq	_EPOCH_YEAR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	movq	_TM_YEAR_BASE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	%ebx, %edx
	subl	%edi, %edx
	cmpl	%edx, %ecx
	jl	LBB0_21
## %bb.2:
	movl	%esi, %r14d
	addl	%ecx, %edi
	xorl	%r12d, %r12d
	cmpl	%edi, %ebx
	jge	LBB0_6
## %bb.3:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_IS_LEAP_YEAR
	addl	%eax, %r12d
	addl	$365, %r12d                     ## imm = 0x16D
	incl	%ebx
	movl	(%r13), %edi
	addl	4(%r15), %edi
	cmpl	%edi, %ebx
	jl	LBB0_4
## %bb.5:
	movl	(%r15), %r9d
LBB0_6:
	testl	%r9d, %r9d
	jle	LBB0_7
## %bb.8:
	movq	_MONTHDAYS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r9d, %edx
	cmpl	$4, %r9d
	jae	LBB0_10
## %bb.9:
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	jmp	LBB0_17
LBB0_7:
	movl	12(%r15), %eax
	movl	%eax, 8(%r15)
	jmp	LBB0_20
LBB0_10:
	movl	%edx, %esi
	andl	$-4, %esi
	leaq	-4(%rsi), %rcx
	movq	%rcx, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.12:
	movq	%r8, %rcx
	andq	$-2, %rcx
	pxor	%xmm0, %xmm0
	xorl	%ebx, %ebx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rax,%rbx,8), %xmm2
	movdqu	16(%rax,%rbx,8), %xmm3
	movdqu	32(%rax,%rbx,8), %xmm4
	movdqu	48(%rax,%rbx,8), %xmm5
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm0, %xmm2
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	paddd	%xmm1, %xmm3
	pshufd	$232, %xmm4, %xmm0              ## xmm0 = xmm4[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm5, %xmm1              ## xmm1 = xmm5[0,2,2,3]
	paddd	%xmm3, %xmm1
	addq	$8, %rbx
	addq	$-2, %rcx
	jne	LBB0_13
## %bb.14:
	testb	$1, %r8b
	je	LBB0_16
LBB0_15:
	movdqu	(%rax,%rbx,8), %xmm2
	movdqu	16(%rax,%rbx,8), %xmm3
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm3, %xmm2              ## xmm2 = xmm3[0,2,2,3]
	paddd	%xmm2, %xmm1
LBB0_16:
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %ecx
	cmpq	%rdx, %rsi
	je	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rax,%rsi,8), %ecx
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_17
LBB0_18:
	addl	%ecx, %r12d
	movl	12(%r15), %eax
	addl	%eax, %ecx
	movl	%ecx, 8(%r15)
	cmpl	$2, %r9d
	jl	LBB0_20
## %bb.19:
	callq	_IS_LEAP_YEAR
	cmpq	$1, %rax
	sbbl	$-1, %r12d
	movl	12(%r15), %eax
LBB0_20:
	addl	%r12d, %eax
	leal	(%rax,%rax,2), %eax
	shll	$3, %eax
	addl	16(%r15), %eax
	imull	$60, %eax, %eax
	addl	20(%r15), %eax
	imull	$60, %eax, %eax
	addl	24(%r15), %r14d
	addl	%r14d, %eax
	addl	$-86400, %eax                   ## imm = 0xFFFEAE80
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	pxor	%xmm0, %xmm0
	xorl	%ebx, %ebx
	pxor	%xmm1, %xmm1
	testb	$1, %r8b
	jne	LBB0_15
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EPOCH_YEAR,4,2                 ## @EPOCH_YEAR
	.comm	_TM_YEAR_BASE,4,2               ## @TM_YEAR_BASE
	.comm	_MONTHDAYS,8,3                  ## @MONTHDAYS
	.no_dead_strip	___wceex_mktime_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __wceex_mktime_internal
___wceex_mktime_internal:               ; @__wceex_mktime_internal
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x0]
	cmp	w8, #11
	b.hi	LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w9, [x0, #4]
Lloh0:
	adrp	x10, _EPOCH_YEAR@GOTPAGE
Lloh1:
	ldr	x10, [x10, _EPOCH_YEAR@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x10]
Lloh3:
	adrp	x23, _TM_YEAR_BASE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _TM_YEAR_BASE@GOTPAGEOFF]
	ldr	w10, [x23]
	sub	w11, w21, w10
	cmp	w9, w11
	b.ge	LBB0_3
LBB0_2:
	mov	w0, #-1
	b	LBB0_19
LBB0_3:
	mov	x19, x1
	add	w0, w10, w9
	cmp	w21, w0
	b.ge	LBB0_8
; %bb.4:
	mov	w22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_IS_LEAP_YEAR
	add	w8, w22, w0
	add	w22, w8, #365
	add	w21, w21, #1
	ldr	w8, [x20, #4]
	ldr	w9, [x23]
	add	w0, w9, w8
	cmp	w21, w0
	b.lt	LBB0_5
; %bb.6:
	ldr	w8, [x20]
	cmp	w8, #0
	b.gt	LBB0_9
LBB0_7:
	ldr	w9, [x20, #12]
	str	w9, [x20, #8]
	b	LBB0_18
LBB0_8:
	mov	w22, #0
	cmp	w8, #0
	b.le	LBB0_7
LBB0_9:
Lloh5:
	adrp	x9, _MONTHDAYS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MONTHDAYS@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x9]
	mov	w9, w8
	cmp	w8, #8
	b.hs	LBB0_11
; %bb.10:
	mov	x11, #0
	mov	w12, #0
	b	LBB0_14
LBB0_11:
	and	x11, x9, #0xfffffff8
	movi.2d	v0, #0000000000000000
	add	x12, x10, #32
	mov	x13, x11
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x12, #-32]
	ldp	q6, q7, [x12], #64
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	subs	x13, x13, #8
	b.ne	LBB0_12
; %bb.13:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w12, s0
	cmp	x11, x9
	b.eq	LBB0_16
LBB0_14:
	add	x10, x10, x11, lsl #3
	sub	x9, x9, x11
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10], #8
	add	w12, w12, w11
	subs	x9, x9, #1
	b.ne	LBB0_15
LBB0_16:
	add	w22, w12, w22
	ldr	w9, [x20, #12]
	add	w10, w9, w12
	str	w10, [x20, #8]
	cmp	w8, #2
	b.lt	LBB0_18
; %bb.17:
	bl	_IS_LEAP_YEAR
	cmp	x0, #0
	cinc	w22, w22, ne
	ldr	w9, [x20, #12]
LBB0_18:
	add	w8, w9, w22
	mov	w9, #24
	ldp	w10, w11, [x20, #16]
	madd	w8, w8, w9, w10
	mov	w9, #60
	madd	w8, w8, w9, w11
	sub	w8, w8, #1440
	ldr	w10, [x20, #24]
	add	w10, w10, w19
	madd	w0, w8, w9, w10
LBB0_19:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EPOCH_YEAR,4,2                 ; @EPOCH_YEAR
	.comm	_TM_YEAR_BASE,4,2               ; @TM_YEAR_BASE
	.comm	_MONTHDAYS,8,3                  ; @MONTHDAYS
	.no_dead_strip	___wceex_mktime_internal
.subsections_via_symbols
