	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_med_class_bfreg
_alloc_med_class_bfreg:                 ## @alloc_med_class_bfreg
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_first_med_bfreg
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_first_hi_bfreg
	movl	%r12d, %ebx
	cmpl	%eax, %r12d
	jge	LBB0_2
## %bb.3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rcx
	movslq	%r12d, %rdx
	movl	%ebx, %r13d
	cmpq	(%rax,%rdx,8), %rcx
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r12d, %r13d
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r13d, %r14
	cmpq	$0, (%rax,%r14,8)
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_first_hi_bfreg
	cltq
	movl	%r13d, %r12d
	cmpq	%rax, %rbx
	jl	LBB0_5
	jmp	LBB0_8
LBB0_2:
	movq	%rbx, %r14
	movl	%r12d, %r13d
LBB0_8:
	movq	(%r15), %rax
	incq	(%rax,%r14,8)
	movl	%r13d, %r12d
LBB0_9:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_alloc_med_class_bfreg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_med_class_bfreg
_alloc_med_class_bfreg:                 ; @alloc_med_class_bfreg
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_first_med_bfreg
	mov	x19, x0
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	bl	_first_hi_bfreg
	mov	w22, w19
	cmp	w19, w0
	b.ge	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x9, [x8, x22, lsl #3]
	ldr	x10, [x8, w19, sxtw #3]
	cmp	x9, x10
	csel	w19, w22, w19, lt
	sxtw	x23, w19
	ldr	x8, [x8, w19, sxtw #3]
	cbz	x8, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	mov	x0, x21
	mov	x1, x20
	bl	_first_hi_bfreg
	cmp	x22, w0, sxtw
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x23, x22
LBB0_5:
	ldr	x8, [x20]
	lsl	x9, x23, #3
	ldr	x10, [x8, x9]
	add	x10, x10, #1
	str	x10, [x8, x9]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_alloc_med_class_bfreg
.subsections_via_symbols
