	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcp_address_match
_tcp_address_match:                     ## @tcp_address_match
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_PJDLOG_ASSERT
	movq	(%rbx), %rax
	movq	_TCP_CTX_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_PJDLOG_ASSERT
	leaq	L_.str(%rip), %rdi
	callq	_proto_get
	movl	%eax, %edi
	callq	_atoi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_tcp_addr
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_1
LBB0_5:
	movl	%r14d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movl	$16, -20(%rbp)
	movl	8(%rbx), %edi
	leaq	-40(%rbp), %rsi
	leaq	-20(%rbp), %rdx
	callq	_getpeername
	testq	%rax, %rax
	js	LBB0_5
## %bb.2:
	movl	-56(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jne	LBB0_5
## %bb.3:
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.4:
	leaq	-56(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	movl	$4, %edx
	callq	_memcmp
	xorl	%r14d, %r14d
	testl	%eax, %eax
	sete	%r14b
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_TCP_CTX_MAGIC,8,3              ## @TCP_CTX_MAGIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcp:port"

	.no_dead_strip	_tcp_address_match
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcp_address_match
_tcp_address_match:                     ; @tcp_address_match
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _TCP_CTX_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TCP_CTX_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_PJDLOG_ASSERT
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_proto_get
	bl	_atoi
	mov	x1, x0
	add	x2, sp, #32
	mov	x0, x20
	bl	_tcp_addr
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_3:
	mov	w8, #16
	str	w8, [sp, #12]
	ldr	w0, [x19, #8]
	add	x1, sp, #16
	add	x2, sp, #12
	bl	_getpeername
	tbnz	x0, #63, LBB0_1
; %bb.4:
	mov	w0, #0
	ldr	w8, [sp, #32]
	ldr	w9, [sp, #16]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.5:
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_2
; %bb.6:
	add	x0, sp, #32
	add	x1, sp, #16
	mov	w2, #4
	bl	_memcmp
	cmp	w0, #0
	cset	w0, eq
	b	LBB0_2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TCP_CTX_MAGIC,8,3              ; @TCP_CTX_MAGIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcp:port"

	.no_dead_strip	_tcp_address_match
.subsections_via_symbols
