	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_set_bsf
_mlx5_set_bsf:                          ## @mlx5_set_bsf
	.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
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movq	%rsi, %r15
	callq	_to_mmr
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	20(%r15), %r12
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movl	$128, 8(%rbx)
	movl	40(%r15), %eax
	movl	%eax, 64(%rbx)
	movl	%r13d, %edi
	callq	_cpu_to_be32
	movq	%rax, 56(%rbx)
	movl	20(%r15), %eax
	cmpl	$129, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_15
## %bb.2:
	movl	24(%r15), %edi
	callq	_bs_selector
	movq	%rax, 48(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, 40(%rbx)
	leaq	4(%rbx), %rsi
	movq	%r12, %rdi
	callq	_mlx5_fill_inl_bsf
LBB0_3:
	movl	(%r15), %eax
	cmpl	$129, %eax
	je	LBB0_16
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_15
## %bb.5:
	movl	4(%r15), %edi
	cmpl	%edi, 24(%r15)
	jne	LBB0_13
## %bb.6:
	cmpl	$128, (%r12)
	jne	LBB0_13
## %bb.7:
	orb	$16, 8(%rbx)
	movl	36(%r15), %eax
	cmpl	16(%r15), %eax
	jne	LBB0_9
## %bb.8:
	movq	_MLX5_CPY_GRD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%rbx)
LBB0_9:
	movl	32(%r15), %eax
	cmpl	12(%r15), %eax
	jne	LBB0_11
## %bb.10:
	movq	_MLX5_CPY_APP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%rbx)
LBB0_11:
	movl	28(%r15), %eax
	cmpl	8(%r15), %eax
	jne	LBB0_14
## %bb.12:
	movq	_MLX5_CPY_REF_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%rbx)
	jmp	LBB0_14
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_16
LBB0_13:
	callq	_bs_selector
	movq	%rax, 24(%rbx)
LBB0_14:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, 16(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mlx5_fill_inl_bsf
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLX5_CPY_GRD_MASK,4,2          ## @MLX5_CPY_GRD_MASK
	.comm	_MLX5_CPY_APP_MASK,4,2          ## @MLX5_CPY_APP_MASK
	.comm	_MLX5_CPY_REF_MASK,4,2          ## @MLX5_CPY_REF_MASK
	.no_dead_strip	_mlx5_set_bsf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_set_bsf
_mlx5_set_bsf:                          ; @mlx5_set_bsf
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x3
	mov	x19, x2
	mov	x20, x1
	bl	_to_mmr
	ldr	x22, [x0]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	mov	w8, #128
	str	w8, [x19, #8]
	ldr	w8, [x20, #40]
	str	w8, [x19, #64]
	mov	x0, x21
	bl	_cpu_to_be32
	mov	x21, x20
	ldr	w8, [x21, #20]!
	str	x0, [x19, #56]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_13
; %bb.2:
	ldr	w0, [x20, #24]
	bl	_bs_selector
	str	x0, [x19, #48]
	ldr	w0, [x22, #4]
	bl	_cpu_to_be32
	str	x0, [x19, #40]
	add	x1, x19, #4
	mov	x0, x21
	bl	_mlx5_fill_inl_bsf
LBB0_3:
	ldr	w8, [x20]
	cmp	w8, #129
	b.eq	LBB0_16
; %bb.4:
	cmp	w8, #128
	b.ne	LBB0_13
; %bb.5:
	ldr	w8, [x20, #24]
	ldr	w0, [x20, #4]
	cmp	w8, w0
	b.ne	LBB0_14
; %bb.6:
	ldr	w8, [x21]
	cmp	w8, #128
	b.ne	LBB0_14
; %bb.7:
	ldr	w8, [x19, #8]
	orr	w8, w8, #0x10
	str	w8, [x19, #8]
	ldr	w8, [x20, #36]
	ldr	w9, [x20, #16]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.8:
Lloh0:
	adrp	x8, _MLX5_CPY_GRD_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_CPY_GRD_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
LBB0_9:
	ldr	w8, [x20, #32]
	ldr	w9, [x20, #12]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.10:
Lloh3:
	adrp	x8, _MLX5_CPY_APP_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX5_CPY_APP_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
LBB0_11:
	ldr	w8, [x20, #28]
	ldr	w9, [x20, #8]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.12:
Lloh6:
	adrp	x8, _MLX5_CPY_REF_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX5_CPY_REF_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
	b	LBB0_15
LBB0_13:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_14:
	bl	_bs_selector
	str	x0, [x19, #24]
LBB0_15:
	ldr	w0, [x22]
	bl	_cpu_to_be32
	str	x0, [x19, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_mlx5_fill_inl_bsf
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLX5_CPY_GRD_MASK,4,2          ; @MLX5_CPY_GRD_MASK
	.comm	_MLX5_CPY_APP_MASK,4,2          ; @MLX5_CPY_APP_MASK
	.comm	_MLX5_CPY_REF_MASK,4,2          ; @MLX5_CPY_REF_MASK
	.no_dead_strip	_mlx5_set_bsf
.subsections_via_symbols
