	.file	"extr_patch.c_loadPatch.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Patch %s loaded...\n"
	.text
	.p2align 4
	.type	loadPatch, @function
loadPatch:
.LFB0:
	.cfi_startproc
	endbr64
	movsx	rdx, DWORD PTR SIZEOF_PATCH_BUFFER_MAGIC[rip]
	add	rdx, QWORD PTR m_patchBuffer[rip]
	mov	rsi, QWORD PTR 16[rdx]
	test	rsi, rsi
	je	.L5
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	rax, QWORD PTR 8[rdx]
	mov	ecx, DWORD PTR [rdx]
	add	rsi, rdx
	mov	QWORD PTR m_patch[rip], rsi
	add	rax, rdx
	mov	DWORD PTR m_patch[rip+8], ecx
	mov	QWORD PTR m_patch[rip+16], rax
	test	ecx, ecx
	jle	.L3
	sub	ecx, 1
	sal	rcx, 4
	lea	rcx, 16[rax+rcx]
	.p2align 4,,10
	.p2align 3
.L4:
	add	QWORD PTR [rax], rdx
	add	QWORD PTR 8[rax], rdx
	add	rax, 16
	cmp	rcx, rax
	jne	.L4
.L3:
	lea	rdi, .LC0[rip]
	call	printf@PLT
	xor	eax, eax
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
.L5:
	mov	eax, -1
	ret
	.cfi_endproc
.LFE0:
	.size	loadPatch, .-loadPatch
	.comm	m_patchBuffer,8,8
	.comm	m_patch,24,16
	.comm	SIZEOF_PATCH_BUFFER_MAGIC,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_patch.c_loadPatch.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Patch %s loaded...\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	loadPatch, %function
loadPatch:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L9
	ldr	r3, .L9+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	push	{r4, lr}
	add	lr, r2, r3
	ldr	r1, [lr, #8]
	cmp	r1, #0
	beq	.L5
	ldr	r4, [r2, r3]
	ldr	r3, [lr, #4]
	ldr	r2, .L9+8
	add	r1, lr, r1
	add	r3, lr, r3
	cmp	r4, #0
	stm	r2, {r1, r4}
	str	r3, [r2, #8]
	ble	.L3
	add	r4, r3, r4, lsl #3
	add	r2, r3, #4
.L4:
	ldr	r0, [r3, #4]
	ldr	ip, [r2, #-4]
	add	r0, r0, lr
	add	ip, ip, lr
	str	ip, [r2, #-4]
	add	r3, r3, #8
	str	r0, [r3, #-4]
	cmp	r3, r4
	add	r2, r2, #8
	bne	.L4
.L3:
	ldr	r0, .L9+12
	bl	printf
	mov	r0, #0
	pop	{r4, pc}
.L5:
	mvn	r0, #0
	pop	{r4, pc}
.L10:
	.align	2
.L9:
	.word	m_patchBuffer
	.word	SIZEOF_PATCH_BUFFER_MAGIC
	.word	m_patch
	.word	.LC0
	.size	loadPatch, .-loadPatch
	.comm	m_patchBuffer,4,4
	.comm	m_patch,12,4
	.comm	SIZEOF_PATCH_BUFFER_MAGIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
