	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_ptp_process_times
_efx_ptp_process_times:                 ## @efx_ptp_process_times
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rax
	movq	%rsi, %rbx
	movq	_MC_CMD_PTP_OUT_SYNCHRONIZE_TIMESET_LEN@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_15
## %bb.1:
	xorl	%edx, %edx
	divq	%rsi
	testl	%eax, %eax
	je	LBB0_16
LBB0_2:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rcx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%rcx), %rsi
	addq	%r13, %rsi
	movq	%rbx, %rdi
	movq	%rcx, %r14
	callq	_efx_ptp_read_timeset
	movq	%r14, %rcx
	movq	(%r15), %rax
	leaq	(%rbx,%rax,4), %rbx
	incq	%r12
	addq	$32, %r13
	cmpq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	jne	LBB0_3
## %bb.4:
	movq	40(%rcx), %rax
	movq	_MIN_SYNCHRONISATION_NS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_MAX_SYNCHRONISATION_NS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$2, %ecx
	movl	$1, %r11d
	cmovael	%ecx, %r11d
	addq	$8, %rax
	xorl	%r9d, %r9d
	xorl	%edx, %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rdx
	addq	$32, %rax
	cmpq	%r11, %rdx
	je	LBB0_8
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rax), %rbx
	movq	(%rax), %r15
	cmpq	%r15, %rbx
	jle	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %ecx
	subl	%r15d, %ecx
	cmpl	%ecx, %r8d
	setbe	%r15b
	cmpl	%ecx, %r10d
	seta	%cl
	andb	%r15b, %cl
	movzbl	%cl, %ecx
	addl	%ecx, %esi
	testb	%cl, %cl
	cmovnel	%edx, %r12d
	cmovel	%r9d, %ebx
	addl	%edi, %ebx
	movl	%ebx, %edi
	jmp	LBB0_5
LBB0_8:
	testl	%esi, %esi
	je	LBB0_17
## %bb.9:
	callq	_DIV_ROUND_UP
	movq	%r14, %rdi
	movq	%rax, 8(%r14)
	cmpl	$0, 16(%r14)
	je	LBB0_11
## %bb.10:
	cmpq	(%rdi), %rax
	jge	LBB0_12
LBB0_11:
	movl	$1, 16(%rdi)
	movq	%rax, (%rdi)
LBB0_12:
	movq	40(%rdi), %rax
	movl	%r12d, %ecx
	shlq	$5, %rcx
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movq	8(%r9), %rdx
	addq	24(%rax,%rcx), %rdx
	movl	16(%rax,%rcx), %ebx
	movq	_MC_NANOSECOND_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	movq	_MC_NANOSECOND_BITS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %ebx
	movq	_MC_SECOND_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	(%r9), %ecx
	andl	%r8d, %ecx
	xorl	%r14d, %r14d
	movl	$0, %esi
	cmpl	%ecx, %ebx
	je	LBB0_14
## %bb.13:
	incl	%ebx
	andl	%r8d, %ebx
	movl	$1, %esi
	cmpl	%ecx, %ebx
	jne	LBB0_18
LBB0_14:
	cltq
	subq	%rax, %rdx
	movups	(%r9), %xmm0
	movups	%xmm0, 24(%rdi)
	addq	$24, %rdi
	callq	_pps_sub_ts
	jmp	LBB0_21
LBB0_15:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_2
LBB0_16:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_20
LBB0_17:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %edx
	movq	(%r14), %r8
	leaq	L_.str(%rip), %rcx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_netif_warn
	jmp	LBB0_19
LBB0_18:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %edx
	leaq	L_.str.1(%rip), %rcx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_netif_warn
LBB0_19:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_20:
	subl	(%rax), %r14d
LBB0_21:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MC_CMD_PTP_OUT_SYNCHRONIZE_TIMESET_LEN,8,3 ## @MC_CMD_PTP_OUT_SYNCHRONIZE_TIMESET_LEN
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_MIN_SYNCHRONISATION_NS,4,2     ## @MIN_SYNCHRONISATION_NS
	.comm	_MAX_SYNCHRONISATION_NS,4,2     ## @MAX_SYNCHRONISATION_NS
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PTP no suitable synchronisations %dns\n"

	.comm	_MC_NANOSECOND_MASK,4,2         ## @MC_NANOSECOND_MASK
	.comm	_MC_NANOSECOND_BITS,4,2         ## @MC_NANOSECOND_BITS
	.comm	_MC_SECOND_MASK,4,2             ## @MC_SECOND_MASK
	.comm	_hw,4,2                         ## @hw
L_.str.1:                               ## @.str.1
	.asciz	"PTP bad synchronisation seconds\n"

	.no_dead_strip	_efx_ptp_process_times
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_ptp_process_times
_efx_ptp_process_times:                 ; @efx_ptp_process_times
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x24, _MC_CMD_PTP_OUT_SYNCHRONIZE_TIMESET_LEN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MC_CMD_PTP_OUT_SYNCHRONIZE_TIMESET_LEN@GOTPAGEOFF]
	ldr	x8, [x24]
	udiv	x23, x2, x8
	cbz	w23, LBB0_19
; %bb.1:
	mov	x19, x3
	mov	x21, x1
	mov	x20, x0
	mov	x25, #0
	mov	x26, #0
	ldr	x22, [x0, #8]
	and	x27, x23, #0xffffffff
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #40]
	add	x1, x8, x25
	mov	x0, x21
	bl	_efx_ptp_read_timeset
	ldr	x8, [x24]
	add	x21, x21, x8, lsl #2
	add	x26, x26, #1
	add	x25, x25, #32
	cmp	x26, x27
	b.ne	LBB0_2
; %bb.3:
	mov	x8, #0
	mov	w0, #0
	mov	w1, #0
	mov	w21, #0
	ldr	x12, [x22, #40]
Lloh2:
	adrp	x9, _MIN_SYNCHRONISATION_NS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MIN_SYNCHRONISATION_NS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _MAX_SYNCHRONISATION_NS@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MAX_SYNCHRONISATION_NS@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w23, #1
	csinc	w11, w23, wzr, hi
	add	x12, x12, #8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #1
	add	x12, x12, #32
	cmp	x8, x11
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x13, x14, [x12, #-8]
	cmp	x13, x14
	b.le	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w14, w13, w14
	cmp	w9, w14
	cset	w15, ls
	cmp	w10, w14
	cset	w14, hi
	ands	w14, w15, w14
	csel	w21, w8, w21, ne
	add	w1, w1, w14
	csel	w13, w13, wzr, ne
	add	w0, w13, w0
	b	LBB0_4
LBB0_7:
	cbz	w1, LBB0_13
; %bb.8:
	bl	_DIV_ROUND_UP
	str	x0, [x22, #8]
	ldr	w8, [x22, #16]
	cbz	w8, LBB0_10
; %bb.9:
	ldr	x8, [x22]
	cmp	x0, x8
	b.ge	LBB0_11
LBB0_10:
	mov	w8, #1
	str	w8, [x22, #16]
	str	x0, [x22]
LBB0_11:
	ldr	x8, [x22, #40]
	mov	w9, w21
	add	x10, x8, x9, lsl #5
	ldr	x8, [x10, #24]
	ldr	x9, [x19, #8]
Lloh8:
	adrp	x11, _MC_NANOSECOND_MASK@GOTPAGE
Lloh9:
	ldr	x11, [x11, _MC_NANOSECOND_MASK@GOTPAGEOFF]
	ldr	w10, [x10, #16]
Lloh10:
	ldr	w11, [x11]
Lloh11:
	adrp	x12, _MC_NANOSECOND_BITS@GOTPAGE
Lloh12:
	ldr	x12, [x12, _MC_NANOSECOND_BITS@GOTPAGEOFF]
Lloh13:
	ldr	w12, [x12]
	asr	w12, w10, w12
	ldr	w14, [x19]
Lloh14:
	adrp	x13, _MC_SECOND_MASK@GOTPAGE
Lloh15:
	ldr	x13, [x13, _MC_SECOND_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w13, [x13]
	and	w14, w13, w14
	cmp	w12, w14
	b.ne	LBB0_14
; %bb.12:
	mov	x1, #0
	b	LBB0_16
LBB0_13:
Lloh17:
	adrp	x8, _drv@GOTPAGE
Lloh18:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [x20]
	ldr	x8, [x22]
	str	x8, [sp]
Lloh20:
	adrp	x3, l_.str@PAGE
Lloh21:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_18
LBB0_14:
	add	w12, w12, #1
	and	w12, w12, w13
	cmp	w12, w14
	b.ne	LBB0_17
; %bb.15:
	mov	w1, #1
LBB0_16:
	add	x8, x9, x8
	and	w9, w11, w10
	sub	x2, x8, w9, sxtw
	add	x0, x22, #24
	ldr	q0, [x19]
	stur	q0, [x22, #24]
	bl	_pps_sub_ts
	mov	w0, #0
	b	LBB0_20
LBB0_17:
Lloh22:
	adrp	x8, _hw@GOTPAGE
Lloh23:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldr	w2, [x20]
Lloh25:
	adrp	x3, l_.str.1@PAGE
Lloh26:
	add	x3, x3, l_.str.1@PAGEOFF
LBB0_18:
	mov	x0, x20
	bl	_netif_warn
LBB0_19:
Lloh27:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MC_CMD_PTP_OUT_SYNCHRONIZE_TIMESET_LEN,8,3 ; @MC_CMD_PTP_OUT_SYNCHRONIZE_TIMESET_LEN
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_MIN_SYNCHRONISATION_NS,4,2     ; @MIN_SYNCHRONISATION_NS
	.comm	_MAX_SYNCHRONISATION_NS,4,2     ; @MAX_SYNCHRONISATION_NS
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PTP no suitable synchronisations %dns\n"

	.comm	_MC_NANOSECOND_MASK,4,2         ; @MC_NANOSECOND_MASK
	.comm	_MC_NANOSECOND_BITS,4,2         ; @MC_NANOSECOND_BITS
	.comm	_MC_SECOND_MASK,4,2             ; @MC_SECOND_MASK
	.comm	_hw,4,2                         ; @hw
l_.str.1:                               ; @.str.1
	.asciz	"PTP bad synchronisation seconds\n"

	.no_dead_strip	_efx_ptp_process_times
.subsections_via_symbols
