	.file	"extr_aic79xx_core.c_ahd_check_patch.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ahd_check_patch, @function
ahd_check_patch:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rdi, QWORD PTR patches[rip]
	call	ARRAY_SIZE@PLT
	mov	rbx, QWORD PTR [r15]
	sal	rax, 5
	add	rax, QWORD PTR patches[rip]
	mov	r12, rax
	cmp	rax, rbx
	ja	.L2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR 16[rbx]
	add	rax, rbp
	mov	QWORD PTR [r14], rax
	movsx	rax, DWORD PTR 24[rbx]
	sal	rax, 5
	add	rbx, rax
	cmp	rbx, r12
	jnb	.L3
.L2:
	cmp	QWORD PTR [rbx], rbp
	jne	.L3
	mov	rdi, r13
	call	[QWORD PTR 8[rbx]]
	test	rax, rax
	je	.L11
	add	rbx, 32
	cmp	rbx, r12
	jb	.L2
.L3:
	xor	eax, eax
	cmp	QWORD PTR [r14], rbp
	mov	QWORD PTR [r15], rbx
	setbe	al
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	ahd_check_patch, .-ahd_check_patch
	.comm	patches,8,8
	.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_aic79xx_core.c_ahd_check_patch.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ahd_check_patch, %function
ahd_check_patch:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r4, .L10
	mov	r9, r1
	mov	r7, r0
	ldr	r0, [r4]
	mov	r5, r2
	mov	r8, r3
	bl	ARRAY_SIZE
	ldr	r6, [r4]
	ldr	r4, [r9]
	add	r6, r6, r0, lsl #4
	cmp	r6, r4
	bhi	.L2
	b	.L3
.L6:
	ldr	r3, [r4, #4]
	mov	r0, r7
	blx	r3
	cmp	r0, #0
	ldreq	r3, [r4, #8]
	ldreq	r2, [r4, #12]
	addeq	r3, r3, r5
	addeq	r4, r4, r2, lsl #4
	addne	r4, r4, #16
	streq	r3, [r8]
	cmp	r4, r6
	bcs	.L3
.L2:
	ldr	ip, [r4]
	cmp	ip, r5
	beq	.L6
.L3:
	ldr	r0, [r8]
	str	r4, [r9]
	cmp	r0, r5
	movhi	r0, #0
	movls	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	.align	2
.L10:
	.word	patches
	.size	ahd_check_patch, .-ahd_check_patch
	.comm	patches,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
