	.file	"extr_lodepng.c_addPaddingBits.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	addPaddingBits, @function
addPaddingBits:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	sub	rdx, rcx
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	DWORD PTR 12[rsp], r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rsp], rdx
	mov	QWORD PTR 24[rsp], 0
	mov	QWORD PTR 32[rsp], 0
	mov	DWORD PTR 8[rsp], 0
	test	r8d, r8d
	je	.L1
	mov	rbp, rdi
	mov	r14, rsi
	lea	r15, 32[rsp]
	mov	r12, rcx
	.p2align 4,,10
	.p2align 3
.L2:
	xor	r13d, r13d
	lea	rbx, 24[rsp]
	test	r12, r12
	je	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rsi, r14
	mov	rdi, r15
	add	r13, 1
	call	readBitFromReversedStream@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	movzx	edx, al
	call	setBitOfReversedStream@PLT
	cmp	r12, r13
	jne	.L4
.L7:
	cmp	QWORD PTR [rsp], 0
	je	.L5
	xor	r13d, r13d
	lea	rbx, 24[rsp]
	.p2align 4,,10
	.p2align 3
.L6:
	xor	edx, edx
	mov	rsi, rbp
	mov	rdi, rbx
	add	r13, 1
	call	setBitOfReversedStream@PLT
	cmp	QWORD PTR [rsp], r13
	jne	.L6
.L5:
	add	DWORD PTR 8[rsp], 1
	mov	eax, DWORD PTR 8[rsp]
	cmp	DWORD PTR 12[rsp], eax
	jne	.L2
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 56
	.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
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	addPaddingBits, .-addPaddingBits
	.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_lodepng.c_addPaddingBits.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	addPaddingBits, %function
addPaddingBits:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, #0
	sub	sp, sp, #16
	ldr	r10, [sp, #48]
	mov	r6, r3
	sub	r7, r2, r3
	ldr	r3, .L20
	cmp	r10, r9
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	movne	r5, r0
	movne	r8, r1
	str	r9, [sp, #4]
	str	r9, [sp, #8]
	beq	.L1
.L2:
	cmp	r6, #0
	movne	r4, #0
	beq	.L7
.L4:
	mov	r1, r8
	add	r0, sp, #8
	bl	readBitFromReversedStream
	add	r4, r4, #1
	mov	r2, r0
	mov	r1, r5
	add	r0, sp, #4
	bl	setBitOfReversedStream
	cmp	r6, r4
	bne	.L4
.L7:
	cmp	r7, #0
	beq	.L5
	mov	r4, #0
.L6:
	mov	r2, #0
	mov	r1, r5
	add	r4, r4, #1
	add	r0, sp, #4
	bl	setBitOfReversedStream
	cmp	r7, r4
	bne	.L6
.L5:
	add	r9, r9, #1
	cmp	r10, r9
	bne	.L2
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.size	addPaddingBits, .-addPaddingBits
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
