	.file	"extr_socket-util.c_fd_inc_rcvbuf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	fd_inc_rcvbuf
	.type	fd_inc_rcvbuf, @function
fd_inc_rcvbuf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR SO_RCVBUF[rip]
	mov	esi, DWORD PTR SOL_SOCKET[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rcx, rsp
	lea	r8, 4[rsp]
	mov	DWORD PTR 4[rsp], 4
	call	getsockopt@PLT
	test	eax, eax
	js	.L2
	cmp	DWORD PTR 4[rsp], 4
	je	.L9
.L2:
	mov	edx, DWORD PTR SO_RCVBUF[rip]
	mov	esi, DWORD PTR SOL_SOCKET[rip]
	mov	rcx, r12
	mov	edi, ebp
	call	setsockopt_int@PLT
	test	eax, eax
	js	.L10
.L4:
	mov	eax, 1
.L1:
	mov	rdx, QWORD PTR 8[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	movsx	rcx, DWORD PTR [rsp]
	lea	rdx, [r12+r12]
	xor	eax, eax
	cmp	rcx, rdx
	jb	.L2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edx, DWORD PTR SO_RCVBUFFORCE[rip]
	mov	esi, DWORD PTR SOL_SOCKET[rip]
	mov	rcx, r12
	mov	edi, ebp
	call	setsockopt_int@PLT
	test	eax, eax
	jns	.L4
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	fd_inc_rcvbuf, .-fd_inc_rcvbuf
	.comm	SO_RCVBUFFORCE,4,4
	.comm	SO_RCVBUF,4,4
	.comm	SOL_SOCKET,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_socket-util.c_fd_inc_rcvbuf.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fd_inc_rcvbuf
	.syntax unified
	.arm
	.fpu softvfp
	.type	fd_inc_rcvbuf, %function
fd_inc_rcvbuf:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #4
	push	{r4, r5, r6, r7, lr}
	ldr	r7, .L12
	sub	sp, sp, #28
	ldr	r6, .L12+4
	ldr	lr, .L12+8
	add	r3, sp, #16
	str	r3, [sp]
	mov	r4, r1
	ldr	r2, [r7]
	ldr	r1, [r6]
	add	r3, sp, #12
	ldr	lr, [lr]
	str	lr, [sp, #20]
	mov	lr,#0
	mov	r5, r0
	str	ip, [sp, #16]
	bl	getsockopt
	cmp	r0, #0
	blt	.L2
	ldr	r3, [sp, #16]
	cmp	r3, #4
	beq	.L9
.L2:
	mov	r3, r4
	mov	r0, r5
	ldr	r2, [r7]
	ldr	r1, [r6]
	bl	setsockopt_int
	cmp	r0, #0
	blt	.L10
.L4:
	mov	r0, #1
.L1:
	ldr	r3, .L12+8
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	ldr	r3, [sp, #12]
	cmp	r3, r4, lsl #1
	movcs	r0, #0
	bcc	.L2
	b	.L1
.L10:
	ldr	r2, .L12+12
	mov	r3, r4
	mov	r0, r5
	ldr	r1, [r6]
	ldr	r2, [r2]
	bl	setsockopt_int
	cmp	r0, #0
	bge	.L4
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	SO_RCVBUF
	.word	SOL_SOCKET
	.word	.LC0
	.word	SO_RCVBUFFORCE
	.size	fd_inc_rcvbuf, .-fd_inc_rcvbuf
	.comm	SO_RCVBUFFORCE,4,4
	.comm	SO_RCVBUF,4,4
	.comm	SOL_SOCKET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
