	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function OS_getSystemDate
_OS_getSystemDate:                      ## @OS_getSystemDate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$96, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leaq	-104(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	movl	-100(%rbp), %eax
	movl	%eax, -92(%rbp)
	leaq	-92(%rbp), %rdi
	leaq	-88(%rbp), %rsi
	callq	_localtime_r
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movslq	-104(%rbp), %rax
	imulq	$351843721, %rax, %rdx          ## imm = 0x14F8B589
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$45, %rdx
	addl	%eax, %edx
	leaq	-80(%rbp), %r14
	leaq	-88(%rbp), %rsi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_make_date_time
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_string_get
	jmp	LBB0_6
LBB0_1:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	callq	_syslog
	movq	_SNMP_ERR_GENERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$96, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gettimeofday failed: %m"

	.comm	_SNMP_ERR_GENERR,4,2            ## @SNMP_ERR_GENERR
L_.str.1:                               ## @.str.1
	.asciz	"localtime_r() failed: %m "

	.no_dead_strip	_OS_getSystemDate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function OS_getSystemDate
_OS_getSystemDate:                      ; @OS_getSystemDate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	add	x0, sp, #8
	mov	x1, #0
	bl	_gettimeofday
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldr	w8, [sp, #12]
	str	w8, [sp, #20]
	add	x0, sp, #20
	add	x1, sp, #24
	bl	_localtime_r
	cbz	x0, LBB0_4
; %bb.2:
	ldrsw	x8, [sp, #8]
	mov	w9, #46473
	movk	w9, #5368, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #45
	add	w2, w8, w9
	add	x0, sp, #28
	add	x1, sp, #24
	bl	_make_date_time
	mov	x2, x0
	add	x1, sp, #28
	mov	x0, x19
	bl	_string_get
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	bl	_syslog
Lloh13:
	adrp	x8, _SNMP_ERR_GENERR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SNMP_ERR_GENERR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
LBB0_6:
	ldur	x8, [x29, #-24]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gettimeofday failed: %m"

	.comm	_SNMP_ERR_GENERR,4,2            ; @SNMP_ERR_GENERR
l_.str.1:                               ; @.str.1
	.asciz	"localtime_r() failed: %m "

	.no_dead_strip	_OS_getSystemDate
.subsections_via_symbols
