	.file	"extr_net.c_redisSetBlocking.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"fcntl(F_GETFL)"
.LC1:
	.string	"fcntl(F_SETFL)"
	.text
	.p2align 4
	.type	redisSetBlocking, @function
redisSetBlocking:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	xor	eax, eax
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR F_GETFL[rip]
	mov	edi, DWORD PTR [rdi]
	call	fcntl@PLT
	lea	rdx, .LC0[rip]
	cmp	eax, -1
	je	.L8
	mov	esi, DWORD PTR O_NONBLOCK[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, esi
	not	edx
	mov	ecx, edx
	and	ecx, eax
	or	eax, esi
	test	ebx, ebx
	mov	esi, DWORD PTR F_SETFL[rip]
	cmove	ecx, eax
	xor	eax, eax
	mov	edx, ecx
	call	fcntl@PLT
	mov	r8d, eax
	mov	eax, DWORD PTR REDIS_OK[rip]
	cmp	r8d, -1
	je	.L10
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	rdx, .LC1[rip]
.L8:
	mov	esi, DWORD PTR REDIS_ERR_IO[rip]
	mov	rdi, rbp
	call	__redisSetErrorFromErrno@PLT
	mov	rdi, rbp
	call	redisContextCloseFd@PLT
	mov	eax, DWORD PTR REDIS_ERR[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	redisSetBlocking, .-redisSetBlocking
	.comm	REDIS_OK,4,4
	.comm	REDIS_ERR_IO,4,4
	.comm	REDIS_ERR,4,4
	.comm	O_NONBLOCK,4,4
	.comm	F_SETFL,4,4
	.comm	F_GETFL,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_net.c_redisSetBlocking.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fcntl(F_GETFL)\000"
	.align	2
.LC1:
	.ascii	"fcntl(F_SETFL)\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	redisSetBlocking, %function
redisSetBlocking:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L12
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [r0]
	ldr	r1, [r2]
	bl	fcntl
	cmn	r0, #1
	beq	.L10
	ldr	r3, .L12+4
	cmp	r5, #0
	ldr	r2, [r3]
	ldr	r3, .L12+8
	bicne	r2, r0, r2
	orreq	r2, r0, r2
	ldr	r1, [r3]
	ldr	r0, [r4]
	bl	fcntl
	cmn	r0, #1
	beq	.L11
	ldr	r3, .L12+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r3, .L12+16
	ldr	r2, .L12+20
.L8:
	ldr	r1, [r3]
	mov	r0, r4
	bl	__redisSetErrorFromErrno
	mov	r0, r4
	bl	redisContextCloseFd
	ldr	r3, .L12+24
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, .L12+16
	ldr	r2, .L12+28
	b	.L8
.L13:
	.align	2
.L12:
	.word	F_GETFL
	.word	O_NONBLOCK
	.word	F_SETFL
	.word	REDIS_OK
	.word	REDIS_ERR_IO
	.word	.LC0
	.word	REDIS_ERR
	.word	.LC1
	.size	redisSetBlocking, .-redisSetBlocking
	.comm	REDIS_OK,4,4
	.comm	REDIS_ERR_IO,4,4
	.comm	REDIS_ERR,4,4
	.comm	O_NONBLOCK,4,4
	.comm	F_SETFL,4,4
	.comm	F_GETFL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
