	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_ib_mr_initiator_pfault_handler
_mlx5_ib_mr_initiator_pfault_handler:   ## @mlx5_ib_mr_initiator_pfault_handler
	.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	%r9d, %ebx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rdi, %r12
	movq	(%rcx), %r15
	movl	(%rsi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	16(%rdx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r15), %edi
	callq	_be32_to_cpu
	movq	_MLX5_WQE_CTRL_DS_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_MLX5_WQE_DS_UNITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	imull	%eax, %esi
	cmpl	%ebx, %esi
	jbe	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	movl	%ebx, %ecx
	jmp	LBB0_4
LBB0_2:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%r14, %rbx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movl	%esi, %eax
	addq	(%rbx), %rax
	movq	%rax, (%r14)
	addq	$8, (%rbx)
	movl	(%r15), %edi
	callq	_be32_to_cpu
	movl	%eax, %r15d
	movq	_MLX5_WQE_CTRL_OPCODE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	8(%r13), %rax
	movq	_IB_QPT_XRC_INI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	addq	$4, (%rbx)
LBB0_7:
	movq	_IB_QPT_UD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	movq	(%r13), %rax
	movq	_MLX5_IB_QPT_DCI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
LBB0_9:
	movq	_MLX5_EXTENDED_UD_AV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	addq	$4, (%rbx)
LBB0_10:
	xorl	%eax, %eax
	leal	-128(%r15), %ecx
	cmpl	$3, %ecx
	jae	LBB0_11
## %bb.14:
	addq	$4, (%rbx)
	jmp	LBB0_13
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
LBB0_4:
	callq	_mlx5_ib_err
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	addl	$-131, %r15d
	cmpl	$2, %r15d
	jae	LBB0_13
## %bb.12:
	addq	$8, (%rbx)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_WQE_CTRL_DS_MASK,4,2      ## @MLX5_WQE_CTRL_DS_MASK
	.comm	_MLX5_WQE_DS_UNITS,4,2          ## @MLX5_WQE_DS_UNITS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to read the complete WQE. ds = 0x%x, ret = 0x%x\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
L_.str.1:                               ## @.str.1
	.asciz	"Got WQE with zero DS. wqe_index=%x, qpn=%x\n"

	.comm	_MLX5_WQE_CTRL_OPCODE_MASK,4,2  ## @MLX5_WQE_CTRL_OPCODE_MASK
	.comm	_IB_QPT_XRC_INI,8,3             ## @IB_QPT_XRC_INI
	.comm	_IB_QPT_UD,8,3                  ## @IB_QPT_UD
	.comm	_MLX5_IB_QPT_DCI,8,3            ## @MLX5_IB_QPT_DCI
	.comm	_MLX5_EXTENDED_UD_AV,4,2        ## @MLX5_EXTENDED_UD_AV
	.no_dead_strip	_mlx5_ib_mr_initiator_pfault_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_ib_mr_initiator_pfault_handler
_mlx5_ib_mr_initiator_pfault_handler:   ; @mlx5_ib_mr_initiator_pfault_handler
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x5
	mov	x22, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	ldr	x26, [x3]
	ldr	w24, [x1]
	ldr	w25, [x2, #16]
	ldr	w0, [x26, #4]
	bl	_be32_to_cpu
Lloh0:
	adrp	x8, _MLX5_WQE_CTRL_DS_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_WQE_CTRL_DS_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w2, w8, w0
Lloh3:
	adrp	x8, _MLX5_WQE_DS_UNITS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX5_WQE_DS_UNITS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mul	w8, w2, w8
	cmp	w8, w23
	b.ls	LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, x23
	b	LBB0_11
LBB0_2:
	cbz	w2, LBB0_10
; %bb.3:
	ldr	x9, [x19]
	add	x8, x9, w8, uxtw
	str	x8, [x22]
	ldr	x8, [x19]
	add	x8, x8, #8
	str	x8, [x19]
	ldr	w0, [x26]
	bl	_be32_to_cpu
Lloh8:
	adrp	x8, _MLX5_WQE_CTRL_OPCODE_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLX5_WQE_CTRL_OPCODE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x8]
	ldr	x8, [x20, #8]
Lloh11:
	adrp	x10, _IB_QPT_XRC_INI@GOTPAGE
Lloh12:
	ldr	x10, [x10, _IB_QPT_XRC_INI@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_5
; %bb.4:
	ldr	x10, [x19]
	add	x10, x10, #4
	str	x10, [x19]
LBB0_5:
	and	w21, w9, w0
Lloh14:
	adrp	x9, _IB_QPT_UD@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IB_QPT_UD@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
	ldr	x8, [x20]
Lloh17:
	adrp	x9, _MLX5_IB_QPT_DCI@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MLX5_IB_QPT_DCI@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_7:
Lloh20:
	adrp	x8, _MLX5_EXTENDED_UD_AV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MLX5_EXTENDED_UD_AV@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_cpu_to_be32
	ldr	x8, [x19]
	add	x8, x8, #4
	str	x8, [x19]
LBB0_8:
	sub	w8, w21, #128
	cmp	w8, #3
	b.hs	LBB0_12
; %bb.9:
	mov	w0, #0
	ldr	x8, [x19]
	add	x8, x8, #4
	b	LBB0_14
LBB0_10:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x24
	mov	x3, x25
LBB0_11:
	bl	_mlx5_ib_err
Lloh25:
	adrp	x8, _EFAULT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_12:
	sub	w8, w21, #131
	cmp	w8, #2
	b.hs	LBB0_16
; %bb.13:
	mov	w0, #0
	ldr	x8, [x19]
	add	x8, x8, #8
LBB0_14:
	str	x8, [x19]
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	w0, #0
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_WQE_CTRL_DS_MASK,4,2      ; @MLX5_WQE_CTRL_DS_MASK
	.comm	_MLX5_WQE_DS_UNITS,4,2          ; @MLX5_WQE_DS_UNITS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to read the complete WQE. ds = 0x%x, ret = 0x%x\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
l_.str.1:                               ; @.str.1
	.asciz	"Got WQE with zero DS. wqe_index=%x, qpn=%x\n"

	.comm	_MLX5_WQE_CTRL_OPCODE_MASK,4,2  ; @MLX5_WQE_CTRL_OPCODE_MASK
	.comm	_IB_QPT_XRC_INI,8,3             ; @IB_QPT_XRC_INI
	.comm	_IB_QPT_UD,8,3                  ; @IB_QPT_UD
	.comm	_MLX5_IB_QPT_DCI,8,3            ; @MLX5_IB_QPT_DCI
	.comm	_MLX5_EXTENDED_UD_AV,4,2        ; @MLX5_EXTENDED_UD_AV
	.no_dead_strip	_mlx5_ib_mr_initiator_pfault_handler
.subsections_via_symbols
