	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_chunk
_parse_chunk:                           ## @parse_chunk
	.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
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	leaq	-44(%rbp), %rcx
	movq	%r12, %r8
	callq	_find_header
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_prefix_patch
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_use_patch
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	24(%r12), %rsi
	movq	24(%r15), %rax
	movl	(%rax), %edi
	testq	%rsi, %rsi
	jne	LBB0_6
## %bb.5:
	movq	8(%r12), %rsi
LBB0_6:
	callq	_whitespace_rule
	jmp	LBB0_7
LBB0_1:
	movl	%ebx, %eax
	jmp	LBB0_25
LBB0_3:
	xorl	%eax, %eax
LBB0_7:
	movq	%rax, 16(%r12)
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %eax
	leaq	(%rax,%r13), %rsi
	movslq	-44(%rbp), %rcx
	addq	%rcx, %rsi
	addq	%rcx, %rax
	movq	%r14, %rbx
	subq	%rax, %r14
	movq	%r15, %rdi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_parse_single_patch
	movl	%eax, %r14d
	movl	$-128, %eax
	testl	%r14d, %r14d
	js	LBB0_25
## %bb.8:
	jne	LBB0_24
## %bb.9:
	movslq	-44(%rbp), %rax
	movslq	-48(%rbp), %rcx                 ## 4-byte Folded Reload
	addq	%rax, %rcx
	addq	%rcx, %r13
	subq	%rcx, %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_linelen
	movq	%rax, %r14
	cmpq	$17, %rax
	jne	LBB0_13
## %bb.10:
	leaq	_parse_chunk.git_binary(%rip), %rdi
	movq	%r13, %rsi
	movl	$17, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_11
LBB0_13:
	leaq	(%r14,%r13), %rsi
	addq	$-8, %rsi
	leaq	L_.str(%rip), %rdi
	movl	$8, %edx
	callq	_memcmp
	movq	%r14, %rcx
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.14:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rdi
	callq	_strlen
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jbe	LBB0_17
## %bb.15:
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_16
LBB0_17:
	leaq	L_.str.2(%rip), %rdi
	callq	_strlen
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jbe	LBB0_19
## %bb.18:
	leaq	L_.str.2(%rip), %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_19
LBB0_16:
	incl	(%r15)
	movl	$1, (%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r14d
	jmp	LBB0_19
LBB0_11:
	incl	(%r15)
	addq	$17, %r13
	addq	$-17, %rbx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	callq	_parse_binary
                                        ## kill: def $eax killed $eax def $rax
	leal	17(%rax), %r14d
	testl	%eax, %eax
	cmovel	%eax, %r14d
	js	LBB0_12
LBB0_19:
	cmpq	$0, 16(%r15)
	jne	LBB0_21
## %bb.20:
	cmpq	$0, 8(%r15)
	je	LBB0_24
LBB0_21:
	cmpl	$0, (%r12)
	jne	LBB0_24
## %bb.22:
	movq	%r12, %rdi
	callq	_metadata_changes
	testl	%eax, %eax
	je	LBB0_23
LBB0_24:
	addl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	addl	-44(%rbp), %r14d
	movl	%r14d, %eax
LBB0_25:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_error
	movl	$-128, %eax
	jmp	LBB0_25
LBB0_12:
	movl	$-1, %eax
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @parse_chunk.git_binary
_parse_chunk.git_binary:
	.asciz	"GIT binary patch\n"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" differ\n"

L_.str.1:                               ## @.str.1
	.asciz	"Binary files "

L_.str.2:                               ## @.str.2
	.asciz	"Files "

L_.str.3:                               ## @.str.3
	.asciz	"patch with only garbage at line %d"

	.no_dead_strip	_parse_chunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_chunk
_parse_chunk:                           ; @parse_chunk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
	add	x3, sp, #12
	mov	x4, x21
	bl	_find_header
	mov	x19, x0
	tbnz	w0, #31, LBB0_25
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_prefix_patch
	mov	x0, x20
	mov	x1, x21
	bl	_use_patch
	cbz	w0, LBB0_5
; %bb.2:
	ldr	x1, [x21, #24]
	ldr	x8, [x20, #24]
	ldr	w0, [x8]
	cbnz	x1, LBB0_4
; %bb.3:
	ldr	x1, [x21, #8]
LBB0_4:
	bl	_whitespace_rule
	b	LBB0_6
LBB0_5:
	mov	x0, #0
LBB0_6:
	str	x0, [x21, #16]
	mov	w8, w19
	ldrsw	x9, [sp, #12]
	add	x10, x24, x8
	add	x1, x10, x9
	add	x8, x8, x9
	sub	x2, x23, x8
	mov	x0, x20
	mov	x3, x21
	bl	_parse_single_patch
	tbnz	w0, #31, LBB0_24
; %bb.7:
	mov	x22, x0
	cbnz	w0, LBB0_20
; %bb.8:
	ldrsw	x8, [sp, #12]
	add	x8, x8, w19, sxtw
	add	x24, x24, x8
	sub	x23, x23, x8
	mov	x0, x24
	mov	x1, x23
	bl	_linelen
	mov	x22, x0
	cmp	x0, #17
	b.ne	LBB0_10
; %bb.9:
Lloh0:
	adrp	x0, _parse_chunk.git_binary@PAGE
Lloh1:
	add	x0, x0, _parse_chunk.git_binary@PAGEOFF
	mov	x1, x24
	mov	w2, #17
	bl	_memcmp
	cbz	w0, LBB0_21
LBB0_10:
	add	x8, x24, x22
	sub	x1, x8, #8
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #8
	bl	_memcmp
	cbnz	w0, LBB0_15
; %bb.11:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_strlen
	cmp	x23, w0, sxtw
	b.ls	LBB0_13
; %bb.12:
	mov	x2, x0
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x24
	bl	_memcmp
	cbz	w0, LBB0_26
LBB0_13:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_strlen
	cmp	x23, w0, sxtw
	b.ls	LBB0_15
; %bb.14:
	mov	x2, x0
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x24
	bl	_memcmp
	cbz	w0, LBB0_26
LBB0_15:
	mov	w22, #0
LBB0_16:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_18
; %bb.17:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_20
LBB0_18:
	ldr	w8, [x21]
	cbnz	w8, LBB0_20
; %bb.19:
	mov	x0, x21
	bl	_metadata_changes
	cbz	w0, LBB0_23
LBB0_20:
	ldr	w8, [sp, #12]
	add	w9, w22, w19
	add	w19, w9, w8
	b	LBB0_25
LBB0_21:
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	add	x1, x24, #17
	sub	x2, x23, #17
	mov	x0, x20
	mov	x3, x21
	bl	_parse_binary
	add	w8, w0, #17
	cmp	w0, #0
	csel	w22, wzr, w8, eq
	tbz	w0, #31, LBB0_16
; %bb.22:
	mov	w19, #-1
	b	LBB0_25
LBB0_23:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	ldr	w1, [x20]
	bl	_error
LBB0_24:
	mov	w19, #-128
LBB0_25:
	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
	add	sp, sp, #80
	ret
LBB0_26:
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_parse_chunk.git_binary:                ; @parse_chunk.git_binary
	.asciz	"GIT binary patch\n"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" differ\n"

l_.str.1:                               ; @.str.1
	.asciz	"Binary files "

l_.str.2:                               ; @.str.2
	.asciz	"Files "

l_.str.3:                               ; @.str.3
	.asciz	"patch with only garbage at line %d"

	.no_dead_strip	_parse_chunk
.subsections_via_symbols
