	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp1_kvdl_alloc_size_part
_mlxsw_sp1_kvdl_alloc_size_part:        ## @mlxsw_sp1_kvdl_alloc_size_part
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MLXSW_SP1_KVDL_PARTS_INFO_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_20
## %bb.1:
	movq	(%rdi), %r10
	cmpl	$1, %r8d
	jne	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	xorl	%eax, %eax
LBB0_13:
	testb	$1, %r8b
	je	LBB0_18
## %bb.14:
	movq	(%r10,%rdi,8), %rcx
	movl	(%rcx), %edx
	cmpl	%esi, %edx
	jb	LBB0_18
## %bb.15:
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	cmpl	(%rax), %edx
	ja	LBB0_18
LBB0_17:
	movq	%rcx, %rax
LBB0_18:
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	popq	%rbp
	retq
LBB0_20:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_3:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%edi, %edi
	xorl	%eax, %eax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, %rax
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$2, %rdi
	cmpq	%rdi, %r9
	je	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r10,%rdi,8), %rcx
	movl	(%rcx), %edx
	cmpl	%esi, %edx
	jb	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	(%rax), %edx
	ja	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, %rax
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r10,%rdi,8), %rcx
	movl	(%rcx), %edx
	cmpl	%esi, %edx
	jb	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	(%rax), %edx
	jbe	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_SP1_KVDL_PARTS_INFO_LEN,4,2 ## @MLXSW_SP1_KVDL_PARTS_INFO_LEN
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.no_dead_strip	_mlxsw_sp1_kvdl_alloc_size_part
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp1_kvdl_alloc_size_part
_mlxsw_sp1_kvdl_alloc_size_part:        ; @mlxsw_sp1_kvdl_alloc_size_part
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _MLXSW_SP1_KVDL_PARTS_INFO_LEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLXSW_SP1_KVDL_PARTS_INFO_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x8, x0
	mov	x0, #0
	ldr	x8, [x8]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x10
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #8
	subs	x9, x9, #1
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8]
	ldr	w11, [x10]
	cmp	w11, w1
	b.lo	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w12, [x0]
	cmp	w11, w12
	b.ls	LBB0_2
	b	LBB0_3
LBB0_7:
	cbz	x0, LBB0_9
; %bb.8:
	ret
LBB0_9:
Lloh3:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_SP1_KVDL_PARTS_INFO_LEN,4,2 ; @MLXSW_SP1_KVDL_PARTS_INFO_LEN
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.no_dead_strip	_mlxsw_sp1_kvdl_alloc_size_part
.subsections_via_symbols
