	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function connection_add
_connection_add:                        ## @connection_add
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	(%rdx), %edi
	callq	_htonl
	movq	_GGATE_FLAG_SEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_5
## %bb.1:
	cmpl	$-1, (%r15)
	je	LBB0_2
## %bb.3:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_ip2str
	movl	8(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_5:
	cmpl	$-1, 4(%r15)
	je	LBB0_6
## %bb.9:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_ip2str
	movl	8(%r15), %ecx
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_g_gate_log
	movq	_EEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_2:
	movq	%r15, %rcx
	jmp	LBB0_7
LBB0_6:
	leaq	4(%r15), %rcx
LBB0_7:
	movl	%r14d, (%rcx)
	movq	_LOG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_ip2str
	movl	8(%r15), %ecx
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_g_gate_log
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GGATE_FLAG_SEND,4,2            ## @GGATE_FLAG_SEND
	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Send socket already exists [%s, %s]."

	.comm	_EEXIST,4,2                     ## @EEXIST
L_.str.1:                               ## @.str.1
	.asciz	"Receive socket already exists [%s, %s]."

	.comm	_LOG_DEBUG,4,2                  ## @LOG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"Connection added [%s, %s]."

	.no_dead_strip	_connection_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function connection_add
_connection_add:                        ; @connection_add
	.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	x20, x3
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x2]
	bl	_htonl
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _GGATE_FLAG_SEND@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GGATE_FLAG_SEND@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	w8, [x19]
	cmn	w8, #1
	b.eq	LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	bl	_ip2str
	mov	x2, x0
	ldr	w3, [x19, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
	mov	x8, x19
	ldr	w9, [x8, #4]!
	cmn	w9, #1
	b.eq	LBB0_7
; %bb.4:
Lloh8:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	bl	_ip2str
	mov	x2, x0
	ldr	w3, [x19, #8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x20
	bl	_g_gate_log
Lloh13:
	adrp	x8, _EEXIST@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_6:
	mov	x8, x19
LBB0_7:
	str	w20, [x8]
Lloh16:
	adrp	x8, _LOG_DEBUG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LOG_DEBUG@GOTPAGEOFF]
Lloh18:
	ldr	w20, [x8]
	bl	_ip2str
	mov	x2, x0
	ldr	w3, [x19, #8]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_g_gate_log
	mov	w0, #0
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GGATE_FLAG_SEND,4,2            ; @GGATE_FLAG_SEND
	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Send socket already exists [%s, %s]."

	.comm	_EEXIST,4,2                     ; @EEXIST
l_.str.1:                               ; @.str.1
	.asciz	"Receive socket already exists [%s, %s]."

	.comm	_LOG_DEBUG,4,2                  ; @LOG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"Connection added [%s, %s]."

	.no_dead_strip	_connection_add
.subsections_via_symbols
