	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp2_kvdl_part_alloc
_mlxsw_sp2_kvdl_part_alloc:             ## @mlxsw_sp2_kvdl_part_alloc
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %eax
	movq	%rdi, %r15
	movl	(%rdi), %esi
	movl	%eax, %edi
	callq	_DIV_ROUND_UP
	movl	%eax, %r12d
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mlxsw_sp2_kvdl_part_find_zero_bits
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-36(%rbp), %edi
	addl	%ebx, %edi
	movl	4(%r15), %esi
	callq	___set_bit
	incl	%ebx
	cmpl	%ebx, %r12d
	jne	LBB0_3
LBB0_4:
	movl	(%r15), %eax
	imull	-36(%rbp), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mlxsw_sp2_kvdl_part_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp2_kvdl_part_alloc
_mlxsw_sp2_kvdl_part_alloc:             ; @mlxsw_sp2_kvdl_part_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x8, x1
	mov	x20, x0
	ldr	w1, [x0]
	mov	x0, x8
	bl	_DIV_ROUND_UP
	mov	x21, x0
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x21
	bl	_mlxsw_sp2_kvdl_part_find_zero_bits
	cbnz	w0, LBB0_5
; %bb.1:
	cbz	w21, LBB0_4
; %bb.2:
	mov	w22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #12]
	add	w0, w22, w8
	ldr	w1, [x20, #4]
	bl	___set_bit
	add	w22, w22, #1
	cmp	w21, w22
	b.ne	LBB0_3
LBB0_4:
	mov	w0, #0
	ldr	w8, [sp, #12]
	ldr	w9, [x20]
	mul	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mlxsw_sp2_kvdl_part_alloc
.subsections_via_symbols
