	.file	"extr_zlog.c_zlog_stream_unbuffered_write.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"..."
.LC1:
	.string	"\""
.LC2:
	.string	"\n"
	.text
	.p2align 4
	.type	zlog_stream_unbuffered_write, @function
zlog_stream_unbuffered_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR [rdi]
	test	rax, rax
	je	.L18
.L2:
	mov	rbx, QWORD PTR 16[rbp]
	add	rbx, QWORD PTR 8[rbp]
	add	rbx, rax
	mov	rdx, QWORD PTR zlog_limit[rip]
	lea	rcx, [rbx+r14]
	cmp	rdx, rcx
	ja	.L10
	cmp	QWORD PTR 40[rbp], 0
	jne	.L19
	mov	DWORD PTR 32[rbp], 1
	cmp	rdx, rcx
	je	.L11
	sub	rdx, 3
	mov	r8d, 3
	lea	r12, .LC0[rip]
	sub	rdx, rax
	mov	r14, rdx
.L3:
	mov	rcx, r12
	mov	rdx, r14
	mov	rsi, r13
	mov	rdi, rbp
	call	zlog_stream_direct_write_ex@PLT
	test	rax, rax
	jle	.L1
	add	QWORD PTR 0[rbp], rax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	lea	r15, -1[rdx]
	mov	rsi, r13
	mov	rdi, rbp
	mov	r12, r15
	sub	r12, rbx
	cmp	rdx, rcx
	mov	rdx, r12
	je	.L16
	call	zlog_stream_direct_write@PLT
	cmp	QWORD PTR 16[rbp], 0
	jne	.L20
.L7:
	mov	rsi, QWORD PTR 24[rbp]
	test	rsi, rsi
	je	.L8
	mov	rdx, QWORD PTR 8[rbp]
	mov	rdi, rbp
	call	zlog_stream_direct_write@PLT
.L8:
	mov	edx, 1
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
.L16:
	call	zlog_stream_direct_write@PLT
	sub	rbx, r15
	lea	rsi, 0[r13+r12]
	mov	rdi, rbp
	mov	QWORD PTR 0[rbp], 0
	lea	rdx, [rbx+r14]
	call	zlog_stream_unbuffered_write
	add	r12, rax
	test	rax, rax
	cmovg	rax, r12
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	xor	r8d, r8d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edx, DWORD PTR 48[rdi]
	mov	esi, DWORD PTR 52[rdi]
	call	zlog_stream_prefix_ex@PLT
	mov	QWORD PTR 0[rbp], rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edx, 1
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	zlog_stream_direct_write@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	xor	r8d, r8d
	xor	r12d, r12d
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	zlog_stream_unbuffered_write, .-zlog_stream_unbuffered_write
	.comm	zlog_limit,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_zlog.c_zlog_stream_unbuffered_write.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"...\000"
	.align	2
.LC1:
	.ascii	"\"\000"
	.align	2
.LC2:
	.ascii	"\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zlog_stream_unbuffered_write, %function
zlog_stream_unbuffered_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	lr, [r0]
	mov	r4, r0
	cmp	lr, #0
	mov	r7, r1
	mov	r8, r2
	sub	sp, sp, #12
	beq	.L21
.L2:
	ldr	r2, [r4, #8]
	ldr	r5, [r4, #4]
	ldr	r3, .L24
	add	r5, r5, r2
	ldr	ip, [r3]
	add	r5, r5, lr
	add	r2, r5, r8
	cmp	ip, r2
	bhi	.L10
	ldr	r3, [r4, #20]
	cmp	r3, #0
	bne	.L22
	mov	r1, #1
	cmp	ip, r2
	moveq	r6, r3
	str	r1, [r4, #16]
	movne	r3, #3
	subne	r2, ip, #3
	ldrne	r6, .L24+4
	subne	r8, r2, lr
.L3:
	str	r3, [sp]
	mov	r2, r8
	mov	r3, r6
	mov	r1, r7
	mov	r0, r4
	bl	zlog_stream_direct_write_ex
	cmp	r0, #0
	ldrgt	r3, [r4]
	addgt	r3, r3, r0
	strgt	r3, [r4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L22:
	sub	r6, ip, #1
	cmp	ip, r2
	sub	r9, r6, r5
	mov	r2, r9
	mov	r1, r7
	mov	r0, r4
	beq	.L19
	bl	zlog_stream_direct_write
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L23
.L7:
	ldr	r1, [r4, #12]
	cmp	r1, #0
	beq	.L8
	mov	r0, r4
	ldr	r2, [r4, #4]
	bl	zlog_stream_direct_write
.L8:
	mov	r2, #1
	mov	r0, r4
	ldr	r1, .L24+8
.L19:
	bl	zlog_stream_direct_write
	mov	r3, #0
	sub	r2, r5, r6
	mov	r0, r4
	add	r2, r2, r8
	add	r1, r7, r9
	str	r3, [r4]
	bl	zlog_stream_unbuffered_write
	cmp	r0, #0
	addgt	r0, r0, r9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L10:
	mov	r3, #0
	b	.L3
.L21:
	ldr	r2, [r0, #24]
	ldr	r1, [r0, #28]
	bl	zlog_stream_prefix_ex
	mov	lr, r0
	str	r0, [r4]
	b	.L2
.L23:
	mov	r2, #1
	mov	r0, r4
	ldr	r1, .L24+12
	bl	zlog_stream_direct_write
	b	.L7
.L25:
	.align	2
.L24:
	.word	zlog_limit
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.size	zlog_stream_unbuffered_write, .-zlog_stream_unbuffered_write
	.comm	zlog_limit,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
