	.file	"extr_md.c_calc_sb_1_csum.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	calc_sb_1_csum, @function
calc_sb_1_csum:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR 4[rdi]
	call	le32_to_cpu@PLT
	lea	r13d, 256[rax+rax]
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR [r12], 0
	mov	DWORD PTR 12[rsp], eax
	cmp	r13d, 3
	jle	.L6
	sub	r13d, 4
	mov	r15, r12
	xor	edi, edi
	xor	ebx, ebx
	mov	r14d, r13d
	shr	r14d, 2
	mov	eax, r14d
	lea	rbp, 4[r12+rax*4]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR [r15]
.L4:
	call	le32_to_cpu@PLT
	add	r15, 4
	cdqe
	add	rbx, rax
	cmp	r15, rbp
	jne	.L3
	neg	r14d
	lea	r13d, 0[r13+r14*4]
.L2:
	cmp	r13d, 2
	je	.L9
.L5:
	mov	eax, DWORD PTR 12[rsp]
	mov	edi, ebx
	shr	rbx, 32
	add	rdi, rbx
	mov	DWORD PTR [r12], eax
	add	rsp, 24
	.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
	jmp	cpu_to_le32@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	call	le16_to_cpu@PLT
	add	rbx, rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rbp, r12
	xor	ebx, ebx
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	calc_sb_1_csum, .-calc_sb_1_csum
	.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_md.c_calc_sb_1_csum.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calc_sb_1_csum, %function
calc_sb_1_csum:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, r0
	ldr	r0, [r0, #4]
	bl	le32_to_cpu
	mov	r3, #0
	add	r5, r0, #128
	lsl	r5, r5, #1
	cmp	r5, #3
	ldr	r9, [r8]
	str	r3, [r8]
	ble	.L6
	sub	r5, r5, #4
	bic	r10, r5, #3
	mov	r0, r3
	mov	r4, r8
	mov	r6, #0
	mov	r7, #0
	add	r10, r8, r10
	b	.L4
.L3:
	ldr	r0, [r4, #4]!
.L4:
	bl	le32_to_cpu
	adds	r6, r6, r0
	adc	r7, r7, r0, asr #31
	cmp	r4, r10
	bne	.L3
	lsr	r3, r5, #2
	add	r2, r3, #1
	rsb	r3, r3, r3, lsl #30
	add	r2, r8, r2, lsl #2
	add	r5, r5, r3, lsl #2
.L2:
	cmp	r5, #2
	beq	.L9
.L5:
	mov	r1, #0
	adds	r0, r6, r7
	str	r9, [r8]
	adc	r1, r1, r1
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	cpu_to_le32
.L9:
	ldr	r0, [r2]
	bl	le16_to_cpu
	adds	r6, r6, r0
	adc	r7, r7, r0, asr #31
	b	.L5
.L6:
	mov	r2, r8
	mov	r6, #0
	mov	r7, #0
	b	.L2
	.size	calc_sb_1_csum, .-calc_sb_1_csum
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
