	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ips_alloc_targetdata
_ips_alloc_targetdata:                  ## @ips_alloc_targetdata
	.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
                                        ## kill: def $esi killed $esi def $rsi
	movl	%edx, (%r8)
	movq	_PATCH_PATCH_INVALID@GOTPCREL(%rip), %r9
	cmpl	$8, %esi
	jge	LBB0_1
LBB0_20:
	movl	(%r9), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rcx, %r14
	leal	-3(%rsi), %r11d
	leal	-2(%rsi), %r10d
	movl	$5, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r11d, %r15d
	jg	LBB0_20
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r15d, %r12
	movl	(%rdi,%r12,4), %eax
	movl	4(%rdi,%r12,4), %ebx
	shll	$16, %eax
	shll	$8, %ebx
	orl	%eax, %ebx
	leal	3(%r12), %eax
	orl	8(%rdi,%r12,4), %ebx
	cmpl	$4542278, %ebx                  ## imm = 0x454F46
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%esi, %eax
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r11d, %eax
	je	LBB0_18
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r10d, %eax
	jg	LBB0_20
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cltq
	movl	(%rdi,%rax,4), %eax
	shll	$8, %eax
	leal	5(%r12), %r13d
	orl	16(%rdi,%r12,4), %eax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%esi, %ecx
	subl	%eax, %ecx
	cmpl	%ecx, %r13d
	ja	LBB0_20
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	%eax, %r13d
	movl	%r13d, %r15d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r11d, %r13d
	jg	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r13d, %rax
	movl	(%rdi,%rax,4), %eax
	shll	$8, %eax
	orl	24(%rdi,%r12,4), %eax
	je	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	addl	$8, %r15d
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	%eax, %ebx
	cmpl	%edx, %ebx
	jle	LBB0_2
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, (%r8)
	movl	%ebx, %edx
	jmp	LBB0_2
LBB0_15:
	movslq	%edx, %rdi
	jmp	LBB0_16
LBB0_18:
	movslq	%r11d, %rax
	movl	(%rdi,%rax,4), %eax
	shll	$16, %eax
	movl	16(%rdi,%r12,4), %ecx
	shll	$8, %ecx
	orl	%eax, %ecx
	orl	20(%rdi,%r12,4), %ecx
	movslq	%ecx, %rdi
	movl	%edi, (%r8)
LBB0_16:
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_17
## %bb.19:
	movq	(%r14), %rdi
	callq	_free
	movq	%rbx, (%r14)
	movq	_PATCH_SUCCESS@GOTPCREL(%rip), %r9
	jmp	LBB0_20
LBB0_17:
	movq	_PATCH_TARGET_ALLOC_FAILED@GOTPCREL(%rip), %r9
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_PATCH_TARGET_ALLOC_FAILED,4,2  ## @PATCH_TARGET_ALLOC_FAILED
	.comm	_PATCH_SUCCESS,4,2              ## @PATCH_SUCCESS
	.comm	_PATCH_PATCH_INVALID,4,2        ## @PATCH_PATCH_INVALID
	.no_dead_strip	_ips_alloc_targetdata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ips_alloc_targetdata
_ips_alloc_targetdata:                  ; @ips_alloc_targetdata
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w2 killed $w2 def $x2
	str	w2, [x4]
	cmp	w1, #8
	b.ge	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _PATCH_PATCH_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PATCH_PATCH_INVALID@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x3
	sub	w9, w1, #3
	sub	w10, w1, #2
	mov	w14, #5
	mov	w11, #20294
	movk	w11, #69, lsl #16
Lloh2:
	adrp	x8, _PATCH_PATCH_INVALID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PATCH_PATCH_INVALID@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w14, w9
	b.gt	LBB0_2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x13, w14
	add	x12, x0, w14, sxtw #2
	ldp	w14, w15, [x12]
	lsl	w15, w15, #8
	orr	w15, w15, w14, lsl #16
	add	x14, x13, #3
	ldr	w12, [x12, #8]
	orr	w12, w15, w12
	cmp	w12, w11
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w14, w1
	b.eq	LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w14, w9
	b.eq	LBB0_18
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w14, w10
	b.gt	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w15, [x0, x14, lsl #2]
	add	w14, w13, #5
	add	x16, x0, x13, lsl #2
	ldr	w16, [x16, #16]
	orr	w15, w16, w15, lsl #8
	cbz	w15, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	sub	w13, w1, w15
	cmp	w14, w13
	b.hi	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w14, w14, w15
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w14, w9
	b.gt	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w14, [x0, w14, sxtw #2]
	add	x15, x0, x13, lsl #2
	ldr	w15, [x15, #24]
	orr	w15, w15, w14, lsl #8
	cbz	w15, LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w14, w13, #8
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w12, w12, w15
	cmp	w12, w2
	b.le	LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	str	w12, [x4]
	mov	x2, x12
	b	LBB0_4
LBB0_17:
	sxtw	x0, w2
	b	LBB0_19
LBB0_18:
	ldr	w8, [x0, w9, sxtw #2]
	add	x9, x0, x13, lsl #2
	ldp	w10, w9, [x9, #16]
	lsl	w10, w10, #8
	orr	w8, w10, w8, lsl #16
	orr	w8, w8, w9
	sxtw	x0, w8
	str	w8, [x4]
LBB0_19:
	bl	_malloc
	mov	x20, x0
	cbz	x0, LBB0_21
; %bb.20:
	ldr	x0, [x19]
	bl	_free
	str	x20, [x19]
Lloh4:
	adrp	x8, _PATCH_SUCCESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PATCH_SUCCESS@GOTPAGEOFF]
	b	LBB0_2
LBB0_21:
Lloh6:
	adrp	x8, _PATCH_TARGET_ALLOC_FAILED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PATCH_TARGET_ALLOC_FAILED@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PATCH_TARGET_ALLOC_FAILED,4,2  ; @PATCH_TARGET_ALLOC_FAILED
	.comm	_PATCH_SUCCESS,4,2              ; @PATCH_SUCCESS
	.comm	_PATCH_PATCH_INVALID,4,2        ; @PATCH_PATCH_INVALID
	.no_dead_strip	_ips_alloc_targetdata
.subsections_via_symbols
