	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jerry_port_get_current_time    ## -- Begin function jerry_port_get_current_time
	.p2align	4, 0x90
_jerry_port_get_current_time:           ## @jerry_port_get_current_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_us_ticker_read
	movl	%eax, %r14d
	xorl	%edi, %edi
	callq	_time
	cmpl	_jerry_port_get_current_time.last_time(%rip), %eax
	jg	LBB0_3
## %bb.1:
	movl	_jerry_port_get_current_time.skew(%rip), %ebx
	cmpl	%r14d, _jerry_port_get_current_time.last_tick(%rip)
	jle	LBB0_4
## %bb.2:
	addl	$33, %ebx
	movslq	%ebx, %rbx
	imulq	$274877907, %rbx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	imull	$1000, %ecx, %ecx               ## imm = 0x3E8
	subl	%ecx, %ebx
LBB0_3:
	movl	%ebx, _jerry_port_get_current_time.skew(%rip)
LBB0_4:
	imull	$1000, %eax, %ecx               ## imm = 0x3E8
	cvtsi2sd	%ecx, %xmm1
	movslq	%r14d, %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	subl	%ebx, %ecx
	movslq	%ecx, %rcx
	imulq	$274877907, %rcx, %rdx          ## imm = 0x10624DD3
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$38, %rdx
	addl	%esi, %edx
	imull	$1000, %edx, %edx               ## imm = 0x3E8
	subl	%edx, %ecx
	cvtsi2sd	%ecx, %xmm0
	addsd	%xmm1, %xmm0
	movl	%r14d, _jerry_port_get_current_time.last_tick(%rip)
	movl	%eax, _jerry_port_get_current_time.last_time(%rip)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_jerry_port_get_current_time.last_tick,4,2 ## @jerry_port_get_current_time.last_tick
.zerofill __DATA,__bss,_jerry_port_get_current_time.last_time,4,2 ## @jerry_port_get_current_time.last_time
.zerofill __DATA,__bss,_jerry_port_get_current_time.skew,4,2 ## @jerry_port_get_current_time.skew
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jerry_port_get_current_time    ; -- Begin function jerry_port_get_current_time
	.p2align	2
_jerry_port_get_current_time:           ; @jerry_port_get_current_time
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_us_ticker_read
	mov	x19, x0
	mov	x0, #0
	bl	_time
	adrp	x8, _jerry_port_get_current_time.last_time@PAGE
	ldr	w11, [x8, _jerry_port_get_current_time.last_time@PAGEOFF]
	adrp	x9, _jerry_port_get_current_time.last_tick@PAGE
	adrp	x10, _jerry_port_get_current_time.skew@PAGE
	cmp	w0, w11
	b.le	LBB0_2
; %bb.1:
	mov	w11, #0
	b	LBB0_4
LBB0_2:
	ldr	w12, [x9, _jerry_port_get_current_time.last_tick@PAGEOFF]
	ldr	w11, [x10, _jerry_port_get_current_time.skew@PAGEOFF]
	cmp	w12, w19
	b.le	LBB0_5
; %bb.3:
	add	w11, w11, #33
	mov	w12, #19923
	movk	w12, #4194, lsl #16
	smull	x12, w11, w12
	lsr	x13, x12, #63
	asr	x12, x12, #38
	add	w12, w12, w13
	mov	w13, #1000
	msub	w11, w12, w13, w11
LBB0_4:
	str	w11, [x10, _jerry_port_get_current_time.skew@PAGEOFF]
LBB0_5:
	mov	w10, #1000
	mul	w12, w0, w10
	scvtf	d0, w12
	mov	w12, #19923
	movk	w12, #4194, lsl #16
	smull	x13, w19, w12
	lsr	x14, x13, #63
	asr	x13, x13, #38
	add	w13, w13, w14
	sub	w11, w13, w11
	smull	x12, w11, w12
	lsr	x13, x12, #63
	asr	x12, x12, #38
	add	w12, w12, w13
	msub	w10, w12, w10, w11
	scvtf	d1, w10
	fadd	d0, d0, d1
	str	w19, [x9, _jerry_port_get_current_time.last_tick@PAGEOFF]
	str	w0, [x8, _jerry_port_get_current_time.last_time@PAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_jerry_port_get_current_time.last_tick,4,2 ; @jerry_port_get_current_time.last_tick
.zerofill __DATA,__bss,_jerry_port_get_current_time.last_time,4,2 ; @jerry_port_get_current_time.last_time
.zerofill __DATA,__bss,_jerry_port_get_current_time.skew,4,2 ; @jerry_port_get_current_time.skew
.subsections_via_symbols
