	.file	"extr_socket_server.c_socket_server_send.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"socket-server : set udp (%d) address first.\n"
	.text
	.p2align 4
	.globl	socket_server_send
	.type	socket_server_send, @function
socket_server_send:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	r12d, DWORD PTR [rsi]
	mov	rbp, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	edi, r12d
	call	HASH_ID@PLT
	sal	rax, 6
	add	rbp, rax
	cmp	DWORD PTR 0[rbp], r12d
	jne	.L2
	mov	rax, QWORD PTR SOCKET_TYPE_INVALID[rip]
	cmp	QWORD PTR 8[rbp], rax
	je	.L2
	lea	r15, 8[rsp]
	mov	rdi, rbp
	mov	rsi, r15
	call	socket_lock_init@PLT
	mov	esi, r12d
	mov	rdi, rbp
	call	can_direct_write@PLT
	test	rax, rax
	jne	.L20
.L6:
	mov	rdi, rbp
	mov	esi, r12d
	lea	rbp, 16[rsp]
	call	inc_sending_ref@PLT
	lea	rsi, 20[rsp]
	mov	rdi, r14
	mov	DWORD PTR 16[rsp], r12d
	call	clone_buffer@PLT
	mov	ecx, 16
	mov	rsi, rbp
	mov	rdi, r13
	mov	edx, 68
	mov	QWORD PTR 24[rsp], rax
	call	send_request@PLT
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR 40[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L21
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rdi, r15
	call	socket_trylock@PLT
	test	rax, rax
	je	.L6
	mov	esi, r12d
	mov	rdi, rbp
	call	can_direct_write@PLT
	test	rax, rax
	je	.L8
	lea	rsi, 16[rsp]
	mov	rdx, r14
	mov	rdi, r13
	call	send_object_init_from_sendbuffer@PLT
	mov	rax, QWORD PTR PROTOCOL_TCP[rip]
	cmp	QWORD PTR 16[rbp], rax
	je	.L22
	mov	esi, DWORD PTR 56[rbp]
	lea	rbx, 12[rsp]
	mov	rdi, rbp
	mov	rdx, rbx
	call	udp_socket_address@PLT
	mov	r9, rax
	test	rax, rax
	je	.L23
	mov	edi, DWORD PTR 24[rbp]
	mov	rdx, QWORD PTR 16[rsp]
	mov	r8, rbx
	xor	ecx, ecx
	mov	esi, DWORD PTR 32[rsp]
	call	sendto@PLT
.L10:
	test	rax, rax
	mov	r12d, 0
	mov	rsi, rbp
	mov	rdi, r13
	cmovns	r12, rax
	mov	rdx, r12
	call	stat_write@PLT
	cmp	QWORD PTR 16[rsp], r12
	je	.L24
	lea	rsi, 40[rbp]
	mov	rdi, r14
	call	clone_buffer@PLT
	mov	QWORD PTR 32[rbp], r12
	mov	esi, DWORD PTR 24[rbp]
	mov	rdx, rbp
	mov	QWORD PTR 48[rbp], rax
	mov	edi, DWORD PTR 0[r13]
	mov	ecx, 1
	call	sp_write@PLT
	mov	rdi, r15
	call	socket_unlock@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, r15
	call	socket_unlock@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edi, DWORD PTR stderr[rip]
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	mov	rdi, r15
	call	socket_unlock@PLT
	mov	rdi, QWORD PTR 8[r14]
	call	[QWORD PTR 24[rsp]]
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edi, DWORD PTR 24[rbp]
	mov	rdx, QWORD PTR 16[rsp]
	mov	esi, DWORD PTR 32[rsp]
	call	write@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, r15
	call	socket_unlock@PLT
	mov	rdi, QWORD PTR 8[r14]
	call	[QWORD PTR 24[rsp]]
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rsi, r14
	mov	rdi, r13
	call	free_buffer@PLT
	mov	eax, -1
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	socket_server_send, .-socket_server_send
	.comm	stderr,4,4
	.comm	SOCKET_TYPE_INVALID,8,8
	.comm	PROTOCOL_TCP,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_socket_server.c_socket_server_send.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"socket-server : set udp (%d) address first.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	socket_server_send
	.syntax unified
	.arm
	.fpu softvfp
	.type	socket_server_send, %function
socket_server_send:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r8, [r1]
	ldr	r3, .L25
	sub	sp, sp, #32
	mov	r0, r8
	ldr	r4, [r5, #4]
	mov	r7, r1
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	HASH_ID
	ldr	r6, [r4, r0, lsl #5]
	add	r4, r4, r0, lsl #5
	cmp	r6, r8
	bne	.L2
	ldr	r3, .L25+4
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L2
	add	r1, sp, #8
	mov	r0, r4
	bl	socket_lock_init
	mov	r1, r6
	mov	r0, r4
	bl	can_direct_write
	cmp	r0, #0
	bne	.L20
.L6:
	mov	r1, r8
	mov	r0, r4
	bl	inc_sending_ref
	add	r1, sp, #20
	mov	r0, r7
	str	r8, [sp, #16]
	bl	clone_buffer
	mov	ip, r0
	mov	r3, #12
	mov	r0, r5
	mov	r2, #68
	add	r1, sp, #16
	str	ip, [sp, #24]
	bl	send_request
	mov	r0, #0
.L1:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	add	r0, sp, #8
	bl	socket_trylock
	cmp	r0, #0
	beq	.L6
	mov	r1, r6
	mov	r0, r4
	bl	can_direct_write
	cmp	r0, #0
	beq	.L8
	mov	r2, r7
	mov	r0, r5
	add	r1, sp, #16
	bl	send_object_init_from_sendbuffer
	ldr	r3, .L25+8
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L22
	add	r2, sp, #12
	mov	r0, r4
	ldr	r1, [r4, #28]
	bl	udp_socket_address
	subs	r2, r0, #0
	beq	.L23
	ldr	r0, [r4, #12]
	str	r2, [sp, #4]
	add	r2, sp, #12
	str	r2, [sp]
	mov	r3, #0
	ldr	r2, [sp, #16]
	ldr	r1, [sp, #24]
	bl	sendto
.L10:
	bic	r6, r0, r0, asr #31
	mov	r2, r6
	mov	r1, r4
	mov	r0, r5
	bl	stat_write
	ldr	r3, [sp, #16]
	cmp	r3, r6
	beq	.L24
	add	r1, r4, #20
	mov	r0, r7
	bl	clone_buffer
	mov	r3, #1
	mov	r2, r4
	ldr	r1, [r4, #12]
	str	r0, [r4, #24]
	str	r6, [r4, #16]
	ldr	r0, [r5]
	bl	sp_write
	add	r0, sp, #8
	bl	socket_unlock
	mov	r0, #0
	b	.L1
.L8:
	add	r0, sp, #8
	bl	socket_unlock
	b	.L6
.L23:
	ldr	r3, .L25+12
	mov	r2, r6
	ldr	r0, [r3]
	ldr	r1, .L25+16
	bl	fprintf
	add	r0, sp, #8
	bl	socket_unlock
	ldr	r0, [r7, #4]
	ldr	r3, [sp, #20]
	blx	r3
	mvn	r0, #0
	b	.L1
.L22:
	ldr	r2, [sp, #16]
	ldr	r1, [sp, #24]
	ldr	r0, [r4, #12]
	bl	write
	b	.L10
.L24:
	add	r0, sp, #8
	bl	socket_unlock
	ldr	r0, [r7, #4]
	ldr	r3, [sp, #20]
	blx	r3
	mov	r0, #0
	b	.L1
.L2:
	mov	r1, r7
	mov	r0, r5
	bl	free_buffer
	mvn	r0, #0
	b	.L1
.L21:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC1
	.word	SOCKET_TYPE_INVALID
	.word	PROTOCOL_TCP
	.word	stderr
	.word	.LC0
	.size	socket_server_send, .-socket_server_send
	.comm	stderr,4,4
	.comm	SOCKET_TYPE_INVALID,4,4
	.comm	PROTOCOL_TCP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
