	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function try_ips_patch
_try_ips_patch:                         ## @try_ips_patch
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	testl	%edi, %edi
	je	LBB0_10
## %bb.1:
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	je	LBB0_2
LBB0_10:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	callq	_path_is_valid
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	$0, -40(%rbp)
	leaq	-40(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_filestream_read_file
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:
	movq	_ips_apply_patch@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	-40(%rbp), %r9
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rcx
	callq	_apply_patch_content
	movl	%eax, %r14d
	jmp	LBB0_8
LBB0_4:
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_6:
	xorl	%r14d, %r14d
LBB0_8:
	movq	-40(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_free
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IPS"

	.comm	_ips_apply_patch,4,2            ## @ips_apply_patch
	.no_dead_strip	_try_ips_patch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function try_ips_patch
_try_ips_patch:                         ; @try_ips_patch
	.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
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x0, x1
	bl	_string_is_empty
	cbz	w0, LBB0_4
LBB0_2:
	mov	w19, #0
LBB0_3:
	mov	x0, x19
	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
LBB0_4:
	mov	x0, x19
	bl	_path_is_valid
	cbz	x0, LBB0_2
; %bb.5:
	str	xzr, [sp]
	mov	x1, sp
	add	x2, sp, #8
	mov	x0, x19
	bl	_filestream_read_file
	cbz	w0, LBB0_2
; %bb.6:
	ldr	x6, [sp, #8]
	tbnz	x6, #63, LBB0_8
; %bb.7:
Lloh0:
	adrp	x8, _ips_apply_patch@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ips_apply_patch@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	ldr	x5, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	bl	_apply_patch_content
	mov	x19, x0
	ldr	x0, [sp]
	cbnz	x0, LBB0_9
	b	LBB0_3
LBB0_8:
	mov	w19, #0
	ldr	x0, [sp]
	cbz	x0, LBB0_3
LBB0_9:
	bl	_free
	b	LBB0_3
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IPS"

	.comm	_ips_apply_patch,4,2            ; @ips_apply_patch
	.no_dead_strip	_try_ips_patch
.subsections_via_symbols
