	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp2_kvdl_part_find_zero_bits
_mlxsw_sp2_kvdl_part_find_zero_bits:    ## @mlxsw_sp2_kvdl_part_find_zero_bits
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movl	4(%rdi), %esi
	incl	%eax
	xorl	%ecx, %ecx
	cmpl	%esi, %eax
	cmovnel	%eax, %ecx
	movb	$1, %r14b
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edx
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	movl	8(%rbx), %edi
	callq	_find_next_zero_bit
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r12), %ecx
	testb	$1, %r14b
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movl	4(%rbx), %esi
	cmpl	%esi, %ecx
	jb	LBB0_10
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=2
	cmpl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	jae	LBB0_6
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=2
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rax, %r13
	movl	%eax, %r14d
	movq	%r12, %rax
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_2 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	8(%rbx), %esi
	movl	%r14d, %edi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=3
	incl	%r14d
	decl	%r15d
	jne	LBB0_8
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=2
	movl	4(%rbx), %esi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_2
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edx, %edx
	xorl	%r14d, %r14d
	jmp	LBB0_1
LBB0_11:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	xorl	%eax, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOBUFS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.no_dead_strip	_mlxsw_sp2_kvdl_part_find_zero_bits
.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_find_zero_bits
_mlxsw_sp2_kvdl_part_find_zero_bits:    ; @mlxsw_sp2_kvdl_part_find_zero_bits
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldp	w8, w1, [x0]
	add	w9, w8, #1
	cmp	w9, w1
	csinc	w25, wzr, w8, eq
	mov	w26, #1
	mov	x22, x25
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w0, [x21, #8]
	mov	x2, x22
	bl	_find_next_zero_bit
	mov	x23, x0
	add	w22, w0, w20
	tbz	w26, #0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x21, #4]
	cmp	w22, w1
	b.lo	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w22, #0
	mov	w26, #0
	b	LBB0_1
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	w22, w25
	b.hs	LBB0_11
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x24, x23
	mov	x27, x20
	cbz	w20, LBB0_9
LBB0_6:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x21, #8]
	mov	x0, x24
	bl	_test_bit
	cbnz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	w24, w24, #1
	subs	w27, w27, #1
	b.ne	LBB0_6
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x21, #4]
	b	LBB0_1
LBB0_9:
	mov	w0, #0
	str	w23, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh0:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.no_dead_strip	_mlxsw_sp2_kvdl_part_find_zero_bits
.subsections_via_symbols
