	.file	"extr_cm_test.c_CM_StoreBrushes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	CM_StoreBrushes
	.type	CM_StoreBrushes, @function
CM_StoreBrushes:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, esi
	not	eax
	cdqe
	sal	rax, 4
	add	rax, QWORD PTR cm[rip+40]
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	jle	.L17
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rsi, QWORD PTR cm[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, QWORD PTR cm[rip+8]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	movsx	rdi, DWORD PTR 4[rax]
	lea	eax, -1[rdx]
	add	rax, rdi
	lea	rcx, [rsi+rdi*4]
	lea	r12, 4[rsi+rax*4]
	.p2align 4,,10
	.p2align 3
.L9:
	movsx	rdx, DWORD PTR [rcx]
	sal	rdx, 4
	add	rdx, QWORD PTR cm[rip+32]
	cmp	QWORD PTR [rdx], rbp
	je	.L4
	mov	r10, QWORD PTR 8[rdx]
	mov	r9, QWORD PTR [rbx]
	mov	QWORD PTR [rdx], rbp
	xor	eax, eax
	mov	rdi, QWORD PTR [r10]
	mov	r11, QWORD PTR 8[r9]
.L6:
	mov	rsi, QWORD PTR [r11+rax]
	cmp	QWORD PTR [rdi+rax], rsi
	jge	.L4
	mov	rsi, QWORD PTR [r9]
	mov	r8, QWORD PTR 8[r10]
	mov	rsi, QWORD PTR [rsi+rax]
	cmp	QWORD PTR [r8+rax], rsi
	jle	.L4
	add	rax, 8
	cmp	rax, 24
	jne	.L6
	mov	rax, QWORD PTR 8[rbx]
	cmp	rax, QWORD PTR 16[rbx]
	jge	.L21
	lea	rsi, 1[rax]
	mov	QWORD PTR 8[rbx], rsi
	mov	rsi, QWORD PTR 24[rbx]
	mov	QWORD PTR [rsi+rax*8], rdx
.L4:
	add	rcx, 4
	cmp	r12, rcx
	jne	.L9
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore_state
	mov	eax, DWORD PTR qtrue[rip]
	mov	DWORD PTR 32[rbx], eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	ret
	.cfi_endproc
.LFE0:
	.size	CM_StoreBrushes, .-CM_StoreBrushes
	.comm	qtrue,4,4
	.comm	patch,4,4
	.comm	cm,48,32
	.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_cm_test.c_CM_StoreBrushes.c"
	.text
	.align	2
	.global	CM_StoreBrushes
	.syntax unified
	.arm
	.fpu softvfp
	.type	CM_StoreBrushes, %function
CM_StoreBrushes:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mvn	r1, r1
	ldr	r2, .L21
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r2, #20]
	sub	sp, sp, #12
	ldr	ip, [r3, r1, lsl #4]
	add	r1, r3, r1, lsl #4
	cmp	ip, #0
	str	ip, [sp, #4]
	ble	.L1
	mov	lr, #0
	ldr	r3, [r1, #4]
	ldr	r8, [r2]
	sub	r3, r3, #-1073741823
	ldr	fp, [r2, #4]
	add	r8, r8, r3, lsl #2
.L9:
	ldr	r3, .L21
	ldr	ip, [r8, #4]!
	ldr	r3, [r3, #16]
	ldr	r2, [r3, ip, lsl #3]
	add	r10, r3, ip, lsl #3
	cmp	r2, fp
	beq	.L4
	ldr	r7, [r10, #4]
	ldr	r6, [r0]
	ldr	r1, [r7]
	ldr	r2, [r6, #4]
	add	r9, r1, #8
	str	fp, [r3, ip, lsl #3]
	sub	r2, r2, #4
	sub	r3, r1, #4
	rsb	r1, r1, #4
.L6:
	ldr	r4, [r2, #4]!
	add	ip, r1, r3
	ldr	r5, [r3, #4]!
	cmp	r5, r4
	bge	.L4
	ldr	r4, [r7, #4]
	ldr	r5, [r6]
	ldr	r4, [r4, ip]
	ldr	ip, [r5, ip]
	cmp	r4, ip
	ble	.L4
	cmp	r9, r3
	bne	.L6
	ldr	r3, [r0, #4]
	ldr	r2, [r0, #8]
	cmp	r3, r2
	bge	.L20
	ldr	r2, [r0, #12]
	add	r1, r3, #1
	str	r1, [r0, #4]
	str	r10, [r2, r3, lsl #2]
.L4:
	ldr	r3, [sp, #4]
	add	lr, lr, #1
	cmp	r3, lr
	bne	.L9
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	ldr	r3, .L21+4
	ldr	r3, [r3]
	str	r3, [r0, #16]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	.align	2
.L21:
	.word	cm
	.word	qtrue
	.size	CM_StoreBrushes, .-CM_StoreBrushes
	.comm	qtrue,4,4
	.comm	patch,4,4
	.comm	cm,24,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
