	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_vsc_gw_read
_mlx5_vsc_gw_read:                      ## @mlx5_vsc_gw_read
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_VSC_SYND_BIT_OFFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VSC_FLAG_BIT_LEN@GOTPCREL(%rip), %rax
	movq	_VSC_SYND_BIT_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	(%rax), %rdx
	movl	%ebx, %edi
	callq	_MLX5_EXTRACT
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_2:
	movq	_VSC_ADDR_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_vsc_write
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_mlx5_vsc_wait_on_flag
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_VSC_DATA_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vsc_read                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VSC_SYND_BIT_OFFS,4,2          ## @VSC_SYND_BIT_OFFS
	.comm	_VSC_FLAG_BIT_LEN,8,3           ## @VSC_FLAG_BIT_LEN
	.comm	_VSC_SYND_BIT_LEN,8,3           ## @VSC_SYND_BIT_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VSC_ADDR_OFFSET,4,2            ## @VSC_ADDR_OFFSET
	.comm	_VSC_DATA_OFFSET,4,2            ## @VSC_DATA_OFFSET
	.no_dead_strip	_mlx5_vsc_gw_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_vsc_gw_read
_mlx5_vsc_gw_read:                      ; @mlx5_vsc_gw_read
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _VSC_SYND_BIT_OFFS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VSC_SYND_BIT_OFFS@GOTPAGEOFF]
Lloh2:
	adrp	x9, _VSC_FLAG_BIT_LEN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VSC_FLAG_BIT_LEN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	x8, [x9]
Lloh6:
	adrp	x9, _VSC_SYND_BIT_LEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VSC_SYND_BIT_LEN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x2, x9, x8
	mov	x0, x21
	bl	_MLX5_EXTRACT
	cbz	x0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
Lloh12:
	adrp	x8, _VSC_ADDR_OFFSET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VSC_ADDR_OFFSET@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_vsc_write
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	w1, #1
	bl	_mlx5_vsc_wait_on_flag
	cbz	w0, LBB0_5
LBB0_4:
	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
LBB0_5:
Lloh15:
	adrp	x8, _VSC_DATA_OFFSET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VSC_DATA_OFFSET@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	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
	b	_vsc_read
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_VSC_SYND_BIT_OFFS,4,2          ; @VSC_SYND_BIT_OFFS
	.comm	_VSC_FLAG_BIT_LEN,8,3           ; @VSC_FLAG_BIT_LEN
	.comm	_VSC_SYND_BIT_LEN,8,3           ; @VSC_SYND_BIT_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VSC_ADDR_OFFSET,4,2            ; @VSC_ADDR_OFFSET
	.comm	_VSC_DATA_OFFSET,4,2            ; @VSC_DATA_OFFSET
	.no_dead_strip	_mlx5_vsc_gw_read
.subsections_via_symbols
