	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function locate_hunk
_locate_hunk:                           ## @locate_hunk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r12d
	xorl	%eax, %eax
	callq	_pch_first
	movl	%eax, %r13d
	movq	_last_offset@GOTPCREL(%rip), %rax
	addl	(%rax), %r13d
	xorl	%eax, %eax
	callq	_pch_ptrn_lines
	movl	%eax, %ebx
	movq	_input_lines@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_last_frozen_line@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_pch_context
	testl	%ebx, %ebx
	movq	%r13, %r15
	je	LBB0_1
## %bb.7:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	notl	%r14d
	addl	%r13d, %r14d
	addl	%eax, %r14d
	leal	-1(%r13), %eax
	cmpl	%r13d, %r14d
	cmovll	%r14d, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_input_lines@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	movq	%r13, %rdx
	jg	LBB0_9
## %bb.8:
	movl	%r15d, %edi
	xorl	%esi, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_patch_match
	movq	%r15, %rdx
	testq	%rax, %rax
	jne	LBB0_18
LBB0_9:
	addl	%edx, %ebx
	negl	%ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%rbx), %r14d
	incl	%r14d
	movl	$1, %ebx
	movl	$-1, %r12d
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	cmpl	%r13d, %ebx
	jg	LBB0_14
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_patch_match
	movq	%r15, %rdx
	testq	%rax, %rax
	jne	LBB0_17
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	incl	%ebx
	decl	%r12d
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, %ebx
	jg	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%edx, %edi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_patch_match
	testq	%rax, %rax
	jne	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	%r13d, %ebx
	movq	%r15, %rdx
	jle	LBB0_16
	jmp	LBB0_19
LBB0_1:
	testl	%r12d, %r12d
	movq	%r13, %rdx
	jne	LBB0_18
## %bb.2:
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.3:
	movq	_diff_type@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CONTEXT_DIFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movq	_NEW_CONTEXT_DIFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_UNI_DIFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
LBB0_6:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_say
	movq	%r15, %rdx
	jmp	LBB0_18
LBB0_17:
	movq	_last_offset@GOTPCREL(%rip), %rax
	movl	%r12d, (%rax)
	addl	%r12d, %edx
	jmp	LBB0_18
LBB0_14:
	xorl	%edx, %edx
	jmp	LBB0_18
LBB0_12:
	movq	_last_offset@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movq	%r15, %rdx
	subl	%r12d, %edx
LBB0_18:
	movl	%edx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_last_offset,4,2                ## @last_offset
	.comm	_input_lines,4,2                ## @input_lines
	.comm	_last_frozen_line,4,2           ## @last_frozen_line
	.comm	_verbose,8,3                    ## @verbose
	.comm	_diff_type,8,3                  ## @diff_type
	.comm	_CONTEXT_DIFF,8,3               ## @CONTEXT_DIFF
	.comm	_NEW_CONTEXT_DIFF,8,3           ## @NEW_CONTEXT_DIFF
	.comm	_UNI_DIFF,8,3                   ## @UNI_DIFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Empty context always matches.\n"

	.comm	_debug,4,2                      ## @debug
	.no_dead_strip	_locate_hunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function locate_hunk
_locate_hunk:                           ; @locate_hunk
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	bl	_pch_first
Lloh0:
	adrp	x23, _last_offset@GOTPAGE
Lloh1:
	ldr	x23, [x23, _last_offset@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w19, w8, w0
	bl	_pch_ptrn_lines
	mov	x21, x0
Lloh2:
	adrp	x25, _input_lines@GOTPAGE
Lloh3:
	ldr	x25, [x25, _input_lines@GOTPAGEOFF]
	ldr	w22, [x25]
Lloh4:
	adrp	x8, _last_frozen_line@GOTPAGE
Lloh5:
	ldr	x8, [x8, _last_frozen_line@GOTPAGEOFF]
Lloh6:
	ldr	w24, [x8]
	bl	_pch_context
	cbz	w21, LBB0_10
; %bb.1:
	mvn	w8, w24
	add	w8, w19, w8
	add	w8, w8, w0
	sub	w9, w19, #1
	cmp	w8, w19
	csel	w24, w8, w9, lt
	ldr	w8, [x25]
	cmp	w19, w8
	b.gt	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_patch_match
	cbnz	x0, LBB0_17
LBB0_3:
	add	w8, w21, w19
	sub	w8, w22, w8
	add	w25, w8, #1
	mov	w22, #1
	mov	w21, #-1
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	cmp	w22, w24
	b.gt	LBB0_15
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_patch_match
	cbnz	x0, LBB0_14
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w22, w22, #1
	sub	w21, w21, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w22, w25
	b.gt	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_patch_match
	cbnz	x0, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w22, w24
	b.le	LBB0_5
	b	LBB0_6
LBB0_10:
	cbnz	w20, LBB0_17
; %bb.11:
Lloh7:
	adrp	x8, _verbose@GOTPAGE
Lloh8:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbz	x8, LBB0_17
; %bb.12:
Lloh10:
	adrp	x8, _diff_type@GOTPAGE
Lloh11:
	ldr	x8, [x8, _diff_type@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _CONTEXT_DIFF@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CONTEXT_DIFF@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
Lloh16:
	adrp	x10, _NEW_CONTEXT_DIFF@GOTPAGE
Lloh17:
	ldr	x10, [x10, _NEW_CONTEXT_DIFF@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
Lloh19:
	adrp	x11, _UNI_DIFF@GOTPAGE
Lloh20:
	ldr	x11, [x11, _UNI_DIFF@GOTPAGEOFF]
Lloh21:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_17
; %bb.13:
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	bl	_say
	b	LBB0_17
LBB0_14:
	str	w21, [x23]
	add	w19, w19, w21
	b	LBB0_17
LBB0_15:
	mov	w19, #0
	b	LBB0_17
LBB0_16:
	str	w22, [x23]
	sub	w19, w19, w21
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_last_offset,4,2                ; @last_offset
	.comm	_input_lines,4,2                ; @input_lines
	.comm	_last_frozen_line,4,2           ; @last_frozen_line
	.comm	_verbose,8,3                    ; @verbose
	.comm	_diff_type,8,3                  ; @diff_type
	.comm	_CONTEXT_DIFF,8,3               ; @CONTEXT_DIFF
	.comm	_NEW_CONTEXT_DIFF,8,3           ; @NEW_CONTEXT_DIFF
	.comm	_UNI_DIFF,8,3                   ; @UNI_DIFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Empty context always matches.\n"

	.comm	_debug,4,2                      ; @debug
	.no_dead_strip	_locate_hunk
.subsections_via_symbols
