	.file	"extr_patch.c_locate_hunk.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Empty context always matches.\n"
	.text
	.p2align 4
	.type	locate_hunk, @function
locate_hunk:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	pch_first@PLT
	add	eax, DWORD PTR last_offset[rip]
	mov	r14d, eax
	xor	eax, eax
	call	pch_ptrn_lines@PLT
	mov	ebp, DWORD PTR input_lines[rip]
	mov	r13d, DWORD PTR last_frozen_line[rip]
	mov	ebx, eax
	xor	eax, eax
	call	pch_context@PLT
	test	ebx, ebx
	je	.L26
	mov	edx, r14d
	sub	edx, r13d
	lea	r13d, -1[rax+rdx]
	lea	eax, -1[r14]
	cmp	r14d, r13d
	cmovle	r13d, eax
	cmp	DWORD PTR input_lines[rip], r14d
	jge	.L6
.L8:
	sub	ebp, r14d
	sub	ebp, ebx
	mov	ebx, 1
	add	ebp, 1
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	cmp	ebx, r13d
	jle	.L27
.L10:
	cmp	r13d, ebp
	mov	eax, ebp
	cmovge	eax, r13d
	cmp	ebx, eax
	jg	.L11
	add	ebx, 1
.L7:
	cmp	ebx, ebp
	jg	.L9
	mov	edx, r12d
	mov	esi, ebx
	mov	edi, r14d
	call	patch_match@PLT
	test	rax, rax
	je	.L9
	mov	DWORD PTR last_offset[rip], ebx
	add	r14d, ebx
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	mov	r15d, ebx
	mov	edx, r12d
	mov	edi, r14d
	neg	r15d
	mov	esi, r15d
	call	patch_match@PLT
	test	rax, rax
	je	.L10
	mov	DWORD PTR last_offset[rip], r15d
	sub	r14d, ebx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	xor	esi, esi
	mov	edx, r12d
	mov	edi, r14d
	call	patch_match@PLT
	test	rax, rax
	je	.L8
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	cmp	QWORD PTR verbose[rip], 0
	je	.L1
	test	r12d, r12d
	jne	.L1
	mov	rax, QWORD PTR diff_type[rip]
	cmp	rax, QWORD PTR CONTEXT_DIFF[rip]
	je	.L4
	cmp	rax, QWORD PTR NEW_CONTEXT_DIFF[rip]
	je	.L4
	cmp	rax, QWORD PTR UNI_DIFF[rip]
	jne	.L1
.L4:
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	say@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	xor	r14d, r14d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	locate_hunk, .-locate_hunk
	.comm	verbose,8,8
	.comm	last_offset,4,4
	.comm	last_frozen_line,4,4
	.comm	input_lines,4,4
	.comm	diff_type,8,8
	.comm	debug,4,4
	.comm	UNI_DIFF,8,8
	.comm	NEW_CONTEXT_DIFF,8,8
	.comm	CONTEXT_DIFF,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_patch.c_locate_hunk.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Empty context always matches.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	locate_hunk, %function
locate_hunk:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r0
	bl	pch_first
	ldr	r10, .L25
	ldr	fp, .L25+4
	ldr	r3, [r10]
	add	r6, r0, r3
	bl	pch_ptrn_lines
	mov	r4, r0
	ldr	r3, .L25+8
	ldr	r7, [fp]
	ldr	r5, [r3]
	bl	pch_context
	cmp	r4, #0
	beq	.L23
	sub	r5, r6, r5
	sub	r5, r5, #1
	add	r5, r5, r0
	ldr	r3, [fp]
	cmp	r6, r5
	suble	r5, r6, #1
	cmp	r3, r6
	bge	.L6
.L8:
	sub	r7, r7, r6
	sub	r7, r7, r4
	add	r7, r7, #1
	cmp	r5, r7
	movge	r9, r5
	movlt	r9, r7
	mov	r4, #1
	b	.L7
.L9:
	cmp	r4, r5
	ble	.L24
.L10:
	cmp	r4, r9
	bgt	.L11
	add	r4, r4, #1
.L7:
	cmp	r4, r7
	bgt	.L9
	mov	r2, r8
	mov	r1, r4
	mov	r0, r6
	bl	patch_match
	cmp	r0, #0
	beq	.L9
	str	r4, [r10]
	add	r6, r6, r4
.L1:
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	rsb	fp, r4, #0
	mov	r1, fp
	mov	r2, r8
	mov	r0, r6
	bl	patch_match
	cmp	r0, #0
	beq	.L10
	sub	r6, r6, r4
	mov	r0, r6
	str	fp, [r10]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	mov	r2, r8
	mov	r1, #0
	mov	r0, r6
	bl	patch_match
	cmp	r0, #0
	beq	.L8
	b	.L1
.L23:
	clz	r8, r8
	ldr	r3, .L25+12
	lsr	r8, r8, #5
	ldr	r3, [r3]
	cmp	r3, #0
	moveq	r8, #0
	cmp	r8, #0
	beq	.L1
	ldr	r3, .L25+16
	ldr	r2, .L25+20
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L4
	ldr	r2, .L25+24
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L4
	ldr	r2, .L25+28
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L1
.L4:
	ldr	r0, .L25+32
	bl	say
	b	.L1
.L11:
	mov	r6, #0
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	.align	2
.L25:
	.word	last_offset
	.word	input_lines
	.word	last_frozen_line
	.word	verbose
	.word	diff_type
	.word	CONTEXT_DIFF
	.word	NEW_CONTEXT_DIFF
	.word	UNI_DIFF
	.word	.LC0
	.size	locate_hunk, .-locate_hunk
	.comm	verbose,4,4
	.comm	last_offset,4,4
	.comm	last_frozen_line,4,4
	.comm	input_lines,4,4
	.comm	diff_type,4,4
	.comm	debug,4,4
	.comm	UNI_DIFF,4,4
	.comm	NEW_CONTEXT_DIFF,4,4
	.comm	CONTEXT_DIFF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
