	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_patterns
_add_patterns:                          ## @add_patterns
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movl	%edx, %r12d
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, %r14
	movq	$0, -56(%rbp)
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_12
## %bb.1:
	movl	%eax, %r15d
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_fstat
	testq	%rax, %rax
	js	LBB0_13
## %bb.2:
	movl	%r12d, -76(%rbp)                ## 4-byte Spill
	movl	-48(%rbp), %edi
	callq	_xsize_t
	testq	%rax, %rax
	je	LBB0_18
## %bb.3:
	movq	%rax, %r12
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_xmallocz
	movq	%rax, %r13
	movq	%rax, -72(%rbp)
	movl	%r15d, %edi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_read_in_full
	cmpq	%r12, %rax
	jne	LBB0_22
## %bb.4:
	movq	%r12, %rax
	incq	%rax
	movq	%rax, -56(%rbp)
	movb	$10, (%r13,%r12)
	movl	%r15d, %edi
	callq	_close
	testq	%rbx, %rbx
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movl	-76(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_16
## %bb.5:
	cmpl	$0, (%rbx)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_7
## %bb.6:
	leaq	4(%rbx), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_match_stat_data_racy
	testl	%eax, %eax
	je	LBB0_11
LBB0_7:
	testq	%r15, %r15
	je	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_index_name_pos
	testl	%eax, %eax
	js	LBB0_10
## %bb.9:
	movq	(%r15), %rcx
	movl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	(%rcx,%rax,8), %rdi
	callq	_ce_stage
	testl	%eax, %eax
	je	LBB0_25
LBB0_10:
	movq	-72(%rbp), %rdi
	movq	-56(%rbp), %rsi
	leaq	8(%rbx), %rcx
	leaq	L_.str(%rip), %rdx
	callq	_hash_object_file
LBB0_11:
	leaq	4(%rbx), %rdi
	leaq	-48(%rbp), %rsi
	callq	_fill_stat_data
	movl	$1, (%rbx)
	jmp	LBB0_16
LBB0_12:
	movq	%r14, %rdi
	callq	_warn_on_fopen_errors
	jmp	LBB0_14
LBB0_13:
	movl	%r15d, %edi
	callq	_close
LBB0_14:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.15:
	leaq	-56(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	movq	%r14, %rsi
	movq	%rbx, %r8
	callq	_read_skip_worktree_file_from_index
	cmpl	$1, %eax
	jne	LBB0_24
LBB0_16:
	movq	-72(%rbp), %rdi
	movq	-56(%rbp), %rsi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movl	%r12d, %ecx
	movq	%r13, %r8
	callq	_add_patterns_from_buffer
	jmp	LBB0_21
LBB0_18:
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.19:
	leaq	4(%rbx), %rdi
	leaq	-48(%rbp), %rsi
	callq	_fill_stat_data
	leaq	8(%rbx), %rdi
	movq	_the_hash_algo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	callq	_oidcpy
	movl	$1, (%rbx)
LBB0_20:
	movl	%r15d, %edi
	callq	_close
LBB0_21:
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_22:
	movq	%r13, %rdi
	callq	_free
	movl	%r15d, %edi
	callq	_close
LBB0_23:
	movl	$-1, %eax
LBB0_24:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	(%r15), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rdi
	callq	_ce_uptodate
	testq	%rax, %rax
	je	LBB0_10
## %bb.26:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_would_convert_to_git
	testl	%eax, %eax
	jne	LBB0_10
## %bb.27:
	leaq	8(%rbx), %rdi
	movq	(%r15), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rsi
	callq	_oidcpy
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_the_hash_algo,8,3              ## @the_hash_algo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"blob"

	.no_dead_strip	_add_patterns
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_patterns
_add_patterns:                          ; @add_patterns
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x23, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x24, x0
	str	xzr, [sp, #16]
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_open
	tbnz	w0, #31, LBB0_12
; %bb.1:
	mov	x25, x0
	add	x1, sp, #24
	bl	_fstat
	tbnz	x0, #63, LBB0_13
; %bb.2:
	ldr	w0, [sp, #24]
	bl	_xsize_t
	cbz	x0, LBB0_16
; %bb.3:
	mov	x26, x0
	bl	_xmallocz
	mov	x27, x0
	str	x0, [sp, #8]
	mov	x0, x25
	mov	x1, x27
	mov	x2, x26
	bl	_read_in_full
	cmp	x0, x26
	b.ne	LBB0_20
; %bb.4:
	add	x8, x26, #1
	str	x8, [sp, #16]
	mov	w8, #10
	strb	w8, [x27, x26]
	mov	x0, x25
	bl	_close
	cbz	x19, LBB0_15
; %bb.5:
	ldr	w8, [x19]
	cbz	w8, LBB0_7
; %bb.6:
	add	x1, x19, #4
	add	x2, sp, #24
	mov	x0, x23
	bl	_match_stat_data_racy
	cbz	w0, LBB0_11
LBB0_7:
	cbz	x23, LBB0_10
; %bb.8:
	mov	x0, x24
	bl	_strlen
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_index_name_pos
	tbnz	w0, #31, LBB0_10
; %bb.9:
	mov	x25, x0
	ldr	x8, [x23]
	ldr	x0, [x8, w0, uxtw #3]
	bl	_ce_stage
	cbz	w0, LBB0_23
LBB0_10:
	ldp	x0, x1, [sp, #8]
	add	x3, x19, #8
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_hash_object_file
LBB0_11:
	add	x0, x19, #4
	add	x1, sp, #24
	bl	_fill_stat_data
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_15
LBB0_12:
	mov	x0, x24
	bl	_warn_on_fopen_errors
	cbnz	x23, LBB0_14
	b	LBB0_21
LBB0_13:
	mov	x0, x25
	bl	_close
	cbz	x23, LBB0_21
LBB0_14:
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x23
	mov	x1, x24
	mov	x4, x19
	bl	_read_skip_worktree_file_from_index
	cmp	w0, #1
	b.ne	LBB0_22
LBB0_15:
	ldp	x0, x1, [sp, #8]
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	bl	_add_patterns_from_buffer
	b	LBB0_19
LBB0_16:
	cbz	x19, LBB0_18
; %bb.17:
	add	x0, x19, #4
	add	x1, sp, #24
	bl	_fill_stat_data
	add	x0, x19, #8
Lloh5:
	adrp	x8, _the_hash_algo@GOTPAGE
Lloh6:
	ldr	x8, [x8, _the_hash_algo@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x1, [x8]
	bl	_oidcpy
	mov	w8, #1
	str	w8, [x19]
LBB0_18:
	mov	x0, x25
	bl	_close
LBB0_19:
	mov	w0, #0
	b	LBB0_22
LBB0_20:
	mov	x0, x27
	bl	_free
	mov	x0, x25
	bl	_close
LBB0_21:
	mov	w0, #-1
LBB0_22:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_23:
	mov	w25, w25
	ldr	x8, [x23]
	ldr	x0, [x8, x25, lsl #3]
	bl	_ce_uptodate
	cbz	x0, LBB0_10
; %bb.24:
	mov	x0, x23
	mov	x1, x24
	bl	_would_convert_to_git
	cbnz	w0, LBB0_10
; %bb.25:
	add	x0, x19, #8
	ldr	x8, [x23]
	ldr	x1, [x8, x25, lsl #3]
	bl	_oidcpy
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_the_hash_algo,8,3              ; @the_hash_algo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"blob"

	.no_dead_strip	_add_patterns
.subsections_via_symbols
