	.file	"extr_vfwprintf.c___sbprintf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__sbprintf, @function
__sbprintf:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14d, ecx
	push	r13
	.cfi_offset 13, -40
	mov	r13, rdx
	push	r12
	.cfi_offset 12, -48
	mov	r12d, esi
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 88
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR BUFSIZ[rip]
	mov	rcx, rsp
	mov	r15, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L19:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L19
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L20
	mov	rdi, rbx
	call	prepwrite@PLT
	test	rax, rax
	je	.L5
.L22:
	mov	r12d, DWORD PTR EOF[rip]
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	lea	rsp, -40[rbp]
	mov	eax, r12d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdx, QWORD PTR 48[rbx]
	mov	eax, DWORD PTR __SNBF[rip]
	mov	esi, r12d
	mov	ecx, r14d
	mov	DWORD PTR -112[rbp], r15d
	mov	QWORD PTR -80[rbp], rdx
	not	eax
	mov	rdx, QWORD PTR 56[rbx]
	and	eax, DWORD PTR [rbx]
	mov	DWORD PTR -88[rbp], r15d
	lea	r15, -128[rbp]
	mov	DWORD PTR -128[rbp], eax
	mov	eax, DWORD PTR 64[rbx]
	mov	rdi, r15
	mov	QWORD PTR -72[rbp], rdx
	mov	rdx, r13
	mov	DWORD PTR -64[rbp], eax
	mov	QWORD PTR -120[rbp], rsp
	mov	QWORD PTR -96[rbp], rsp
	mov	QWORD PTR -104[rbp], 0
	call	__vfwprintf@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L7
	mov	rdi, r15
	call	__fflush@PLT
	test	rax, rax
	cmovne	r12d, DWORD PTR WEOF[rip]
.L7:
	mov	eax, DWORD PTR __SERR[rip]
	test	DWORD PTR -128[rbp], eax
	je	.L1
	or	DWORD PTR [rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	or	QWORD PTR -8[rsp+rdx], 0
	mov	rdi, rbx
	call	prepwrite@PLT
	test	rax, rax
	jne	.L22
	jmp	.L5
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	__sbprintf, .-__sbprintf
	.comm	__SNBF,4,4
	.comm	__SERR,4,4
	.comm	WEOF,4,4
	.comm	EOF,4,4
	.comm	BUFSIZ,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_vfwprintf.c___sbprintf.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__sbprintf, %function
__sbprintf:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #52
	ldr	ip, .L15
	mov	r8, r3
	ldr	r6, [ip]
	ldr	r3, .L15+4
	add	ip, r6, #7
	bic	ip, ip, #7
	sub	sp, sp, ip
	mov	r5, r1
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r4, r0
	bl	prepwrite
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L15+8
	ldr	r5, [r3]
.L1:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r5
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L2:
	ldr	r2, .L15+12
	ldr	ip, [r4]
	ldr	lr, [r2]
	str	r0, [fp, #-64]
	bic	ip, ip, lr
	ldr	r0, [r4, #28]
	mov	r1, r5
	ldr	lr, [r4, #32]
	ldr	r5, [r4, #36]
	str	r6, [fp, #-68]
	str	r6, [fp, #-56]
	str	ip, [fp, #-76]
	ldr	r6, [r4, #40]
	ldr	ip, [r4, #24]
	str	r0, [fp, #-48]
	mov	r3, r8
	mov	r2, r7
	sub	r0, fp, #76
	str	r5, [fp, #-40]
	str	sp, [fp, #-72]
	str	sp, [fp, #-60]
	str	r6, [fp, #-36]
	str	lr, [fp, #-44]
	str	ip, [fp, #-52]
	bl	__vfwprintf
	subs	r5, r0, #0
	blt	.L4
	sub	r0, fp, #76
	bl	__fflush
	cmp	r0, #0
	ldrne	r3, .L15+16
	ldrne	r5, [r3]
.L4:
	ldr	r3, .L15+20
	ldr	r2, [fp, #-76]
	ldr	r3, [r3]
	tst	r3, r2
	ldrne	r2, [r4]
	orrne	r3, r2, r3
	strne	r3, [r4]
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	BUFSIZ
	.word	.LC0
	.word	EOF
	.word	__SNBF
	.word	WEOF
	.word	__SERR
	.size	__sbprintf, .-__sbprintf
	.comm	__SNBF,4,4
	.comm	__SERR,4,4
	.comm	WEOF,4,4
	.comm	EOF,4,4
	.comm	BUFSIZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
