	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_time
_convert_time:                          ## @convert_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	%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	16(%rbp), %r14d
	testl	%r14d, %r14d
	je	LBB0_1
## %bb.2:
	leaq	16(%rbp), %rax
	movl	4(%rax), %r13d
	testl	%r13d, %r13d
	cmovnel	%r13d, %edi
	callq	_time_from_year
	movl	%eax, %r12d
	decl	%r14d
	movl	%eax, %edi
	callq	_in_leap_year
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_day_from_month
	movq	%rax, %r15
	movq	_MS_PER_DAY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	imull	%ebx, %r15d
	addl	%r12d, %r15d
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.5:
	leaq	16(%rbp), %rdx
	imull	12(%rdx), %ebx
	addl	%r15d, %ebx
	jmp	LBB0_6
LBB0_1:
	movq	_NAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_3:
	leaq	16(%rbp), %r12
	movl	8(%r12), %ebx
	movl	%r15d, %edi
	movq	%rax, %r13
	callq	_week_day
	subl	%eax, %ebx
	leal	7(%rbx), %eax
	testl	%ebx, %ebx
	cmovnsl	%ebx, %eax
	movl	12(%r12), %ecx
	leal	(,%rcx,8), %edx
	subl	%ecx, %edx
	leal	(%rdx,%rax), %ebx
	addl	$-7, %ebx
	imull	(%r13), %ebx
	addl	%r15d, %ebx
	movl	%ebx, %edi
	callq	_month_from_time
	cmpl	%r14d, %eax
	movq	%r12, %rdx
	je	LBB0_6
## %bb.4:
	movq	_MS_PER_DAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(,%rax,8), %ecx
	subl	%ecx, %eax
	addl	%ebx, %eax
	movl	%eax, %ebx
LBB0_6:
	movq	_MS_PER_HOUR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	imull	16(%rdx), %ecx
	addl	%ebx, %ecx
	movq	_MS_PER_MINUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	20(%rdx), %eax
	addl	%ecx, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAN,4,2                        ## @NAN
	.comm	_MS_PER_DAY,4,2                 ## @MS_PER_DAY
	.comm	_MS_PER_HOUR,4,2                ## @MS_PER_HOUR
	.comm	_MS_PER_MINUTE,4,2              ## @MS_PER_MINUTE
	.no_dead_strip	_convert_time
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_time
_convert_time:                          ; @convert_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
	ldr	w8, [x1]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x1
	ldr	w8, [x1, #4]
	cmp	w8, #0
	csel	w0, w0, w8, eq
	bl	_time_from_year
	mov	x20, x0
	ldr	w8, [x19]
	sub	w21, w8, #1
	bl	_in_leap_year
	mov	x1, x0
	mov	x0, x21
	bl	_day_from_month
Lloh0:
	adrp	x21, _MS_PER_DAY@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MS_PER_DAY@GOTPAGEOFF]
	ldr	w8, [x21]
	madd	w20, w8, w0, w20
	ldr	w9, [x19, #4]
	cbz	w9, LBB0_4
; %bb.2:
	ldr	w9, [x19, #12]
	madd	w20, w9, w8, w20
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x8, _NAN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NAN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_4:
	ldr	w22, [x19, #8]
	mov	x0, x20
	bl	_week_day
	sub	w8, w22, w0
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	ldr	w9, [x21]
	ldr	w10, [x19, #12]
	lsl	w11, w10, #3
	sub	w10, w11, w10
	add	w8, w10, w8
	sub	w8, w8, #7
	madd	w20, w8, w9, w20
	mov	x0, x20
	bl	_month_from_time
	ldr	w8, [x19]
	sub	w8, w8, #1
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x21]
	sub	w8, w8, w8, lsl #3
	add	w20, w8, w20
LBB0_6:
Lloh5:
	adrp	x8, _MS_PER_HOUR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MS_PER_HOUR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldp	w9, w10, [x19, #16]
	madd	w8, w8, w9, w20
Lloh8:
	adrp	x9, _MS_PER_MINUTE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MS_PER_MINUTE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	madd	w0, w9, w10, w8
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NAN,4,2                        ; @NAN
	.comm	_MS_PER_DAY,4,2                 ; @MS_PER_DAY
	.comm	_MS_PER_HOUR,4,2                ; @MS_PER_HOUR
	.comm	_MS_PER_MINUTE,4,2              ; @MS_PER_MINUTE
	.no_dead_strip	_convert_time
.subsections_via_symbols
