	.file	"extr_socket.c_nl_socket_set_buffer_size.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	nl_socket_set_buffer_size
	.type	nl_socket_set_buffer_size, @function
nl_socket_set_buffer_size:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	DWORD PTR 12[rsp], esi
	mov	DWORD PTR 8[rsp], edx
	test	esi, esi
	jg	.L2
	mov	DWORD PTR 12[rsp], 32768
.L2:
	mov	eax, DWORD PTR 8[rsp]
	test	eax, eax
	jg	.L3
	mov	DWORD PTR 8[rsp], 32768
.L3:
	mov	eax, DWORD PTR NLE_BAD_SOCK[rip]
	mov	edi, DWORD PTR [rbx]
	neg	eax
	cmp	edi, -1
	je	.L1
	mov	edx, DWORD PTR SO_SNDBUF[rip]
	mov	esi, DWORD PTR SOL_SOCKET[rip]
	lea	rcx, 8[rsp]
	mov	r8d, 4
	call	setsockopt@PLT
	test	eax, eax
	js	.L9
	mov	edx, DWORD PTR SO_RCVBUF[rip]
	mov	esi, DWORD PTR SOL_SOCKET[rip]
	lea	rcx, 12[rsp]
	mov	r8d, 4
	mov	edi, DWORD PTR [rbx]
	call	setsockopt@PLT
	test	eax, eax
	js	.L9
	mov	eax, DWORD PTR NL_SOCK_BUFSIZE_SET[rip]
	or	DWORD PTR 4[rbx], eax
	xor	eax, eax
.L1:
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR errno[rip]
	call	nl_syserr2nlerr@PLT
	add	rsp, 16
	.cfi_def_cfa_offset 16
	neg	eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	nl_socket_set_buffer_size, .-nl_socket_set_buffer_size
	.comm	errno,4,4
	.comm	SO_SNDBUF,4,4
	.comm	SO_RCVBUF,4,4
	.comm	SOL_SOCKET,4,4
	.comm	NL_SOCK_BUFSIZE_SET,4,4
	.comm	NLE_BAD_SOCK,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.c_nl_socket_set_buffer_size.c"
	.text
	.align	2
	.global	nl_socket_set_buffer_size
	.syntax unified
	.arm
	.fpu softvfp
	.type	nl_socket_set_buffer_size, %function
nl_socket_set_buffer_size:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	movle	r3, #32768
	push	{r4, r5, r6, lr}
	sub	sp, sp, #16
	str	r2, [sp, #8]
	str	r1, [sp, #12]
	strle	r3, [sp, #12]
	ldr	r3, [sp, #8]
	mov	r4, r0
	cmp	r3, #0
	movle	r3, #32768
	ldr	r0, [r0]
	strle	r3, [sp, #8]
	cmn	r0, #1
	beq	.L11
	mov	r6, #4
	ldr	r3, .L12
	ldr	r5, .L12+4
	str	r6, [sp]
	ldr	r2, [r3]
	ldr	r1, [r5]
	add	r3, sp, #8
	bl	setsockopt
	cmp	r0, #0
	blt	.L9
	ldr	r3, .L12+8
	str	r6, [sp]
	ldr	r2, [r3]
	ldr	r1, [r5]
	ldr	r0, [r4]
	add	r3, sp, #12
	bl	setsockopt
	cmp	r0, #0
	blt	.L9
	mov	r0, #0
	ldr	r2, .L12+12
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4, #4]
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r3, .L12+16
	ldr	r0, [r3]
	bl	nl_syserr2nlerr
	rsb	r0, r0, #0
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, .L12+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	SO_SNDBUF
	.word	SOL_SOCKET
	.word	SO_RCVBUF
	.word	NL_SOCK_BUFSIZE_SET
	.word	errno
	.word	NLE_BAD_SOCK
	.size	nl_socket_set_buffer_size, .-nl_socket_set_buffer_size
	.comm	errno,4,4
	.comm	SO_SNDBUF,4,4
	.comm	SO_RCVBUF,4,4
	.comm	SOL_SOCKET,4,4
	.comm	NL_SOCK_BUFSIZE_SET,4,4
	.comm	NLE_BAD_SOCK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
