	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_to_efi_time                    ## -- Begin function to_efi_time
	.p2align	4, 0x90
_to_efi_time:                           ## @to_efi_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	testl	%esi, %esi
	js	LBB0_15
## %bb.1:
	movl	%esi, %ebx
	movl	$1970, (%r14)                   ## imm = 0x7B2
	movl	$1970, %edi                     ## imm = 0x7B2
	callq	_isleap
	movq	_CumulativeDays@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	cltq
	movq	(%rcx,%rax,8), %rcx
	movq	_SECSPERDAY@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	52(%rcx), %edx
	imull	%eax, %edx
	cmpl	%ebx, %edx
	jge	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	subl	%edx, %ebx
	movl	(%r14), %edi
	incl	%edi
	movl	%edi, (%r14)
	callq	_isleap
	movq	(%r15), %rcx
	cltq
	movq	(%rcx,%rax,8), %rcx
	movl	(%r12), %eax
	movl	52(%rcx), %edx
	imull	%eax, %edx
	cmpl	%edx, %ebx
	jg	LBB0_2
LBB0_3:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, 4(%r14)
	movl	52(%rcx), %esi
	imull	%eax, %esi
	incq	%rdx
	cmpl	%esi, %ebx
	jg	LBB0_4
## %bb.5:
	movl	-8(%rcx,%rdx,4), %ecx
	imull	%eax, %ecx
	subl	%ecx, %ebx
	xorl	%ecx, %ecx
	cmpl	%eax, %ebx
	jle	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	subl	%eax, %ebx
	incq	%rcx
	cmpl	%eax, %ebx
	jg	LBB0_6
LBB0_8:
	movq	%rcx, 56(%r14)
	movq	_SECSPERHOUR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	cmpl	%ecx, %ebx
	jle	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	subl	%ecx, %ebx
	incq	%rax
	cmpl	%ecx, %ebx
	jg	LBB0_9
LBB0_11:
	movq	%rax, 48(%r14)
	cmpl	$61, %ebx
	jl	LBB0_12
## %bb.13:
	cmpl	$120, %ebx
	movl	$120, %eax
	cmovll	%ebx, %eax
	negl	%eax
	leal	(%rbx,%rax), %ecx
	addl	$59, %ecx
	movl	$2290649225, %eax               ## imm = 0x88888889
	imulq	%rcx, %rax
	shrq	$37, %rax
	imull	$60, %eax, %edx
	movl	%ecx, %esi
	subl	%edx, %esi
	subl	%ecx, %esi
	addl	%esi, %ebx
	addl	$-60, %ebx
	incl	%eax
	jmp	LBB0_14
LBB0_15:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_12:
	xorl	%eax, %eax
LBB0_14:
	movq	%rax, 40(%r14)
	movl	%ebx, 8(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	movq	$0, 32(%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CumulativeDays,8,3             ## @CumulativeDays
	.comm	_SECSPERDAY,4,2                 ## @SECSPERDAY
	.comm	_SECSPERHOUR,4,2                ## @SECSPERHOUR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_to_efi_time                    ; -- Begin function to_efi_time
	.p2align	2
_to_efi_time:                           ; @to_efi_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, x0
	tbnz	w1, #31, LBB0_8
; %bb.1:
	mov	x20, x1
	mov	w8, #1970
	str	w8, [x19]
	mov	w0, #1970
	bl	_isleap
Lloh0:
	adrp	x21, _CumulativeDays@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CumulativeDays@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x8, [x8, w0, sxtw #3]
	ldr	w10, [x8, #52]
Lloh2:
	adrp	x22, _SECSPERDAY@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SECSPERDAY@GOTPAGEOFF]
	ldr	w9, [x22]
	mul	w10, w9, w10
	cmp	w10, w20
	b.ge	LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w20, w20, w10
	ldr	w8, [x19]
	add	w0, w8, #1
	str	w0, [x19]
	bl	_isleap
	ldr	x8, [x21]
	ldr	x8, [x8, w0, sxtw #3]
	ldr	w10, [x8, #52]
	ldr	w9, [x22]
	mul	w10, w9, w10
	cmp	w20, w10
	b.gt	LBB0_2
LBB0_3:
	mov	x10, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	w10, [x19, #4]
	ldr	w11, [x8, #52]
	mul	w11, w9, w11
	add	x10, x10, #1
	cmp	w20, w11
	b.gt	LBB0_4
; %bb.5:
	add	x8, x8, x10, lsl #2
	ldur	w8, [x8, #-8]
	msub	w8, w8, w9, w20
	cmp	w8, w9
	b.le	LBB0_9
; %bb.6:
	mov	x10, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x10, #1
	sub	w8, w8, w9
	cmp	w8, w9
	b.gt	LBB0_7
	b	LBB0_10
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #64
	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
	b	_memset
LBB0_9:
	mov	x10, #0
LBB0_10:
	str	x10, [x19, #56]
Lloh4:
	adrp	x9, _SECSPERHOUR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SECSPERHOUR@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_13
; %bb.11:
	mov	x10, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x10, x10, #1
	sub	w8, w8, w9
	cmp	w8, w9
	b.gt	LBB0_12
	b	LBB0_14
LBB0_13:
	mov	x10, #0
LBB0_14:
	str	x10, [x19, #48]
	cmp	w8, #61
	b.lt	LBB0_16
; %bb.15:
	mov	w9, #120
	cmp	w8, #120
	csel	w9, w8, w9, lt
	sub	w9, w8, w9
	add	w9, w9, #59
	mov	w10, #34953
	movk	w10, #34952, lsl #16
	umull	x10, w9, w10
	lsr	x10, x10, #37
	mov	w11, #60
	msub	w11, w10, w11, w9
	sub	w9, w11, w9
	add	w8, w8, w9
	sub	w8, w8, #60
	add	w9, w10, #1
	b	LBB0_17
LBB0_16:
	mov	x9, #0
LBB0_17:
	str	w8, [x19, #8]
	stp	xzr, x9, [x19, #32]
	stp	xzr, xzr, [x19, #16]
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CumulativeDays,8,3             ; @CumulativeDays
	.comm	_SECSPERDAY,4,2                 ; @SECSPERDAY
	.comm	_SECSPERHOUR,4,2                ; @SECSPERHOUR
.subsections_via_symbols
