	.file	"extr_so_txtime.c_setup_rx.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"socket r"
.LC1:
	.string	"bind"
.LC2:
	.string	"setsockopt rcv timeout"
	.text
	.p2align 4
	.type	setup_rx, @function
setup_rx:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	xor	edx, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR SOCK_DGRAM[rip]
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 4[rsp], 100000
	call	socket@PLT
	mov	r12d, eax
	cmp	eax, -1
	je	.L14
.L2:
	mov	edx, r13d
	mov	rsi, rbp
	mov	edi, r12d
	call	bind@PLT
	test	rax, rax
	jne	.L15
.L3:
	mov	edx, DWORD PTR SO_RCVTIMEO[rip]
	mov	esi, DWORD PTR SOL_SOCKET[rip]
	lea	rcx, 4[rsp]
	mov	edi, r12d
	mov	r8d, 4
	call	setsockopt@PLT
	test	rax, rax
	jne	.L16
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L15:
	.cfi_restore_state
	mov	esi, DWORD PTR errno[rip]
	lea	rdx, .LC1[rip]
	mov	edi, 1
	call	error@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	mov	esi, DWORD PTR errno[rip]
	lea	rdx, .LC2[rip]
	mov	edi, 1
	call	error@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, DWORD PTR errno[rip]
	lea	rdx, .LC0[rip]
	mov	edi, 1
	call	error@PLT
	jmp	.L2
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	setup_rx, .-setup_rx
	.comm	errno,4,4
	.comm	SO_RCVTIMEO,4,4
	.comm	SOL_SOCKET,4,4
	.comm	SOCK_DGRAM,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_so_txtime.c_setup_rx.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"socket r\000"
	.align	2
.LC1:
	.ascii	"bind\000"
	.align	2
.LC2:
	.ascii	"setsockopt rcv timeout\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_rx, %function
setup_rx:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r2, .L18
	ldr	r3, .L18+4
	ldr	ip, .L18+8
	sub	sp, sp, #16
	mov	r5, r0
	mov	r6, r1
	ldr	r0, [r0]
	ldr	r1, [r2]
	mov	r2, #0
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	str	r3, [sp, #8]
	bl	socket
	cmn	r0, #1
	mov	r4, r0
	beq	.L14
.L2:
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	bl	bind
	cmp	r0, #0
	bne	.L15
.L3:
	mov	r1, #4
	ldr	r3, .L18+12
	ldr	r2, .L18+16
	str	r1, [sp]
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r2, [r2]
	add	r3, sp, #8
	bl	setsockopt
	cmp	r0, #0
	bne	.L16
.L1:
	ldr	r3, .L18+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L15:
	ldr	r3, .L18+20
	ldr	r2, .L18+24
	ldr	r1, [r3]
	mov	r0, #1
	bl	error
	b	.L3
.L16:
	ldr	r3, .L18+20
	ldr	r2, .L18+28
	ldr	r1, [r3]
	mov	r0, #1
	bl	error
	b	.L1
.L14:
	ldr	r3, .L18+20
	ldr	r2, .L18+32
	ldr	r1, [r3]
	mov	r0, #1
	bl	error
	b	.L2
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	SOCK_DGRAM
	.word	100000
	.word	.LC3
	.word	SOL_SOCKET
	.word	SO_RCVTIMEO
	.word	errno
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.size	setup_rx, .-setup_rx
	.comm	errno,4,4
	.comm	SO_RCVTIMEO,4,4
	.comm	SOL_SOCKET,4,4
	.comm	SOCK_DGRAM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
