	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function split_block
_split_block:                           ## @split_block
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpq	$0, (%rsi)
	jle	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_hardware_threads_get
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_assert
	movq	_opt_block_size@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	setg	%dil
	callq	_assert
	movq	_opt_block_list@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setne	%dil
	callq	_assert
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	cmpq	%rcx, %rax
	cmovlq	%rax, %rcx
	movq	%rcx, (%r14)
	subq	%rcx, (%rbx)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_opt_block_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdx), %rcx
	cmpq	$0, 8(%rax,%rcx,8)
	je	LBB0_4
## %bb.3:
	incq	%rcx
	movq	%rcx, (%rdx)
LBB0_4:
	movq	(%rax,%rcx,8), %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
	callq	_hardware_threads_get
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.5:
	movq	_opt_block_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	jle	LBB0_8
## %bb.6:
	movq	(%r14), %rdx
	subq	%rcx, %rdx
	jle	LBB0_8
## %bb.7:
	movq	%rdx, (%rbx)
	movq	(%rax), %rax
	movq	%rax, (%r14)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_opt_block_size,8,3             ## @opt_block_size
	.comm	_opt_block_list,8,3             ## @opt_block_list
	.no_dead_strip	_split_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function split_block
_split_block:                           ; @split_block
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.1:
	bl	_hardware_threads_get
	cmp	w0, #1
	cset	w0, eq
	bl	_assert
Lloh0:
	adrp	x21, _opt_block_size@GOTPAGE
Lloh1:
	ldr	x21, [x21, _opt_block_size@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w0, gt
	bl	_assert
Lloh2:
	adrp	x8, _opt_block_list@GOTPAGE
Lloh3:
	ldr	x8, [x8, _opt_block_list@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	csel	x8, x8, x9, lt
	str	x8, [x20]
	ldr	x9, [x19]
	sub	x8, x9, x8
	str	x8, [x19]
LBB0_2:
	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
LBB0_3:
Lloh5:
	adrp	x8, _opt_block_list@GOTPAGE
Lloh6:
	ldr	x8, [x8, _opt_block_list@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x2]
	add	x10, x9, #1
	ldr	x11, [x8, x10, lsl #3]
	cbz	x11, LBB0_5
; %bb.4:
	str	x10, [x2]
	mov	x9, x10
LBB0_5:
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [x20]
	bl	_hardware_threads_get
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.6:
Lloh8:
	adrp	x8, _opt_block_size@GOTPAGE
Lloh9:
	ldr	x8, [x8, _opt_block_size@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x9, #1
	b.lt	LBB0_2
; %bb.7:
	ldr	x10, [x20]
	subs	x9, x10, x9
	b.le	LBB0_2
; %bb.8:
	str	x9, [x19]
	ldr	x8, [x8]
	str	x8, [x20]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_opt_block_size,8,3             ; @opt_block_size
	.comm	_opt_block_list,8,3             ; @opt_block_list
	.no_dead_strip	_split_block
.subsections_via_symbols
