	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssh_packet_connection_is_on_socket ## -- Begin function ssh_packet_connection_is_on_socket
	.p2align	4, 0x90
_ssh_packet_connection_is_on_socket:    ## @ssh_packet_connection_is_on_socket
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.2:
	movl	(%rbx), %eax
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.3:
	movl	4(%rbx), %ecx
	cmpl	$-1, %ecx
	je	LBB0_10
## %bb.4:
	movl	$1, %r15d
	cmpl	%ecx, %eax
	je	LBB0_10
## %bb.5:
	movl	$8, -32(%rbp)
	leaq	-40(%rbp), %r14
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	(%rbx), %edi
	leaq	-32(%rbp), %rdx
	movq	%r14, %rsi
	callq	_getpeername
	testq	%rax, %rax
	js	LBB0_10
## %bb.6:
	movl	$8, -28(%rbp)
	leaq	-48(%rbp), %r14
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	4(%rbx), %edi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rsi
	callq	_getpeername
	testq	%rax, %rax
	js	LBB0_10
## %bb.7:
	movl	-32(%rbp), %edx
	cmpl	-28(%rbp), %edx
	jne	LBB0_10
## %bb.8:
	leaq	-40(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	-40(%rbp), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_AF_INET6@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_AF_INET6,8,3                   ## @AF_INET6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssh_packet_connection_is_on_socket ; -- Begin function ssh_packet_connection_is_on_socket
	.p2align	2
_ssh_packet_connection_is_on_socket:    ; @ssh_packet_connection_is_on_socket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	cbz	x0, LBB0_11
; %bb.1:
	ldr	x19, [x0]
	cbz	x19, LBB0_10
; %bb.2:
	ldr	w8, [x19]
	cmn	w8, #1
	b.eq	LBB0_10
; %bb.3:
	ldr	w9, [x19, #4]
	cmn	w9, #1
	b.eq	LBB0_10
; %bb.4:
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #1
	b	LBB0_11
LBB0_6:
	mov	w20, #8
	str	w20, [sp, #12]
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w0, [x19]
	add	x1, sp, #24
	add	x2, sp, #12
	bl	_getpeername
	tbnz	x0, #63, LBB0_10
; %bb.7:
	str	w20, [sp, #8]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w0, [x19, #4]
	add	x1, sp, #16
	add	x2, sp, #8
	bl	_getpeername
	tbnz	x0, #63, LBB0_10
; %bb.8:
	ldp	w8, w2, [sp, #8]
	cmp	w2, w8
	b.ne	LBB0_10
; %bb.9:
	add	x0, sp, #24
	add	x1, sp, #16
	bl	_memcmp
	cbz	x0, LBB0_12
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_12:
	ldr	x8, [sp, #24]
Lloh0:
	adrp	x9, _AF_INET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _AF_INET6@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AF_INET6@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_AF_INET6,8,3                   ; @AF_INET6
.subsections_via_symbols
