	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_ptp_ns_to_s27
_efx_ptp_ns_to_s27:                     ## @efx_ptp_ns_to_s27
	.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
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_ns_to_timespec64
	movq	_NS_TO_S27_MULT@GOTPCREL(%rip), %rcx
	imulq	(%rcx), %rax
	movslq	%edx, %rsi
	movq	_NS_TO_S27_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %dl
	leal	-1(%rdx), %ecx
	movl	$1, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rdi
	addq	%rax, %rdi
	movl	%edx, %ecx
	shrq	%cl, %rdi
	movq	_S27_MINOR_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	cmpq	%rax, %rdi
	setge	%dl
	cmovgeq	%rax, %rcx
	addq	%rsi, %rdx
	subq	%rcx, %rdi
	movq	%rdx, (%rbx)
	movq	%rdi, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NS_TO_S27_MULT,8,3             ## @NS_TO_S27_MULT
	.comm	_NS_TO_S27_SHIFT,4,2            ## @NS_TO_S27_SHIFT
	.comm	_S27_MINOR_MAX,8,3              ## @S27_MINOR_MAX
	.no_dead_strip	_efx_ptp_ns_to_s27
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_ptp_ns_to_s27
_efx_ptp_ns_to_s27:                     ; @efx_ptp_ns_to_s27
	.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
	mov	x19, x2
	mov	x20, x1
	bl	_ns_to_timespec64
	sxtw	x8, w1
Lloh0:
	adrp	x9, _NS_TO_S27_MULT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NS_TO_S27_MULT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _NS_TO_S27_SHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NS_TO_S27_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	sub	w11, w10, #1
	mov	w12, #1
	lsl	x11, x12, x11
	madd	x9, x0, x9, x11
	lsr	x9, x9, x10
Lloh6:
	adrp	x10, _S27_MINOR_MAX@GOTPAGE
Lloh7:
	ldr	x10, [x10, _S27_MINOR_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	csel	x10, xzr, x10, lt
	cinc	x8, x8, ge
	sub	x9, x9, x10
	str	x8, [x20]
	str	x9, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NS_TO_S27_MULT,8,3             ; @NS_TO_S27_MULT
	.comm	_NS_TO_S27_SHIFT,4,2            ; @NS_TO_S27_SHIFT
	.comm	_S27_MINOR_MAX,8,3              ; @S27_MINOR_MAX
	.no_dead_strip	_efx_ptp_ns_to_s27
.subsections_via_symbols
