	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_block_of_size
_find_block_of_size:                    ## @find_block_of_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r8
	movq	(%r8), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r8,%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r8,%rdi), %rcx
	cmpq	%rsi, %rcx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%r9, %r9
	sete	%r10b
	cmpq	%r9, %rcx
	setl	%dl
	orb	%r10b, %dl
	cmovneq	%rdi, %rax
	cmovneq	%rcx, %r9
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	xorl	%r9d, %r9d
LBB0_8:
	movq	_RMM_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rsi, %rcx
	cmpq	%rcx, %r9
	jle	LBB0_11
## %bb.9:
	leaq	(%r8,%rax), %rdx
	movq	(%r8,%rax), %rcx
	subq	%rsi, %rcx
	movq	%rcx, (%rsi,%rdx)
	movq	8(%r8,%rax), %rcx
	movq	%rcx, 8(%rsi,%rdx)
	movq	%rax, 16(%rsi,%rdx)
	movq	%rsi, (%r8,%rax)
	leaq	(%rax,%rsi), %rcx
	movq	%rcx, 8(%r8,%rax)
	movq	8(%rsi,%rdx), %rdx
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.10:
	movq	%rcx, 16(%r8,%rdx)
LBB0_11:
	popq	%rbp
	retq
LBB0_4:
	movq	%rdi, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RMM_BLOCK_SIZE,8,3             ## @RMM_BLOCK_SIZE
	.no_dead_strip	_find_block_of_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_block_of_size
_find_block_of_size:                    ; @find_block_of_size
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x10, [x8]
	cbz	x10, LBB0_4
; %bb.1:
	mov	x9, #0
	mov	x0, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x11, x8, x10
	ldr	x12, [x11]
	cmp	x12, x1
	b.eq	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x9, #0
	ccmp	x12, x9, #8, ne
	cset	w13, lt
	cmp	w13, #0
	csel	x10, x10, x0, ne
	csel	x13, x12, x9, ne
	cmp	x12, x1
	csel	x0, x0, x10, lt
	csel	x9, x9, x13, lt
	ldr	x10, [x11, #8]
	cbnz	x10, LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x0, #0
	mov	x9, #0
LBB0_5:
Lloh0:
	adrp	x10, _RMM_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _RMM_BLOCK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	add	x10, x10, x1
	cmp	x9, x10
	b.le	LBB0_8
; %bb.6:
	add	x10, x8, x0
	add	x11, x10, x1
	ldp	x9, x12, [x10]
	sub	x9, x9, x1
	stp	x9, x12, [x11]
	str	x0, [x11, #16]
	add	x9, x0, x1
	stp	x1, x9, [x10]
	ldr	x10, [x11, #8]
	cbz	x10, LBB0_8
; %bb.7:
	add	x8, x8, x10
	str	x9, [x8, #16]
LBB0_8:
	ret
LBB0_9:
	mov	x0, x10
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RMM_BLOCK_SIZE,8,3             ; @RMM_BLOCK_SIZE
	.no_dead_strip	_find_block_of_size
.subsections_via_symbols
