	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rebase_buffer
_rebase_buffer:                         ## @rebase_buffer
	.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
	cmpl	$0, (%rdi)
	jne	LBB0_8
## %bb.1:
	movq	%rdi, %r13
	movl	$1, (%rdi)
	movq	(%rsi), %r15
	movslq	%r8d, %rax
	leaq	(%r15,%rax), %r12
	movq	%r15, -48(%rbp)
	movq	%r12, -56(%rbp)
	movq	%rcx, -64(%rbp)
	movl	%eax, -80(%rbp)
	movq	%rdi, -72(%rbp)
	movq	8(%rdi), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.2:
	movl	$8, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movslq	(%rax), %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r14
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rcx
	movq	-8(%rcx,%rbx), %rdx
	movq	(%rcx,%rbx), %rcx
	addq	%rdx, %rcx
	cmpq	%r15, %rcx
	jl	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r12, %rdx
	jg	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%r13), %edi
	movl	4(%rax), %esi
	movq	_on_rebase_pointer@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-80(%rbp), %r8
	callq	_iterate_rebase_list
	movq	8(%r13), %rax
	jmp	LBB0_6
LBB0_7:
	movl	$0, (%r13)
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_on_rebase_pointer,8,3          ## @on_rebase_pointer
	.no_dead_strip	_rebase_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rebase_buffer
_rebase_buffer:                         ; @rebase_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	w8, [x0]
	cbnz	w8, LBB0_7
; %bb.1:
	mov	x19, x0
	mov	w8, #1
	str	w8, [x0]
	ldr	x20, [x1]
	add	x21, x20, w4, sxtw
	stp	x21, x20, [sp, #32]
	str	w4, [sp, #8]
	stp	x0, x3, [sp, #16]
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x22, #0
	mov	x23, #0
Lloh0:
	adrp	x24, _on_rebase_pointer@GOTPAGE
Lloh1:
	ldr	x24, [x24, _on_rebase_pointer@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldrsw	x9, [x8]
	add	x22, x22, #16
	cmp	x23, x9
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, #8]
	add	x9, x9, x22
	ldp	x2, x9, [x9]
	add	x9, x9, x2
	cmp	x9, x20
	ccmp	x2, x21, #0, ge
	b.gt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #16]
	ldr	w1, [x8, #4]
	ldr	w3, [x24]
	add	x4, sp, #8
	bl	_iterate_rebase_list
	ldr	x8, [x19, #8]
	b	LBB0_3
LBB0_6:
	str	wzr, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_on_rebase_pointer,8,3          ; @on_rebase_pointer
	.no_dead_strip	_rebase_buffer
.subsections_via_symbols
