	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ips_apply_patch
_ips_apply_patch:                       ## @ips_apply_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$8, %esi
	jl	LBB0_30
## %bb.1:
	movq	%rdi, %rbx
	cmpb	$80, (%rdi)
	jne	LBB0_30
## %bb.2:
	cmpb	$65, 1(%rbx)
	jne	LBB0_30
## %bb.3:
	cmpb	$84, 2(%rbx)
	jne	LBB0_30
## %bb.4:
	cmpb	$67, 3(%rbx)
	jne	LBB0_30
## %bb.5:
	cmpb	$72, 4(%rbx)
	jne	LBB0_30
## %bb.6:
	movq	%r8, %r15
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rbx, %rdi
	movl	%ecx, %edx
	movq	%r8, %rcx
	movq	%r9, %r8
	callq	_ips_alloc_targetdata
	movq	_PATCH_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_32
## %bb.7:
	movq	(%r15), %rdi
	movslq	%r13d, %rdx
	movq	%r12, %rsi
	callq	_memcpy
	leal	-3(%r14), %r9d
	leal	-2(%r14), %r8d
	movl	$5, %r12d
	jmp	LBB0_8
LBB0_28:                                ##   in Loop: Header=BB0_8 Depth=1
	addl	$8, %r12d
LBB0_29:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%r9d, %r12d
	jg	LBB0_30
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
                                        ##     Child Loop BB0_24 Depth 2
                                        ##     Child Loop BB0_27 Depth 2
	movslq	%r12d, %r13
	movsbq	(%rbx,%r13), %rax
	shlq	$16, %rax
	movsbq	1(%rbx,%r13), %rcx
	shlq	$8, %rcx
	orq	%rax, %rcx
	leaq	3(%r13), %rax
	movsbq	2(%rbx,%r13), %rdi
	orq	%rcx, %rdi
	cmpl	$4542278, %edi                  ## imm = 0x454F46
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%r14d, %eax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%r9d, %eax
	je	LBB0_10
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%r8d, %eax
	jg	LBB0_30
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movsbl	(%rbx,%rax), %eax
	shll	$8, %eax
	leal	5(%r13), %ecx
	movsbl	4(%r13,%rbx), %r10d
	orl	%r10d, %eax
	je	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r14d, %edx
	subl	%eax, %edx
	cmpl	%edx, %ecx
	ja	LBB0_30
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movslq	%ecx, %rcx
	testb	$1, %r10b
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
                                        ## implicit-def: $r12
	movl	%eax, %esi
	jmp	LBB0_18
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%r9d, %ecx
	jg	LBB0_30
## %bb.21:                              ##   in Loop: Header=BB0_8 Depth=1
	movslq	%ecx, %rax
	movsbl	(%rbx,%rax), %ecx
	shll	$8, %ecx
	movsbl	6(%r13,%rbx), %r11d
	orl	%r11d, %ecx
	je	LBB0_30
## %bb.22:                              ##   in Loop: Header=BB0_8 Depth=1
	movslq	%edi, %rdi
	leal	-1(%rcx), %r10d
	testb	$3, %r11b
	je	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_8 Depth=1
	andl	$3, %r11d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	7(%rbx,%r13), %edx
	movq	(%r15), %rsi
	movb	%dl, (%rsi,%rdi)
	incq	%rdi
	incq	%rax
	cmpl	%eax, %r11d
	jne	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_8 Depth=1
	subl	%eax, %ecx
LBB0_26:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$3, %r10d
	jb	LBB0_28
	.p2align	4, 0x90
LBB0_27:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	7(%rbx,%r13), %eax
	movq	(%r15), %rdx
	movb	%al, (%rdx,%rdi)
	movzbl	7(%rbx,%r13), %eax
	movq	(%r15), %rdx
	movb	%al, 1(%rdx,%rdi)
	movzbl	7(%rbx,%r13), %eax
	movq	(%r15), %rdx
	movb	%al, 2(%rdx,%rdi)
	movzbl	7(%rbx,%r13), %eax
	movq	(%r15), %rdx
	movb	%al, 3(%rdx,%rdi)
	addq	$4, %rdi
	addl	$-4, %ecx
	jne	LBB0_27
	jmp	LBB0_28
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	leal	-1(%rax), %esi
	movb	(%rbx,%rcx), %r10b
	incq	%rcx
	movq	(%r15), %rdx
	movb	%r10b, (%rdx,%rdi)
	incq	%rdi
	movq	%rcx, %r12
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$1, %eax
	je	LBB0_29
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rbx,%rcx), %eax
	movq	(%r15), %rdx
	movb	%al, (%rdx,%rdi)
	leaq	2(%rcx), %r12
	movzbl	1(%rbx,%rcx), %eax
	movq	(%r15), %rcx
	movb	%al, 1(%rcx,%rdi)
	addq	$2, %rdi
	movq	%r12, %rcx
	addl	$-2, %esi
	jne	LBB0_19
	jmp	LBB0_29
LBB0_30:
	movq	_PATCH_PATCH_INVALID@GOTPCREL(%rip), %rax
LBB0_31:
	movl	(%rax), %eax
LBB0_32:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_PATCH_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_PATCH_UNKNOWN,4,2              ## @PATCH_UNKNOWN
	.comm	_PATCH_PATCH_INVALID,4,2        ## @PATCH_PATCH_INVALID
	.comm	_PATCH_SUCCESS,4,2              ## @PATCH_SUCCESS
	.no_dead_strip	_ips_apply_patch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ips_apply_patch
_ips_apply_patch:                       ; @ips_apply_patch
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cmp	w1, #8
	b.lt	LBB0_22
; %bb.1:
	mov	x21, x0
	ldrb	w8, [x0]
	cmp	w8, #80
	b.ne	LBB0_22
; %bb.2:
	ldrb	w8, [x21, #1]
	cmp	w8, #65
	b.ne	LBB0_22
; %bb.3:
	ldrb	w8, [x21, #2]
	cmp	w8, #84
	b.ne	LBB0_22
; %bb.4:
	ldrb	w8, [x21, #3]
	cmp	w8, #67
	b.ne	LBB0_22
; %bb.5:
	ldrb	w8, [x21, #4]
	cmp	w8, #72
	b.ne	LBB0_22
; %bb.6:
	mov	x19, x4
	mov	x23, x3
	mov	x22, x2
	mov	x20, x1
	mov	x0, x21
	mov	x2, x3
	mov	x3, x4
	mov	x4, x5
	bl	_ips_alloc_targetdata
Lloh0:
	adrp	x24, _PATCH_SUCCESS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PATCH_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_23
; %bb.7:
	ldr	x0, [x19]
	sxtw	x2, w23
	mov	x1, x22
	bl	_memcpy
	sub	w8, w20, #3
	sub	w9, w20, #2
	mov	w13, #5
	mov	w10, #20294
	movk	w10, #69, lsl #16
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	cmp	w13, w8
	b.gt	LBB0_22
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
                                        ;     Child Loop BB0_20 Depth 2
	sxtw	x12, w13
	add	x11, x21, x12
	ldrsb	x13, [x11]
	ldrsb	x14, [x11, #1]
	lsl	x14, x14, #8
	orr	x14, x14, x13, lsl #16
	add	x13, x12, #3
	ldrsb	x11, [x11, #2]
	orr	x11, x14, x11
	cmp	w11, w10
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w13, w20
	b.eq	LBB0_24
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w13, w8
	b.eq	LBB0_24
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	cmp	w13, w9
	b.gt	LBB0_22
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x14, x12, x21
	ldrsb	w15, [x21, x13]
	add	w13, w12, #5
	ldrsb	w14, [x14, #4]
	orr	w14, w14, w15, lsl #8
	cbz	w14, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	w12, w20, w14
	cmp	w13, w12
	b.hi	LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x12, x21, w13, sxtw
LBB0_16:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w15, [x12], #1
	ldr	x16, [x19]
	strb	w15, [x16, x11]
	add	x11, x11, #1
	add	w13, w13, #1
	subs	w14, w14, #1
	b.ne	LBB0_16
	b	LBB0_8
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	cmp	w13, w8
	b.gt	LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x14, x12, x21
	ldrsb	w13, [x21, w13, sxtw]
	ldrsb	w14, [x14, #6]
	orr	w13, w14, w13, lsl #8
	cbz	w13, LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x14, x12, #7
                                        ; kill: def $w11 killed $w11 killed $x11 def $x11
	sxtw	x11, w11
LBB0_20:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w15, [x21, x14]
	ldr	x16, [x19]
	strb	w15, [x16, x11]
	add	x11, x11, #1
	subs	w13, w13, #1
	b.ne	LBB0_20
; %bb.21:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w13, w12, #8
	b	LBB0_8
LBB0_22:
Lloh2:
	adrp	x8, _PATCH_PATCH_INVALID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PATCH_PATCH_INVALID@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_23:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_24:
	ldr	w0, [x24]
	b	LBB0_23
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PATCH_UNKNOWN,4,2              ; @PATCH_UNKNOWN
	.comm	_PATCH_PATCH_INVALID,4,2        ; @PATCH_PATCH_INVALID
	.comm	_PATCH_SUCCESS,4,2              ; @PATCH_SUCCESS
	.no_dead_strip	_ips_apply_patch
.subsections_via_symbols
