	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__heim_time2generalizedtime     ## -- Begin function _heim_time2generalizedtime
	.p2align	4, 0x90
__heim_time2generalizedtime:            ## @_heim_time2generalizedtime
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r13
	movl	%edi, %r12d
	xorl	%ebx, %ebx
	testl	%edx, %edx
	setne	%bl
	leaq	(%rbx,%rbx), %r14
	addq	$14, %r14
	movq	%r14, %rdi
	callq	_malloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	(%rbx,%rbx), %rax
	addq	$13, %rax
	movq	%rax, (%r13)
	leaq	-64(%rbp), %rsi
	movl	%r12d, %edi
	callq	__der_gmtime
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	8(%r13), %rdi
	movl	-64(%rbp), %ecx
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:
	addl	$1900, %ecx                     ## imm = 0x76C
	movl	-60(%rbp), %r8d
	movl	-56(%rbp), %r9d
	incl	%r8d
	movl	-44(%rbp), %r10d
	movl	-48(%rbp), %ebx
	movl	-52(%rbp), %eax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_3:
	movq	_ASN1_BAD_TIMEFORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_6:
	movslq	%ecx, %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$37, %rax
	addl	%edx, %eax
	imull	$100, %eax, %eax
	subl	%eax, %ecx
	movl	-60(%rbp), %r8d
	movl	-56(%rbp), %r9d
	incl	%r8d
	movl	-44(%rbp), %r10d
	movl	-48(%rbp), %ebx
	movl	-52(%rbp), %eax
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdx
LBB0_7:
	movq	%r14, %rsi
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	callq	_snprintf
	addq	$32, %rsp
	xorl	%eax, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ASN1_BAD_TIMEFORMAT,4,2        ## @ASN1_BAD_TIMEFORMAT
	.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	__heim_time2generalizedtime     ; -- Begin function _heim_time2generalizedtime
	.p2align	2
__heim_time2generalizedtime:            ; @_heim_time2generalizedtime
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x2
	mov	x21, x1
	mov	x22, x0
	cmp	w2, #0
	mov	w8, #15
	mov	w9, #13
	csel	x23, x9, x8, eq
	add	x19, x23, #1
	mov	x0, x19
	bl	_malloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_4
; %bb.1:
	str	x23, [x21]
	add	x1, sp, #8
	mov	x0, x22
	bl	__der_gmtime
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x21, #8]
	ldr	w8, [sp, #8]
	cbz	w20, LBB0_6
; %bb.3:
	add	w3, w8, #1900
	ldp	w8, w5, [sp, #12]
	add	w4, w8, #1
	ldp	w7, w6, [sp, #24]
	ldr	w8, [sp, #20]
	str	w8, [sp]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_7
LBB0_4:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_5:
Lloh5:
	adrp	x8, _ASN1_BAD_TIMEFORMAT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ASN1_BAD_TIMEFORMAT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_6:
	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
	ldp	w8, w5, [sp, #12]
	add	w4, w8, #1
	ldp	w7, w6, [sp, #24]
	ldr	w8, [sp, #20]
	str	w8, [sp]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_7:
	mov	x1, x19
	bl	_snprintf
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ASN1_BAD_TIMEFORMAT,4,2        ; @ASN1_BAD_TIMEFORMAT
	.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
