	.file	"extr_bss_mem.c_mem_ctrl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mem_ctrl, @function
mem_ctrl:
.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
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r13, QWORD PTR 16[rdi]
	mov	edx, DWORD PTR [rdi]
	mov	r14, QWORD PTR 0[r13]
	mov	rdi, QWORD PTR 8[r13]
	mov	r9d, edx
	and	r9d, DWORD PTR BIO_FLAGS_MEM_RDONLY[rip]
	mov	r8, r14
	cmove	r8, rdi
	add	esi, -128
	cmp	esi, 13
	ja	.L19
	mov	rbx, rcx
	lea	rcx, .L5[rip]
	movsx	rax, DWORD PTR [rcx+rsi*4]
	add	rax, rcx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L14-.L5
	.long	.L13-.L5
	.long	.L12-.L5
	.long	.L19-.L5
	.long	.L11-.L5
	.long	.L10-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L9-.L5
	.long	.L8-.L5
	.long	.L7-.L5
	.long	.L28-.L5
	.long	.L6-.L5
	.long	.L28-.L5
	.text
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r8, QWORD PTR 8[r14]
	mov	eax, 1
	test	r8, r8
	je	.L1
	test	r9d, r9d
	jne	.L15
	test	DWORD PTR BIO_FLAGS_NONCLEAR_RST[rip], edx
	je	.L30
.L16:
	movdqu	xmm1, XMMWORD PTR [r14]
	movups	XMMWORD PTR [rdi], xmm1
	mov	rax, QWORD PTR 16[r14]
	mov	QWORD PTR 16[rdi], rax
	.p2align 4,,10
	.p2align 3
.L28:
	mov	eax, 1
.L1:
	pop	rbx
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	xor	eax, eax
	cmp	QWORD PTR [r8], 0
	sete	al
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, 1
	test	rbx, rbx
	je	.L1
	test	r9d, r9d
	je	.L31
.L17:
	mov	QWORD PTR [rbx], r14
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	DWORD PTR 8[rbp], r12d
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR [r8]
	test	rbx, rbx
	je	.L1
	mov	rdx, QWORD PTR 8[r8]
	mov	QWORD PTR [rbx], rdx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	movsx	rax, DWORD PTR 8[rbp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR [r8]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	DWORD PTR 4[rbp], r12d
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, rbp
	call	mem_buf_free@PLT
	mov	rax, QWORD PTR 8[r13]
	movdqu	xmm0, XMMWORD PTR [rbx]
	mov	DWORD PTR 8[rbp], r12d
	mov	QWORD PTR 0[r13], rbx
	movups	XMMWORD PTR [rax], xmm0
	mov	rdx, QWORD PTR 16[rbx]
	mov	QWORD PTR 16[rax], rdx
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	movdqu	xmm2, XMMWORD PTR [rdi]
	movups	XMMWORD PTR [r14], xmm2
	mov	rdx, QWORD PTR 16[rdi]
	mov	QWORD PTR 16[r14], rdx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rdi, rbp
	call	mem_buf_sync@PLT
	mov	r14, QWORD PTR 0[r13]
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L30:
	mov	edx, DWORD PTR 16[r14]
	mov	rdi, r8
	xor	esi, esi
	call	memset@PLT
	mov	QWORD PTR [r14], 0
	mov	rdi, QWORD PTR 8[r13]
	mov	r14, QWORD PTR 0[r13]
	jmp	.L16
	.cfi_endproc
.LFE0:
	.size	mem_ctrl, .-mem_ctrl
	.comm	BIO_FLAGS_NONCLEAR_RST,4,4
	.comm	BIO_FLAGS_MEM_RDONLY,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_bss_mem.c_mem_ctrl.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mem_ctrl, %function
mem_ctrl:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, .L29
	ldr	ip, [r4]
	ldr	r0, [r0]
	ldr	r6, [r4, #12]
	ands	r5, ip, r0
	sub	r1, r1, #128
	ldm	r6, {r7, lr}
	mov	r8, r3
	moveq	r0, lr
	movne	r0, r7
	sub	sp, sp, #8
	cmp	r1, #13
	ldrls	pc, [pc, r1, asl #2]
	b	.L19
.L5:
	.word	.L14
	.word	.L13
	.word	.L12
	.word	.L19
	.word	.L11
	.word	.L10
	.word	.L19
	.word	.L19
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L21
	.word	.L6
	.word	.L21
.L21:
	mov	ip, #1
.L1:
	mov	r0, ip
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	mov	ip, #0
	mov	r0, ip
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	ip, [r0]
	clz	ip, ip
	lsr	ip, ip, #5
	b	.L1
.L12:
	cmp	r3, #0
	beq	.L21
	cmp	r5, #0
	beq	.L27
.L17:
	mov	ip, #1
	str	r7, [r8]
	b	.L1
.L11:
	mov	ip, #1
	str	r2, [r4, #8]
	b	.L1
.L8:
	cmp	r3, #0
	ldr	ip, [r0]
	ldrne	r2, [r0, #4]
	strne	r2, [r3]
	b	.L1
.L7:
	ldr	ip, [r4, #8]
	b	.L1
.L10:
	ldr	r0, [r7, #4]
	cmp	r0, #0
	beq	.L21
	cmp	r5, #0
	bne	.L15
	ldr	r3, .L29+4
	ldr	r3, [r3]
	tst	ip, r3
	beq	.L28
.L16:
	ldm	r7, {r0, r1, r2}
	mov	ip, #1
	stm	lr, {r0, r1, r2}
	b	.L1
.L9:
	ldr	ip, [r0]
	b	.L1
.L14:
	mov	ip, #1
	str	r2, [r4, #4]
	b	.L1
.L13:
	mov	r0, r4
	str	r2, [sp, #4]
	bl	mem_buf_free
	ldr	r2, [sp, #4]
	ldr	lr, [r6, #4]
	mov	ip, #1
	str	r2, [r4, #8]
	ldm	r8, {r0, r1, r2}
	str	r8, [r6]
	stm	lr, {r0, r1, r2}
	b	.L1
.L15:
	ldm	lr, {r0, r1, r2}
	mov	ip, #1
	stm	r7, {r0, r1, r2}
	b	.L1
.L27:
	mov	r0, r4
	bl	mem_buf_sync
	ldr	r7, [r6]
	b	.L17
.L28:
	ldr	r2, [r7, #8]
	mov	r1, r5
	bl	memset
	str	r5, [r7]
	ldm	r6, {r7, lr}
	b	.L16
.L30:
	.align	2
.L29:
	.word	BIO_FLAGS_MEM_RDONLY
	.word	BIO_FLAGS_NONCLEAR_RST
	.size	mem_ctrl, .-mem_ctrl
	.comm	BIO_FLAGS_NONCLEAR_RST,4,4
	.comm	BIO_FLAGS_MEM_RDONLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
