	.file	"extr_svcsock.c_svc_tcp_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"setting up TCP socket for listening\n"
	.align 8
.LC1:
	.string	"setting up TCP socket for reading\n"
	.text
	.p2align 4
	.type	svc_tcp_init, @function
svc_tcp_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rdx, rsi
	mov	rbp, rdi
	mov	rsi, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbx, QWORD PTR 32[rdi]
	lea	rdi, svc_tcp_class[rip]
	call	svc_xprt_init@PLT
	mov	edi, DWORD PTR XPT_CACHE_AUTH[rip]
	mov	rsi, rbp
	call	set_bit@PLT
	mov	rax, QWORD PTR TCP_LISTEN[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L6
	lea	rdi, .LC1[rip]
	call	dprintk@PLT
	mov	rdi, QWORD PTR 8[rbp]
	mov	edx, 8
	xor	esi, esi
	mov	eax, DWORD PTR svc_tcp_state_change[rip]
	mov	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR svc_tcp_data_ready[rip]
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR svc_tcp_write_space[rip]
	mov	DWORD PTR 8[rbx], eax
	mov	QWORD PTR 24[rbp], 0
	mov	QWORD PTR 16[rbp], 0
	call	memset@PLT
	mov	rdi, rbx
	call	tcp_sk@PLT
	mov	edx, DWORD PTR TCP_NAGLE_OFF[rip]
	mov	rsi, rbp
	or	DWORD PTR [rax], edx
	mov	edi, DWORD PTR XPT_DATA[rip]
	call	set_bit@PLT
	mov	rax, QWORD PTR TCP_ESTABLISHED[rip]
	cmp	QWORD PTR [rbx], rax
	jne	.L7
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR XPT_CLOSE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rsi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	set_bit@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	dprintk@PLT
	mov	edi, DWORD PTR XPT_LISTENER[rip]
	mov	rsi, rbp
	call	set_bit@PLT
	mov	eax, DWORD PTR svc_tcp_listen_data_ready[rip]
	mov	edi, DWORD PTR XPT_CONN[rip]
	mov	rsi, rbp
	mov	DWORD PTR 12[rbx], eax
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	set_bit@PLT
	.cfi_endproc
.LFE0:
	.size	svc_tcp_init, .-svc_tcp_init
	.comm	svc_tcp_write_space,4,4
	.comm	svc_tcp_state_change,4,4
	.comm	svc_tcp_listen_data_ready,4,4
	.comm	svc_tcp_data_ready,4,4
	.comm	svc_tcp_class,4,4
	.comm	XPT_LISTENER,4,4
	.comm	XPT_DATA,4,4
	.comm	XPT_CONN,4,4
	.comm	XPT_CLOSE,4,4
	.comm	XPT_CACHE_AUTH,4,4
	.comm	TCP_NAGLE_OFF,4,4
	.comm	TCP_LISTEN,8,8
	.comm	TCP_ESTABLISHED,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_svcsock.c_svc_tcp_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"setting up TCP socket for listening\012\000"
	.align	2
.LC1:
	.ascii	"setting up TCP socket for reading\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	svc_tcp_init, %function
svc_tcp_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r2, r1
	mov	r1, r0
	ldr	r0, .L7
	ldr	r5, [r4, #16]
	bl	svc_xprt_init
	ldr	r3, .L7+4
	mov	r1, r4
	ldr	r0, [r3]
	bl	set_bit
	ldr	r3, .L7+8
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L6
	ldr	r0, .L7+12
	bl	dprintk
	mov	r3, #0
	ldr	r2, .L7+16
	ldr	r0, .L7+20
	ldr	r2, [r2]
	ldr	r1, .L7+24
	str	r2, [r5, #12]
	ldr	r0, [r0]
	ldr	r2, [r4, #4]
	ldr	r1, [r1]
	str	r0, [r5, #8]
	str	r1, [r5, #4]
	mov	r0, r5
	str	r3, [r4, #12]
	str	r3, [r4, #8]
	strb	r3, [r2]
	strb	r3, [r2, #1]
	strb	r3, [r2, #2]
	strb	r3, [r2, #3]
	bl	tcp_sk
	ldr	r2, .L7+28
	ldr	r3, [r0]
	ldr	r1, [r2]
	ldr	r2, .L7+32
	orr	r3, r3, r1
	str	r3, [r0]
	ldr	r0, [r2]
	mov	r1, r4
	bl	set_bit
	ldr	r3, .L7+36
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L7+40
	mov	r1, r4
	pop	{r4, r5, r6, lr}
	ldr	r0, [r3]
	b	set_bit
.L6:
	ldr	r0, .L7+44
	bl	dprintk
	ldr	r3, .L7+48
	mov	r1, r4
	ldr	r0, [r3]
	bl	set_bit
	ldr	r2, .L7+52
	ldr	r3, .L7+56
	ldr	r2, [r2]
	mov	r1, r4
	str	r2, [r5, #8]
	ldr	r0, [r3]
	pop	{r4, r5, r6, lr}
	b	set_bit
.L8:
	.align	2
.L7:
	.word	svc_tcp_class
	.word	XPT_CACHE_AUTH
	.word	TCP_LISTEN
	.word	.LC1
	.word	svc_tcp_state_change
	.word	svc_tcp_data_ready
	.word	svc_tcp_write_space
	.word	TCP_NAGLE_OFF
	.word	XPT_DATA
	.word	TCP_ESTABLISHED
	.word	XPT_CLOSE
	.word	.LC0
	.word	XPT_LISTENER
	.word	svc_tcp_listen_data_ready
	.word	XPT_CONN
	.size	svc_tcp_init, .-svc_tcp_init
	.comm	svc_tcp_write_space,4,4
	.comm	svc_tcp_state_change,4,4
	.comm	svc_tcp_listen_data_ready,4,4
	.comm	svc_tcp_data_ready,4,4
	.comm	svc_tcp_class,4,4
	.comm	XPT_LISTENER,4,4
	.comm	XPT_DATA,4,4
	.comm	XPT_CONN,4,4
	.comm	XPT_CLOSE,4,4
	.comm	XPT_CACHE_AUTH,4,4
	.comm	TCP_NAGLE_OFF,4,4
	.comm	TCP_LISTEN,4,4
	.comm	TCP_ESTABLISHED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
