	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_data
_apply_data:                            ## @apply_data
	.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, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	movq	%r12, %r8
	callq	_load_preimage
	movl	$-1, %r14d
	testq	%rax, %rax
	js	LBB0_8
## %bb.1:
	cmpq	$0, 16(%rbx)
	je	LBB0_2
LBB0_3:
	cmpl	$0, (%r15)
	je	LBB0_8
## %bb.4:
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	movq	%r12, %r8
	callq	_try_threeway
	testq	%rax, %rax
	jns	LBB0_5
	jmp	LBB0_8
LBB0_2:
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_apply_fragments
	testq	%rax, %rax
	js	LBB0_3
LBB0_5:
	movl	-48(%rbp), %eax
	movl	%eax, 12(%rbx)
	movl	-52(%rbp), %eax
	movl	%eax, 8(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_add_to_fn_table
	movl	-56(%rbp), %edi
	callq	_free
	xorl	%r14d, %r14d
	cmpq	$0, (%rbx)
	jle	LBB0_8
## %bb.6:
	cmpl	$0, 8(%rbx)
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_error
	movl	%eax, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"removal patch leaves file contents"

	.no_dead_strip	_apply_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_data
_apply_data:                            ; @apply_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	mov	x1, sp
	mov	x2, x19
	mov	x3, x22
	mov	x4, x21
	bl	_load_preimage
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
LBB0_2:
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.3:
	mov	x1, sp
	mov	x0, x20
	mov	x2, x19
	mov	x3, x22
	mov	x4, x21
	bl	_try_threeway
	tbz	x0, #63, LBB0_6
LBB0_4:
	mov	w0, #-1
	b	LBB0_10
LBB0_5:
	mov	x1, sp
	mov	x0, x20
	mov	x2, x19
	bl	_apply_fragments
	tbnz	x0, #63, LBB0_2
LBB0_6:
	ldur	d0, [sp, #4]
	str	d0, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_add_to_fn_table
	ldr	w0, [sp]
	bl	_free
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.7:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_9
; %bb.8:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_error
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"removal patch leaves file contents"

	.no_dead_strip	_apply_data
.subsections_via_symbols
