	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function move_segments
_move_segments:                         ## @move_segments
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.2:
	movq	%rdx, %r15
	movq	%rdi, %r14
	movq	%rbx, %rdi
	callq	_free_fragment_list
	movq	(%r14), %rax
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	addq	%rcx, %rdx
	cmpq	%rdx, %rax
	jle	LBB0_4
## %bb.3:
	movq	$0, 16(%rbx)
	jmp	LBB0_5
LBB0_4:
	subq	%rcx, %rax
	addq	%rax, 16(%rbx)
LBB0_5:
	movq	24(%r14), %rax
	movq	%rax, 24(%rbx)
	movq	8(%r14), %rax
	movq	%rax, 8(%rbx)
	movl	36(%r14), %eax
	movl	%eax, 36(%rbx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_calc_max_seg_no
	movl	%eax, 32(%rbx)
	movq	$0, 24(%r14)
	movq	$0, 8(%r14)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_move_segments
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function move_segments
_move_segments:                         ; @move_segments
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x0, LBB0_6
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_6
; %bb.2:
	mov	x21, x2
	mov	x19, x0
	mov	x0, x20
	bl	_free_fragment_list
	ldr	x8, [x19]
	ldp	x9, x10, [x20]
	add	x10, x10, x9
	cmp	x8, x10
	b.le	LBB0_4
; %bb.3:
	str	xzr, [x20, #16]
	b	LBB0_5
LBB0_4:
	ldr	x10, [x20, #16]
	sub	x8, x8, x9
	add	x8, x8, x10
	str	x8, [x20, #16]
LBB0_5:
	ldr	x8, [x19, #24]
	str	x8, [x20, #24]
	ldr	x8, [x19, #8]
	str	x8, [x20, #8]
	ldr	w8, [x19, #36]
	str	w8, [x20, #36]
	mov	x0, x20
	mov	x1, x21
	bl	_calc_max_seg_no
	str	w0, [x20, #32]
	str	xzr, [x19, #24]
	str	xzr, [x19, #8]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_move_segments
.subsections_via_symbols
