	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_vsc_wait_on_flag
_mlx5_vsc_wait_on_flag:                 ## @mlx5_vsc_wait_on_flag
	.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
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	$1, %ebx
	movq	_VSC_MAX_RETRIES@GOTPCREL(%rip), %r13
	leaq	-48(%rbp), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	cmpq	%r14, %rax
	je	LBB0_7
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%rbx), %eax
	cmpl	(%r13), %eax
	jg	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_VSC_ADDR_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_vsc_read
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi
	movq	_VSC_FLAG_BIT_OFFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VSC_FLAG_BIT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MLX5_EXTRACT
	movq	%rax, -48(%rbp)
	testb	$15, %bl
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movq	-48(%rbp), %rax
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_2:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VSC_MAX_RETRIES,4,2            ## @VSC_MAX_RETRIES
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_VSC_ADDR_OFFSET,4,2            ## @VSC_ADDR_OFFSET
	.comm	_VSC_FLAG_BIT_OFFS,4,2          ## @VSC_FLAG_BIT_OFFS
	.comm	_VSC_FLAG_BIT_LEN,4,2           ## @VSC_FLAG_BIT_LEN
	.no_dead_strip	_mlx5_vsc_wait_on_flag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_vsc_wait_on_flag
_mlx5_vsc_wait_on_flag:                 ; @mlx5_vsc_wait_on_flag
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w21, #1
Lloh0:
	adrp	x22, _VSC_MAX_RETRIES@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VSC_MAX_RETRIES@GOTPAGEOFF]
Lloh2:
	adrp	x23, _VSC_ADDR_OFFSET@GOTPAGE
Lloh3:
	ldr	x23, [x23, _VSC_ADDR_OFFSET@GOTPAGEOFF]
Lloh4:
	adrp	x24, _VSC_FLAG_BIT_OFFS@GOTPAGE
Lloh5:
	ldr	x24, [x24, _VSC_FLAG_BIT_OFFS@GOTPAGEOFF]
Lloh6:
	adrp	x25, _VSC_FLAG_BIT_LEN@GOTPAGE
Lloh7:
	ldr	x25, [x25, _VSC_FLAG_BIT_LEN@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w21, #1
	cmp	x0, x19
	b.eq	LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w21, #1
	ldr	w9, [x22]
	cmp	w8, w9
	b.gt	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x23]
	add	x2, sp, #8
	mov	x0, x20
	bl	_vsc_read
	cbnz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp, #8]
	ldr	w1, [x24]
	ldr	w2, [x25]
	bl	_MLX5_EXTRACT
	str	x0, [sp, #8]
	tst	w21, #0xf
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	x0, [sp, #8]
	b	LBB0_1
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_VSC_MAX_RETRIES,4,2            ; @VSC_MAX_RETRIES
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_VSC_ADDR_OFFSET,4,2            ; @VSC_ADDR_OFFSET
	.comm	_VSC_FLAG_BIT_OFFS,4,2          ; @VSC_FLAG_BIT_OFFS
	.comm	_VSC_FLAG_BIT_LEN,4,2           ; @VSC_FLAG_BIT_LEN
	.no_dead_strip	_mlx5_vsc_wait_on_flag
.subsections_via_symbols
