	.file	"extr_oss.c_oss_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	oss_write, @function
oss_write:
.LFB0:
	.cfi_startproc
	endbr64
	xor	eax, eax
	test	rdx, rdx
	jne	.L11
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	edi, DWORD PTR [rdi]
	call	write@PLT
	test	eax, eax
	js	.L12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rax, QWORD PTR EAGAIN[rip]
	cmp	QWORD PTR errno[rip], rax
	jne	.L4
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR F_GETFL[rip]
	call	fcntl@PLT
	test	DWORD PTR O_NONBLOCK[rip], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	sete	al
	movzx	eax, al
	neg	eax
	ret
.L4:
	.cfi_restore_state
	mov	eax, -1
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	oss_write, .-oss_write
	.comm	errno,8,8
	.comm	O_NONBLOCK,4,4
	.comm	F_GETFL,4,4
	.comm	EAGAIN,8,8
	.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_oss.c_oss_write.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	oss_write, %function
oss_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	subs	r3, r2, #0
	bne	.L10
	mov	r0, r3
	bx	lr
.L10:
	push	{r4, lr}
	mov	r4, r0
	ldr	r0, [r0]
	bl	write
	cmp	r0, #0
	popge	{r4, pc}
	ldr	r2, .L11
	ldr	r3, .L11+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L4
	ldr	r3, .L11+8
	ldr	r0, [r4]
	ldr	r1, [r3]
	bl	fcntl
	ldr	r3, .L11+12
	ldr	r3, [r3]
	tst	r0, r3
	mvneq	r0, #0
	movne	r0, #0
	pop	{r4, pc}
.L4:
	mvn	r0, #0
	pop	{r4, pc}
.L12:
	.align	2
.L11:
	.word	errno
	.word	EAGAIN
	.word	F_GETFL
	.word	O_NONBLOCK
	.size	oss_write, .-oss_write
	.comm	errno,4,4
	.comm	O_NONBLOCK,4,4
	.comm	F_GETFL,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
