	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_find_first_zero_bit
_mlx5_find_first_zero_bit:              ## @mlx5_find_first_zero_bit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	_BITS_PER_LONG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %r8d
	negl	%r8d
	xorl	%ebx, %ebx
	testl	%esi, %r8d
	je	LBB0_5
## %bb.1:
	movl	%r8d, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rax
	cmpq	$-1, %rax
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %rdi
	leal	(%rsi,%rdx), %eax
	addl	%ecx, %ebx
	subl	%ecx, %edx
	testl	%r8d, %eax
	jne	LBB0_2
## %bb.4:
	subl	%ebx, %esi
LBB0_5:
	testl	%esi, %esi
	je	LBB0_9
## %bb.6:
	movq	$-1, %rax
	movl	%esi, %ecx
	shlq	%cl, %rax
	orq	(%rdi), %rax
	cmpq	$-1, %rax
	je	LBB0_7
LBB0_8:
	movq	%rax, %rdi
	callq	_mlx5_ffz
	addl	%eax, %ebx
	jmp	LBB0_9
LBB0_7:
	addl	%esi, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BITS_PER_LONG,4,2              ## @BITS_PER_LONG
	.no_dead_strip	_mlx5_find_first_zero_bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_find_first_zero_bit
_mlx5_find_first_zero_bit:              ; @mlx5_find_first_zero_bit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w1 killed $w1 def $x1
Lloh0:
	adrp	x8, _BITS_PER_LONG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BITS_PER_LONG@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	neg	w11, w10
	tst	w11, w1
	b.eq	LBB0_5
; %bb.1:
	mov	w9, #0
	add	w12, w11, w1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0]
	cmn	x8, #1
	b.ne	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x0, #8
	add	w8, w12, w9
	and	w8, w8, w11
	sub	w9, w9, w10
	cbnz	w8, LBB0_2
; %bb.4:
	neg	w19, w9
	add	w1, w1, w9
	cbnz	w1, LBB0_6
	b	LBB0_10
LBB0_5:
	mov	w19, #0
	cbz	w1, LBB0_10
LBB0_6:
	ldr	x8, [x0]
	mov	x9, #-1
	lsl	x9, x9, x1
	orr	x8, x8, x9
	cmn	x8, #1
	b.ne	LBB0_9
; %bb.7:
	add	w19, w19, w1
	b	LBB0_10
LBB0_8:
	neg	w19, w9
LBB0_9:
	mov	x0, x8
	bl	_mlx5_ffz
	add	w19, w0, w19
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BITS_PER_LONG,4,2              ; @BITS_PER_LONG
	.no_dead_strip	_mlx5_find_first_zero_bit
.subsections_via_symbols
