	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_findpeer                       ## -- Begin function findpeer
	.p2align	4, 0x90
_findpeer:                              ## @findpeer
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_findpeer_calls@GOTPCREL(%rip), %rax
	incl	(%rax)
	leaq	12(%rdi), %r13
	movq	%r13, %rdi
	callq	_NTP_HASH_ADDR
	movq	_peer_hash@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.1:
	leaq	8(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	_MODE_BCLIENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_12
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	20(%rbx), %rsi
	movq	%r13, %rdi
	callq	_ADDR_PORT_EQ
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rdi
	movl	%r14d, %esi
	callq	_MATCH_ASSOC
	movl	%eax, (%r12)
	movq	_MODE_SERVER@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_AM_PROCPKT@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %r12d
	movq	%r13, %r14
	movq	%r15, %r13
	leaq	-60(%rbp), %r15
	movq	%r15, %rsi
	callq	_NTOHL_FP
	leaq	16(%rbx), %rdi
	movq	%r15, %rsi
	movq	%r13, %r15
	movq	%r14, %r13
	movl	%r12d, %r14d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	callq	_L_ISEQU
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_findmanycastpeer
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_AM_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %eax
	movq	_AM_ERR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_AM_NOMATCH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
	jmp	LBB0_15
LBB0_13:
	movq	_NO_PEER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	%r14d, %esi
	callq	_MATCH_ASSOC
	movl	%eax, (%r12)
LBB0_14:
	xorl	%ebx, %ebx
LBB0_15:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_findpeer_calls,4,2             ## @findpeer_calls
	.comm	_peer_hash,8,3                  ## @peer_hash
	.comm	_MODE_BCLIENT,8,3               ## @MODE_BCLIENT
	.comm	_MODE_SERVER,4,2                ## @MODE_SERVER
	.comm	_AM_PROCPKT,4,2                 ## @AM_PROCPKT
	.comm	_AM_ERR,4,2                     ## @AM_ERR
	.comm	_AM_NOMATCH,4,2                 ## @AM_NOMATCH
	.comm	_NO_PEER,8,3                    ## @NO_PEER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_findpeer                       ; -- Begin function findpeer
	.p2align	2
_findpeer:                              ; @findpeer
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _findpeer_calls@GOTPAGE
Lloh1:
	ldr	x8, [x8, _findpeer_calls@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	add	x23, x0, #12
	mov	x0, x23
	bl	_NTP_HASH_ADDR
Lloh2:
	adrp	x8, _peer_hash@GOTPAGE
Lloh3:
	ldr	x8, [x8, _peer_hash@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x22, [x8, x0, lsl #3]
	cbz	x22, LBB0_12
; %bb.1:
	add	x24, x21, #8
Lloh5:
	adrp	x25, _MODE_BCLIENT@GOTPAGE
Lloh6:
	ldr	x25, [x25, _MODE_BCLIENT@GOTPAGEOFF]
Lloh7:
	adrp	x27, _AM_PROCPKT@GOTPAGE
Lloh8:
	ldr	x27, [x27, _AM_PROCPKT@GOTPAGEOFF]
Lloh9:
	adrp	x28, _AM_ERR@GOTPAGE
Lloh10:
	ldr	x28, [x28, _AM_ERR@GOTPAGEOFF]
Lloh11:
	adrp	x26, _AM_NOMATCH@GOTPAGE
Lloh12:
	ldr	x26, [x26, _AM_NOMATCH@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x22, [x22, #24]
	cbz	x22, LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x1, x22, #20
	mov	x0, x23
	bl	_ADDR_PORT_EQ
	cbz	w0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x22]
	mov	x1, x20
	bl	_MATCH_ASSOC
	str	w0, [x19]
Lloh13:
	adrp	x8, _MODE_SERVER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MODE_SERVER@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x27]
	cmp	w8, w20
	ccmp	w9, w0, #0, eq
	b.ne	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #12
	mov	x0, x24
	bl	_NTOHL_FP
	add	x0, x22, #16
	add	x1, sp, #12
	bl	_L_ISEQU
	cbnz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_findmanycastpeer
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x28]
	str	w8, [x19]
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x28]
	cmp	w8, w9
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x26]
	cmp	w8, w9
	b.eq	LBB0_2
	b	LBB0_13
LBB0_12:
Lloh16:
	adrp	x8, _NO_PEER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NO_PEER@GOTPAGEOFF]
Lloh18:
	ldr	x0, [x8]
	mov	x1, x20
	bl	_MATCH_ASSOC
	mov	x22, #0
	str	w0, [x19]
LBB0_13:
	mov	x0, x22
	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
LBB0_14:
	mov	x22, #0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_findpeer_calls,4,2             ; @findpeer_calls
	.comm	_peer_hash,8,3                  ; @peer_hash
	.comm	_MODE_BCLIENT,8,3               ; @MODE_BCLIENT
	.comm	_MODE_SERVER,4,2                ; @MODE_SERVER
	.comm	_AM_PROCPKT,4,2                 ; @AM_PROCPKT
	.comm	_AM_ERR,4,2                     ; @AM_ERR
	.comm	_AM_NOMATCH,4,2                 ; @AM_NOMATCH
	.comm	_NO_PEER,8,3                    ; @NO_PEER
.subsections_via_symbols
