	.file	"extr_rsocket.c_ds_set_src.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ds_set_src, @function
ds_set_src:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	mov	edx, 16
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	r13, rsp
	mov	rdi, r13
	call	memset@PLT
	cmp	DWORD PTR [rbx], 4
	je	.L9
	cmp	DWORD PTR 0[rbp], 16
	ja	.L10
.L5:
	mov	eax, DWORD PTR AF_INET6[rip]
	mov	edx, 16
	lea	rsi, 4[rbx]
	mov	rdi, r13
	mov	DWORD PTR 12[rsp], eax
	mov	eax, DWORD PTR 28[rbx]
	mov	DWORD PTR 8[rsp], eax
	mov	eax, DWORD PTR 20[rbx]
	mov	DWORD PTR 4[rsp], eax
	call	memcpy@PLT
	mov	edx, DWORD PTR 0[rbp]
.L4:
	mov	rsi, r13
	mov	rdi, r12
	call	memcpy@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	DWORD PTR 0[rbp], 16
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edx, DWORD PTR 0[rbp]
	cmp	edx, 12
	jbe	.L3
	mov	DWORD PTR 0[rbp], 12
	mov	edx, 12
.L3:
	mov	eax, DWORD PTR AF_INET[rip]
	mov	DWORD PTR 8[rsp], eax
	mov	rax, QWORD PTR 24[rbx]
	mov	QWORD PTR [rsp], rax
	jmp	.L4
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ds_set_src, .-ds_set_src
	.comm	AF_INET6,4,4
	.comm	AF_INET,4,4
	.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_rsocket.c_ds_set_src.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ds_set_src, %function
ds_set_src:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, lr}
	ldr	ip, [r2]
	mov	r4, r0
	ldr	r0, .L11
	sub	sp, sp, #28
	cmp	ip, #4
	ldr	r0, [r0]
	str	r0, [sp, #20]
	mov	r0,#0
	ldr	r5, [r1]
	str	r3, [sp, #4]
	str	r3, [sp, #8]
	str	r3, [sp, #12]
	str	r3, [sp, #16]
	beq	.L9
	cmp	r5, #16
	movhi	r3, #16
	add	r0, sp, #4
	strhi	r3, [r1]
	add	r1, r2, #4
	mov	r2, #16
	movhi	r5, r3
	bl	memcpy
.L4:
	mov	r2, r5
	mov	r0, r4
	add	r1, sp, #4
	bl	memcpy
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	cmp	r5, #12
	movhi	r3, #12
	strhi	r3, [r1]
	movhi	r5, r3
	ldr	r3, .L11+4
	ldr	r1, [r2, #28]
	ldr	r0, [r3]
	ldr	r3, [r2, #24]
	str	r0, [sp, #12]
	str	r1, [sp, #8]
	str	r3, [sp, #4]
	b	.L4
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	AF_INET
	.size	ds_set_src, .-ds_set_src
	.comm	AF_INET6,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
