	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grab_date
_grab_date:                             ## @grab_date
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	leaq	L_.str(%rip), %rsi
	callq	_strstr
	movq	%rax, %rbx
	movq	_DATE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	%r15, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	incq	%rax
	leaq	-32(%rbp), %rsi
	movq	%rax, %rdi
	callq	_parse_date_format
LBB0_2:
	leaq	L_.str.1(%rip), %r15
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.3:
	addq	$2, %rbx
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_parse_timestamp
	movq	%rax, %rbx
	movq	_TIME_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_6
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_6:
	movq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtol
	movq	_LONG_MIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	_LONG_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
LBB0_8:
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_ERANGE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_5
LBB0_10:
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_show_date
	movq	%rax, %r15
LBB0_11:
	movq	%r15, %rdi
	callq	_xstrdup
	movq	%rax, 8(%r14)
	movq	%rbx, (%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"> "

	.comm	_DATE_NORMAL,4,2                ## @DATE_NORMAL
	.comm	_TIME_MAX,8,3                   ## @TIME_MAX
	.comm	_LONG_MIN,8,3                   ## @LONG_MIN
	.comm	_LONG_MAX,8,3                   ## @LONG_MAX
	.comm	_errno,8,3                      ## @errno
	.comm	_ERANGE,8,3                     ## @ERANGE
L_.str.1:                               ## @.str.1
	.space	1

	.no_dead_strip	_grab_date
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grab_date
_grab_date:                             ; @grab_date
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x19, x1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strstr
	mov	x20, x0
Lloh2:
	adrp	x8, _DATE_NORMAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DATE_NORMAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x21
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x0, #1
	mov	x1, sp
	bl	_parse_date_format
LBB0_2:
	cbz	x20, LBB0_7
; %bb.3:
	add	x0, x20, #2
	add	x1, sp, #8
	mov	w2, #10
	bl	_parse_timestamp
Lloh5:
	adrp	x8, _TIME_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TIME_MAX@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.4:
	mov	x20, x0
	ldr	x0, [sp, #8]
	mov	x1, #0
	mov	w2, #10
	bl	_strtol
	mov	x1, x0
Lloh8:
	adrp	x8, _LONG_MIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LONG_MIN@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _LONG_MAX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _LONG_MAX@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x1, x9, #4, ne
	b.ne	LBB0_8
; %bb.5:
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _ERANGE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ERANGE@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_6:
	mov	x20, #0
LBB0_7:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
	mov	x2, sp
	mov	x0, x20
	bl	_show_date
LBB0_9:
	bl	_xstrdup
	stp	x20, x0, [x19]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"> "

	.comm	_DATE_NORMAL,4,2                ; @DATE_NORMAL
	.comm	_TIME_MAX,8,3                   ; @TIME_MAX
	.comm	_LONG_MIN,8,3                   ; @LONG_MIN
	.comm	_LONG_MAX,8,3                   ; @LONG_MAX
	.comm	_errno,8,3                      ; @errno
	.comm	_ERANGE,8,3                     ; @ERANGE
l_.str.1:                               ; @.str.1
	.space	1

	.no_dead_strip	_grab_date
.subsections_via_symbols
