	.file	"extr_amiflop.c_putsec.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	putsec, @function
putsec:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13, 16[rsi]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edx
	mov	edx, 2863311530
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 64
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	test	BYTE PTR -8[rsi], 1
	mov	eax, 715827882
	mov	DWORD PTR 4[rsp], ebp
	cmove	rax, rdx
	and	edi, 3
	mov	QWORD PTR 8[rsi], 1149846665
	sal	rdi, 5
	mov	DWORD PTR [rsp], 255
	mov	QWORD PTR [rsi], rax
	mov	rax, QWORD PTR unit[rip]
	mov	r12, rdi
	add	rax, rdi
	mov	edx, DWORD PTR 24[rax]
	mov	rcx, QWORD PTR 16[rax]
	mov	DWORD PTR 40[rsp], edx
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR [rcx]
	imul	eax, DWORD PTR [rdx]
	sub	eax, ebp
	mov	DWORD PTR 8[rsp], eax
	mov	rax, QWORD PTR 32[rsp]
	lea	rcx, 128[rax]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	QWORD PTR [rax], 0
	add	rax, 8
	cmp	rax, rcx
	jne	.L3
	mov	r14, rsp
	mov	esi, 24
	sal	ebp, 9
	mov	rdi, r14
	movsx	rbp, ebp
	call	checksum@PLT
	mov	esi, 512
	mov	QWORD PTR 24[rsp], rax
	mov	rax, QWORD PTR unit[rip]
	mov	rdi, QWORD PTR [rax+r12]
	add	rdi, rbp
	call	checksum@PLT
	mov	edx, 4
	mov	rsi, r14
	mov	rdi, r13
	mov	QWORD PTR 16[rsp], rax
	call	encode_block@PLT
	lea	rdi, 32[rbx]
	lea	rsi, 32[rsp]
	mov	edx, 16
	call	encode_block@PLT
	lea	rdi, 96[rbx]
	lea	rsi, 24[rsp]
	mov	edx, 4
	call	encode_block@PLT
	lea	rdi, 112[rbx]
	lea	rsi, 16[rsp]
	mov	edx, 4
	call	encode_block@PLT
	mov	rax, QWORD PTR unit[rip]
	mov	edx, 512
	lea	rdi, 128[rbx]
	mov	rsi, QWORD PTR [rax+r12]
	add	rsi, rbp
	call	encode_block@PLT
	lea	rax, 2176[rbx]
	mov	rbx, QWORD PTR 56[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	putsec, .-putsec
	.comm	unit,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_amiflop.c_putsec.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	putsec, %function
putsec:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	ldr	lr, [r1, #-4]
	ldr	ip, .L10
	ldr	r3, .L10+4
	mov	r5, r2
	tst	lr, #1
	movne	r1, ip
	moveq	r1, r3
	mov	r8, r4
	mov	r9, #255
	mov	lr, #0
	ldr	r7, .L10+8
	and	r6, r0, #3
	ldr	r2, [r7]
	sub	sp, sp, #36
	add	r2, r2, r6, lsl #4
	ldr	r3, [r2, #8]
	ldr	ip, [r2, #4]
	ldr	r3, [r3]
	ldr	ip, [ip]
	ldr	r2, [r2, #12]
	mul	r3, ip, r3
	ldr	r0, .L10+12
	ldr	ip, [sp, #20]
	ldr	r10, .L10+16
	sub	r3, r3, r5
	str	r5, [sp, #4]
	ldr	r10, [r10]
	str	r10, [sp, #28]
	mov	r10,#0
	str	r1, [r8], #8
	str	r3, [sp, #8]
	str	r0, [r4, #4]
	sub	r3, ip, #4
	str	r2, [sp, #24]
	str	r9, [sp]
	add	ip, ip, #60
.L3:
	str	lr, [r3, #4]!
	cmp	r3, ip
	bne	.L3
	mov	r1, #16
	mov	r0, sp
	bl	checksum
	ldr	r3, [r7]
	str	r0, [sp, #16]
	ldr	r0, [r3, r6, lsl #4]
	mov	r1, #512
	add	r0, r0, r5, lsl #9
	bl	checksum
	mov	r3, r0
	mov	r1, sp
	mov	r2, #4
	mov	r0, r8
	str	r3, [sp, #12]
	bl	encode_block
	mov	r2, #16
	add	r1, sp, #20
	add	r0, r4, r2
	bl	encode_block
	mov	r2, #4
	add	r1, sp, #16
	add	r0, r4, #48
	bl	encode_block
	mov	r2, #4
	add	r1, sp, #12
	add	r0, r4, #56
	bl	encode_block
	ldr	r3, [r7]
	lsl	r5, r5, #9
	ldr	r1, [r3, r6, lsl #4]
	mov	r2, #512
	add	r1, r5, r1
	add	r0, r4, #64
	bl	encode_block
	ldr	r3, .L10+16
	add	r0, r4, #1088
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	715827882
	.word	-1431655766
	.word	unit
	.word	1149846665
	.word	.LC0
	.size	putsec, .-putsec
	.comm	unit,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
