	.file	"extr_aicasm.c_check_patch.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	check_patch, @function
check_patch:
.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
	mov	r13, rdi
	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, rcx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rdi, QWORD PTR [rdi]
	mov	ebx, esi
.L20:
	test	rdi, rdi
	je	.L9
.L2:
	cmp	DWORD PTR [rdi], ebx
	jne	.L3
	mov	rax, QWORD PTR 8[rdi]
	mov	eax, DWORD PTR 0[rbp+rax*4]
	test	eax, eax
	je	.L22
	mov	esi, DWORD PTR links[rip]
	call	STAILQ_NEXT@PLT
	mov	rdi, rax
	test	rdi, rdi
	jne	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	xor	edi, edi
.L3:
	xor	eax, eax
	cmp	DWORD PTR [r12], ebx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	QWORD PTR 0[r13], rdi
	pop	rbp
	.cfi_def_cfa_offset 32
	setle	al
	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
.L22:
	.cfi_restore_state
	mov	eax, DWORD PTR 16[rdi]
	add	eax, ebx
	mov	DWORD PTR [r12], eax
	mov	r14d, DWORD PTR 20[rdi]
	test	r14d, r14d
	jle	.L2
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR links[rip]
	sub	r14d, 1
	call	STAILQ_NEXT@PLT
	mov	rdi, rax
	test	r14d, r14d
	jle	.L20
	test	rax, rax
	jne	.L6
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	check_patch, .-check_patch
	.comm	links,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_aicasm.c_check_patch.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_patch, %function
check_patch:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, r0
	ldr	r0, [r0]
	mov	r6, r1
	cmp	r0, #0
	mov	r8, r2
	beq	.L8
	mov	r7, r3
	ldr	r5, .L17
	b	.L2
.L4:
	ldr	r1, [r5]
	bl	STAILQ_NEXT
	cmp	r0, #0
	beq	.L8
.L2:
	ldr	r3, [r0]
	cmp	r3, r6
	bne	.L3
	ldr	r3, [r0, #4]
	ldr	r3, [r7, r3, lsl #2]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [r0, #8]
	add	r3, r3, r6
	str	r3, [r8]
	ldr	r4, [r0, #12]
	cmp	r4, #0
	ble	.L2
.L6:
	ldr	r1, [r5]
	bl	STAILQ_NEXT
	sub	r4, r4, #1
	cmp	r0, #0
	cmpne	r4, #0
	bgt	.L6
	cmp	r0, #0
	bne	.L2
.L8:
	mov	r0, #0
.L3:
	ldr	r3, [r8]
	str	r0, [r9]
	cmp	r3, r6
	movgt	r0, #0
	movle	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	.align	2
.L17:
	.word	links
	.size	check_patch, .-check_patch
	.comm	links,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
