	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_peer_unfit                     ## -- Begin function peer_unfit
	.p2align	4, 0x90
_peer_unfit:                            ## @peer_unfit
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_LEAP_NOTINSYNC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
LBB0_3:
	movq	_TEST10@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_4
LBB0_1:
	movl	8(%rbx), %eax
	movq	_sys_floor@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_3
## %bb.2:
	xorl	%r14d, %r14d
	movq	_sys_ceiling@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_3
LBB0_4:
	movq	_FLAG_REFCLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%rbx)
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_root_distance
	movq	%rax, %r15
	movq	_sys_maxdist@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_clock_phi@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	movl	24(%rbx), %edi
	callq	_ULOGTOD
	cltq
	imulq	%r13, %rax
	addq	%r12, %rax
	cmpq	%rax, %r15
	jl	LBB0_7
## %bb.6:
	movq	_TEST11@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_7:
	cmpl	$2, 8(%rbx)
	jl	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	callq	_local_refid
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_TEST12@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_10:
	cmpl	$0, 20(%rbx)
	je	LBB0_12
## %bb.11:
	movq	_FLAG_NOSELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%rbx)
	je	LBB0_13
LBB0_12:
	movq	_TEST13@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_13:
	movq	_PEER_TEST_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	16(%rbx), %eax
	orl	%r14d, %eax
	movl	%eax, 16(%rbx)
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LEAP_NOTINSYNC,8,3             ## @LEAP_NOTINSYNC
	.comm	_sys_floor,4,2                  ## @sys_floor
	.comm	_sys_ceiling,4,2                ## @sys_ceiling
	.comm	_TEST10,4,2                     ## @TEST10
	.comm	_FLAG_REFCLOCK,4,2              ## @FLAG_REFCLOCK
	.comm	_sys_maxdist,8,3                ## @sys_maxdist
	.comm	_clock_phi,4,2                  ## @clock_phi
	.comm	_TEST11,4,2                     ## @TEST11
	.comm	_TEST12,4,2                     ## @TEST12
	.comm	_FLAG_NOSELECT,4,2              ## @FLAG_NOSELECT
	.comm	_TEST13,4,2                     ## @TEST13
	.comm	_PEER_TEST_MASK,4,2             ## @PEER_TEST_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_peer_unfit                     ; -- Begin function peer_unfit
	.p2align	2
_peer_unfit:                            ; @peer_unfit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _LEAP_NOTINSYNC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LEAP_NOTINSYNC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x9, _sys_floor@GOTPAGE
Lloh4:
	ldr	x9, [x9, _sys_floor@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _sys_ceiling@GOTPAGE
Lloh7:
	ldr	x10, [x10, _sys_ceiling@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #0, ge
	b.lt	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _TEST10@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TEST10@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
	ldr	w8, [x19, #12]
Lloh12:
	adrp	x9, _FLAG_REFCLOCK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FLAG_REFCLOCK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_root_distance
	mov	x21, x0
Lloh15:
	adrp	x8, _sys_maxdist@GOTPAGE
Lloh16:
	ldr	x8, [x8, _sys_maxdist@GOTPAGEOFF]
Lloh17:
	ldr	x22, [x8]
Lloh18:
	adrp	x8, _clock_phi@GOTPAGE
Lloh19:
	ldr	x8, [x8, _clock_phi@GOTPAGEOFF]
Lloh20:
	ldrsw	x23, [x8]
	ldr	w0, [x19, #24]
	bl	_ULOGTOD
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	madd	x8, x8, x23, x22
	cmp	x21, x8
	b.lt	LBB0_7
; %bb.6:
Lloh21:
	adrp	x8, _TEST11@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TEST11@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_7:
	ldr	w8, [x19, #8]
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_local_refid
	cbz	x0, LBB0_10
; %bb.9:
Lloh24:
	adrp	x8, _TEST12@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TEST12@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_10:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_12
; %bb.11:
	ldr	w8, [x19, #12]
Lloh27:
	adrp	x9, _FLAG_NOSELECT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _FLAG_NOSELECT@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
LBB0_12:
Lloh30:
	adrp	x8, _TEST13@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TEST13@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_13:
Lloh33:
	adrp	x8, _PEER_TEST_MASK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PEER_TEST_MASK@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	bic	w8, w9, w8
	orr	w8, w8, w20
	str	w8, [x19, #16]
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_LEAP_NOTINSYNC,8,3             ; @LEAP_NOTINSYNC
	.comm	_sys_floor,4,2                  ; @sys_floor
	.comm	_sys_ceiling,4,2                ; @sys_ceiling
	.comm	_TEST10,4,2                     ; @TEST10
	.comm	_FLAG_REFCLOCK,4,2              ; @FLAG_REFCLOCK
	.comm	_sys_maxdist,8,3                ; @sys_maxdist
	.comm	_clock_phi,4,2                  ; @clock_phi
	.comm	_TEST11,4,2                     ; @TEST11
	.comm	_TEST12,4,2                     ; @TEST12
	.comm	_FLAG_NOSELECT,4,2              ; @FLAG_NOSELECT
	.comm	_TEST13,4,2                     ; @TEST13
	.comm	_PEER_TEST_MASK,4,2             ; @PEER_TEST_MASK
.subsections_via_symbols
