	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_patch_content
_apply_patch_content:                   ## @apply_patch_content
	.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	$40, %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, -72(%rbp)                  ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	(%rsi), %r14d
	movq	(%rdi), %r13
	movl	$0, -44(%rbp)
	movq	$0, -56(%rbp)
	leaq	L_.str(%rip), %rdi
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	callq	_RARCH_LOG
	leaq	-56(%rbp), %r8
	leaq	-44(%rbp), %r9
	movq	%rbx, %rdi
	movl	16(%rbp), %esi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	callq	*-72(%rbp)                      ## 8-byte Folded Reload
	movl	%eax, %ebx
	movq	_PATCH_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_free
	movq	-56(%rbp), %rax
	movq	%rax, (%r12)
	movl	-44(%rbp), %eax
	movl	%eax, (%r15)
	jmp	LBB0_3
LBB0_2:
	movq	_MSG_FAILED_TO_PATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movl	%eax, %r14d
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	movl	%ebx, %r8d
	callq	_RARCH_ERR
LBB0_3:
	movl	$1, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PATCH_UNKNOWN,4,2              ## @PATCH_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Found %s file in \"%s\", attempting to patch ...\n"

	.comm	_PATCH_SUCCESS,4,2              ## @PATCH_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"%s %s: %s #%u\n"

	.comm	_MSG_FAILED_TO_PATCH,4,2        ## @MSG_FAILED_TO_PATCH
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.no_dead_strip	_apply_patch_content
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_patch_content
_apply_patch_content:                   ; @apply_patch_content
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x6
	mov	x24, x5
	mov	x25, x4
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w26, [x1]
	ldr	x22, [x0]
	str	wzr, [sp, #12]
	str	xzr, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	mov	x2, x3
	bl	_RARCH_LOG
	mov	x4, sp
	add	x5, sp, #12
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x26
	blr	x25
Lloh2:
	adrp	x8, _PATCH_SUCCESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PATCH_SUCCESS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_free
	ldr	x8, [sp]
	str	x8, [x21]
	ldr	w8, [sp, #12]
	str	w8, [x20]
	b	LBB0_3
LBB0_2:
	mov	x23, x0
Lloh5:
	adrp	x8, _MSG_FAILED_TO_PATCH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_FAILED_TO_PATCH@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x20, x0
Lloh8:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x3, x0
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	mov	x4, x23
	bl	_RARCH_ERR
LBB0_3:
	mov	w0, #1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PATCH_UNKNOWN,4,2              ; @PATCH_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Found %s file in \"%s\", attempting to patch ...\n"

	.comm	_PATCH_SUCCESS,4,2              ; @PATCH_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"%s %s: %s #%u\n"

	.comm	_MSG_FAILED_TO_PATCH,4,2        ; @MSG_FAILED_TO_PATCH
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.no_dead_strip	_apply_patch_content
.subsections_via_symbols
