	.file	"26699023.c"
	.intel_syntax noprefix
	.text
	.data
	.align 4
	.type	maxchunk, @object
	.size	maxchunk, 4
maxchunk:
	.long	2147483647
	.text
	.globl	wr_bytes
	.type	wr_bytes, @function
wr_bytes:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 24
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	DWORD PTR -36[rbp], edi
	mov	r13, rsi
	mov	rbx, rdx
	jmp	.L2
.L4:
	mov	eax, DWORD PTR maxchunk[rip]
	cdqe
	cmp	rbx, rax
	cmovle	rax, rbx
	mov	r12d, eax
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, r12d
	mov	rsi, r13
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	cmp	r12d, eax
	je	.L3
	mov	eax, 0
	call	wr_fatal@PLT
.L3:
	movsx	rax, r12d
	add	r13, rax
	movsx	rax, r12d
	sub	rbx, rax
.L2:
	test	rbx, rbx
	jne	.L4
	nop
	add	rsp, 24
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	wr_bytes, .-wr_bytes
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"26699023.c"
	.text
	.data
	.align	2
	.type	maxchunk, %object
	.size	maxchunk, 4
maxchunk:
	.word	2147483647
	.text
	.align	2
	.global	wr_bytes
	.syntax unified
	.arm
	.fpu softvfp
	.type	wr_bytes, %function
wr_bytes:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #12
	str	r0, [fp, #-24]
	mov	r6, r1
	mov	r4, r2
	b	.L2
.L4:
	ldr	r3, .L5
	ldr	r3, [r3]
	cmp	r4, r3
	movlt	r5, r4
	movge	r5, r3
	mov	r2, r5
	mov	r1, r6
	ldr	r0, [fp, #-24]
	bl	write
	mov	r3, r0
	cmp	r5, r3
	beq	.L3
	bl	wr_fatal
.L3:
	mov	r3, r5
	add	r6, r6, r3
	sub	r4, r4, r5
.L2:
	cmp	r4, #0
	bne	.L4
	nop
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L6:
	.align	2
.L5:
	.word	maxchunk
	.size	wr_bytes, .-wr_bytes
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
