	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_ib_read_user_wqe_sq       ## -- Begin function mlx5_ib_read_user_wqe_sq
	.p2align	4, 0x90
_mlx5_ib_read_user_wqe_sq:              ## @mlx5_ib_read_user_wqe_sq
	.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
	movl	%ecx, %r13d
	cmpl	$3, %ecx
	ja	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_2:
	movq	%r8, %r14
	movq	%rdx, %r15
	movl	%esi, %ecx
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	movslq	%r13d, %rax
	movl	8(%rdi), %r8d
	movl	(%rdi), %r10d
	movl	4(%rdi), %r9d
	subq	$8, %rsp
	leaq	-48(%rbp), %r11
	movq	%r12, %rdi
	movq	%rdx, %rsi
	movl	%r13d, %edx
	pushq	%r11
	pushq	%rax
	pushq	%r10
	callq	_mlx5_ib_read_user_wqe_common
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_3
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpq	$3, -48(%rbp)
	jbe	LBB0_1
## %bb.4:
	movl	(%r15), %edi
	callq	_be32_to_cpu
	movq	_MLX5_WQE_CTRL_DS_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movslq	%eax, %rcx
	movq	_MLX5_WQE_DS_UNITS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	%rcx, %rax
	movq	-48(%rbp), %rcx
	cmpq	%rax, %rcx
	jae	LBB0_5
## %bb.6:
	addq	%rcx, %r15
	subl	%ecx, %r13d
	movl	8(%rbx), %r8d
	movl	(%rbx), %r10d
	movl	4(%rbx), %r9d
	subq	%rcx, %rax
	subq	$8, %rsp
	leaq	-56(%rbp), %rbx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	pushq	%rbx
	pushq	%rax
	pushq	%r10
	callq	_mlx5_ib_read_user_wqe_common
	addq	$32, %rsp
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	-56(%rbp), %rax
	addq	-48(%rbp), %rax
	movq	%rax, (%r14)
	jmp	LBB0_8
LBB0_5:
	movq	%rcx, (%r14)
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLX5_WQE_CTRL_DS_MASK,4,2      ## @MLX5_WQE_CTRL_DS_MASK
	.comm	_MLX5_WQE_DS_UNITS,4,2          ## @MLX5_WQE_DS_UNITS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_ib_read_user_wqe_sq       ; -- Begin function mlx5_ib_read_user_wqe_sq
	.p2align	2
_mlx5_ib_read_user_wqe_sq:              ; @mlx5_ib_read_user_wqe_sq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x22, x3
	cmp	w3, #3
	b.hi	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x19, x4
	mov	x23, x2
	mov	x3, x1
	mov	x21, x0
	ldr	x20, [x0, #16]
	sxtw	x7, w22
	ldp	w5, w4, [x0, #4]
	ldr	w6, [x0]
	add	x8, sp, #24
	str	x8, [sp]
	mov	x0, x20
	mov	x1, x2
	mov	x2, x22
	bl	_mlx5_ib_read_user_wqe_common
	cbz	w0, LBB0_4
LBB0_3:
	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
	add	sp, sp, #96
	ret
LBB0_4:
	ldr	x8, [sp, #24]
	cmp	x8, #3
	b.ls	LBB0_1
; %bb.5:
	ldr	w0, [x23]
	bl	_be32_to_cpu
Lloh3:
	adrp	x8, _MLX5_WQE_CTRL_DS_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX5_WQE_CTRL_DS_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
	sxtw	x8, w8
Lloh6:
	adrp	x9, _MLX5_WQE_DS_UNITS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MLX5_WQE_DS_UNITS@GOTPAGEOFF]
Lloh8:
	ldrsw	x9, [x9]
	mul	x9, x8, x9
	ldr	x8, [sp, #24]
	cmp	x8, x9
	b.hs	LBB0_8
; %bb.6:
	add	x1, x23, x8
	sub	w2, w22, w8
	ldp	w5, w4, [x21, #4]
	sub	x7, x9, x8
	ldr	w6, [x21]
	add	x8, sp, #16
	str	x8, [sp]
	mov	x0, x20
	mov	w3, #0
	bl	_mlx5_ib_read_user_wqe_common
	cbnz	w0, LBB0_3
; %bb.7:
	ldp	x9, x8, [sp, #16]
	add	x8, x9, x8
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	str	x8, [x19]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLX5_WQE_CTRL_DS_MASK,4,2      ; @MLX5_WQE_CTRL_DS_MASK
	.comm	_MLX5_WQE_DS_UNITS,4,2          ; @MLX5_WQE_DS_UNITS
.subsections_via_symbols
