	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_file
_remove_file:                           ## @remove_file
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	setne	%r15b
	testl	%ecx, %ecx
	setne	%bl
	testl	%esi, %esi
	jne	LBB0_2
## %bb.1:
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_remove_file_from_index
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_10
LBB0_3:
	orb	%r15b, %bl
	jne	LBB0_9
## %bb.4:
	movq	_ignore_case@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_8
## %bb.5:
	movq	(%r12), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_strlen
	movq	(%r15), %rcx
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_index_file_exists
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ce_stage
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_strcmp
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_10
LBB0_8:
	movq	%r14, %rdi
	callq	_remove_path
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_10
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ignore_case,8,3                ## @ignore_case
	.no_dead_strip	_remove_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_file
_remove_file:                           ; @remove_file
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cmp	w3, #0
	ccmp	x8, #0, #0, eq
	cset	w21, ne
	cbnz	w1, LBB0_2
; %bb.1:
	cbz	x8, LBB0_3
LBB0_2:
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_remove_file_from_index
	cbnz	x0, LBB0_9
LBB0_3:
	tbnz	w21, #0, LBB0_10
; %bb.4:
Lloh0:
	adrp	x21, _ignore_case@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ignore_case@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	x8, [x20]
	ldr	w20, [x8]
	mov	x0, x19
	bl	_strlen
	mov	x2, x0
	ldr	x3, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_index_file_exists
	cbz	x0, LBB0_8
; %bb.6:
	mov	x20, x0
	bl	_ce_stage
	cbnz	x0, LBB0_8
; %bb.7:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_strcmp
	cbnz	x0, LBB0_10
LBB0_8:
	mov	x0, x19
	bl	_remove_path
	cbz	x0, LBB0_10
LBB0_9:
	mov	w0, #-1
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ignore_case,8,3                ; @ignore_case
	.no_dead_strip	_remove_file
.subsections_via_symbols
