	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function test_OffsetCalculationNegativeOffset
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_5:
	.quad	0xbff0000000000000              ## double -1
LCPI0_6:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_7:
	.quad	0x3ff555650fdd7c00              ## double 1.3333483333333334
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.long	1000000001                      ## 0x3b9aca01
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
LCPI0_2:
	.quad	1000000000                      ## 0x3b9aca00
	.quad	2147483648                      ## 0x80000000
LCPI0_3:
	.quad	1000000001                      ## 0x3b9aca01
	.quad	2147483648                      ## 0x80000000
LCPI0_4:
	.long	1000000003                      ## 0x3b9aca03
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_test_OffsetCalculationNegativeOffset
	.p2align	4, 0x90
_test_OffsetCalculationNegativeOffset:  ## @test_OffsetCalculationNegativeOffset
	.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	$112, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$-1, -112(%rbp)
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_DTOUFP
	movl	%eax, %edi
	callq	_HTONS_FP
	movq	%rax, -80(%rbp)
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_DTOUFP
	movl	%eax, %edi
	callq	_HTONS_FP
	movq	%rax, -88(%rbp)
	leaq	-128(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_get_systime
	leaq	-96(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_HTONL_FP
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [1000000001,0,0,0]
	movaps	%xmm0, -48(%rbp)
	leaq	-100(%rbp), %rsi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_HTONL_FP
	movaps	LCPI0_2(%rip), %xmm0            ## xmm0 = [1000000000,2147483648]
	movaps	%xmm0, -48(%rbp)
	leaq	-104(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_HTONL_FP
	movaps	LCPI0_3(%rip), %xmm0            ## xmm0 = [1000000001,2147483648]
	movaps	%xmm0, -48(%rbp)
	leaq	-108(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_HTONL_FP
	movaps	LCPI0_4(%rip), %xmm0            ## xmm0 = [1000000003,0,0,0]
	movaps	%xmm0, -48(%rbp)
	leaq	-24(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_TSTOTV
	movq	_JAN_1970@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%eax, -24(%rbp)
	movq	_LEN_PKT_NOMAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-112(%rbp), %rdi
	leaq	-72(%rbp), %rcx
	leaq	-64(%rbp), %r8
	leaq	-56(%rbp), %r9
	movq	%r14, %rdx
	callq	_offset_calculation
	movsd	-72(%rbp), %xmm1                ## xmm1 = mem[0],zero
	movsd	LCPI0_5(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_TEST_ASSERT_EQUAL_DOUBLE
	movl	$1, %edi
	callq	_ULOGTOD
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	movsd	LCPI0_6(%rip), %xmm0            ## xmm0 = mem[0],zero
	divsd	%xmm1, %xmm0
	movsd	-64(%rbp), %xmm1                ## xmm1 = mem[0],zero
	callq	_TEST_ASSERT_EQUAL_DOUBLE
	movsd	-56(%rbp), %xmm1                ## xmm1 = mem[0],zero
	movsd	LCPI0_7(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_TEST_ASSERT_EQUAL_DOUBLE
	addq	$112, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JAN_1970,8,3                   ## @JAN_1970
	.comm	_LEN_PKT_NOMAC,4,2              ## @LEN_PKT_NOMAC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function test_OffsetCalculationNegativeOffset
lCPI0_0:
	.quad	1000000001                      ; 0x3b9aca01
	.quad	0                               ; 0x0
lCPI0_1:
	.quad	1000000000                      ; 0x3b9aca00
	.quad	2147483648                      ; 0x80000000
lCPI0_2:
	.quad	1000000001                      ; 0x3b9aca01
	.quad	2147483648                      ; 0x80000000
lCPI0_3:
	.quad	1000000003                      ; 0x3b9aca03
	.quad	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_test_OffsetCalculationNegativeOffset
	.p2align	2
_test_OffsetCalculationNegativeOffset:  ; @test_OffsetCalculationNegativeOffset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	w8, #-1
	stur	w8, [x29, #-56]
	fmov	d0, #0.50000000
	bl	_DTOUFP
	bl	_HTONS_FP
	stur	x0, [x29, #-24]
	fmov	d0, #0.50000000
	bl	_DTOUFP
	bl	_HTONS_FP
	stur	x0, [x29, #-32]
	add	x0, sp, #56
	bl	_get_systime
	sub	x19, x29, #56
	add	x1, x19, #16
	add	x0, sp, #56
	bl	_HTONL_FP
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp, #32]
	add	x1, x19, #12
	add	x0, sp, #32
	bl	_HTONL_FP
Lloh2:
	adrp	x8, lCPI0_1@PAGE
Lloh3:
	ldr	q0, [x8, lCPI0_1@PAGEOFF]
	str	q0, [sp, #32]
	add	x1, x19, #8
	add	x0, sp, #32
	bl	_HTONL_FP
Lloh4:
	adrp	x8, lCPI0_2@PAGE
Lloh5:
	ldr	q0, [x8, lCPI0_2@PAGEOFF]
	str	q0, [sp, #32]
	orr	x1, x19, #0x4
	add	x0, sp, #32
	bl	_HTONL_FP
Lloh6:
	adrp	x8, lCPI0_3@PAGE
Lloh7:
	ldr	q0, [x8, lCPI0_3@PAGEOFF]
	str	q0, [sp, #32]
	add	x0, sp, #32
	add	x1, sp, #24
	bl	_TSTOTV
Lloh8:
	adrp	x8, _JAN_1970@GOTPAGE
Lloh9:
	ldr	x8, [x8, _JAN_1970@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [sp, #24]
	sub	w8, w9, w8
	str	w8, [sp, #24]
Lloh11:
	adrp	x8, _LEN_PKT_NOMAC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LEN_PKT_NOMAC@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	sub	x0, x29, #56
	add	x2, sp, #24
	add	x3, sp, #16
	add	x4, sp, #8
	mov	x5, sp
	bl	_offset_calculation
	ldr	d1, [sp, #16]
	fmov	d0, #-1.00000000
	bl	_TEST_ASSERT_EQUAL_DOUBLE
	mov	w0, #1
	bl	_ULOGTOD
	scvtf	d0, w0
	fmov	d1, #1.00000000
	fdiv	d0, d1, d0
	ldr	d1, [sp, #8]
	bl	_TEST_ASSERT_EQUAL_DOUBLE
	ldr	d1, [sp]
	mov	x8, #31744
	movk	x8, #4061, lsl #16
	movk	x8, #21861, lsl #32
	movk	x8, #16373, lsl #48
	fmov	d0, x8
	bl	_TEST_ASSERT_EQUAL_DOUBLE
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_JAN_1970,8,3                   ; @JAN_1970
	.comm	_LEN_PKT_NOMAC,4,2              ; @LEN_PKT_NOMAC
.subsections_via_symbols
