	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_select_peerinterface           ## -- Begin function select_peerinterface
	.p2align	4, 0x90
_select_peerinterface:                  ## @select_peerinterface
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_ANY_INTERFACE_CHOOSE
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_ISREFCLOCKADR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_loopback_interface@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_7:
	cmpq	%rbx, %r15
	je	LBB0_8
## %bb.9:
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_11:
	movq	_INT_WILDCARD@GOTPCREL(%rip), %rcx
	movl	(%rbx), %edx
	movq	_accept_wildcard_if_for_winnt@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpl	$0, (%rsi)
	cmovneq	%rbx, %rax
	testl	%edx, (%rcx)
	cmoveq	%rbx, %rax
	jmp	LBB0_12
LBB0_2:
	movq	_MDF_BCLNT@GOTPCREL(%rip), %rax
	movq	_MDF_ACAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MDF_MCAST@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_MDF_BCAST@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%ecx, (%r12)
	je	LBB0_6
## %bb.3:
	movq	%r14, %rdi
	callq	_findbcastinter
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$4, %rdi
	callq	_stoa
	movq	%r14, %rdi
	callq	_stoa
	movslq	%eax, %rsi
	movl	$4, %edi
	callq	_DPRINTF
	jmp	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	callq	_findinterface
	movq	%rax, %rbx
	testq	%rbx, %rbx
	jne	LBB0_11
LBB0_10:
	xorl	%eax, %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	testq	%rbx, %rbx
	cmoveq	%r15, %rbx
	jmp	LBB0_7
LBB0_5:
	movq	%r14, %rdi
	callq	_stoa
	movslq	%eax, %rsi
	movl	$4, %edi
	callq	_DPRINTF
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_loopback_interface,8,3         ## @loopback_interface
	.comm	_MDF_BCLNT,4,2                  ## @MDF_BCLNT
	.comm	_MDF_ACAST,4,2                  ## @MDF_ACAST
	.comm	_MDF_MCAST,4,2                  ## @MDF_MCAST
	.comm	_MDF_BCAST,4,2                  ## @MDF_BCAST
	.comm	_INT_WILDCARD,4,2               ## @INT_WILDCARD
	.comm	_accept_wildcard_if_for_winnt,4,2 ## @accept_wildcard_if_for_winnt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_select_peerinterface           ; -- Begin function select_peerinterface
	.p2align	2
_select_peerinterface:                  ; @select_peerinterface
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x1
	bl	_ANY_INTERFACE_CHOOSE
	mov	x20, x0
	mov	x0, x19
	bl	_ISREFCLOCKADR
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _loopback_interface@GOTPAGE
Lloh1:
	ldr	x8, [x8, _loopback_interface@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	cmp	x20, x21
	b.ne	LBB0_7
	b	LBB0_6
LBB0_2:
	ldr	w8, [x22]
Lloh3:
	adrp	x9, _MDF_BCLNT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MDF_BCLNT@GOTPAGEOFF]
Lloh5:
	adrp	x10, _MDF_ACAST@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MDF_ACAST@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh9:
	adrp	x10, _MDF_MCAST@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MDF_MCAST@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh12:
	adrp	x10, _MDF_BCAST@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MDF_BCAST@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_11
; %bb.3:
	mov	x0, x19
	bl	_findbcastinter
	mov	x21, x0
	cbz	x0, LBB0_5
; %bb.4:
	add	x0, x21, #4
	bl	_stoa
LBB0_5:
	mov	x0, x19
	bl	_stoa
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	w0, #4
	bl	_DPRINTF
	cmp	x20, x21
	b.ne	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_findinterface
	mov	x21, x0
LBB0_7:
	cbz	x21, LBB0_9
; %bb.8:
Lloh15:
	adrp	x8, _INT_WILDCARD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INT_WILDCARD@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x21]
	and	w8, w9, w8
Lloh18:
	adrp	x9, _accept_wildcard_if_for_winnt@GOTPAGE
Lloh19:
	ldr	x9, [x9, _accept_wildcard_if_for_winnt@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w9, #0
	ccmp	w8, #0, #4, eq
	csel	x0, x21, xzr, eq
	b	LBB0_10
LBB0_9:
	mov	x0, #0
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	cmp	x21, #0
	csel	x21, x20, x21, eq
	cmp	x20, x21
	b.ne	LBB0_7
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_loopback_interface,8,3         ; @loopback_interface
	.comm	_MDF_BCLNT,4,2                  ; @MDF_BCLNT
	.comm	_MDF_ACAST,4,2                  ; @MDF_ACAST
	.comm	_MDF_MCAST,4,2                  ; @MDF_MCAST
	.comm	_MDF_BCAST,4,2                  ; @MDF_BCAST
	.comm	_INT_WILDCARD,4,2               ; @INT_WILDCARD
	.comm	_accept_wildcard_if_for_winnt,4,2 ; @accept_wildcard_if_for_winnt
.subsections_via_symbols
