	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_ib_map_klm_mr_sg_pi
_mlx5_ib_map_klm_mr_sg_pi:              ## @mlx5_ib_map_klm_mr_sg_pi
	.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, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_to_mmr
	movq	72(%rax), %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rbx)
	movq	$0, 64(%rbx)
	movl	4(%r14), %edi
	movl	4(%rbx), %edx
	movl	40(%rbx), %esi
	imull	(%rbx), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_ib_dma_sync_single_for_cpu
	movq	16(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movq	%r13, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_mlx5_ib_sg_to_klms
	movl	%eax, %r15d
	movl	4(%r14), %edi
	movl	4(%rbx), %edx
	movl	40(%rbx), %esi
	imull	(%rbx), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_ib_dma_sync_single_for_device
	movq	$0, 32(%rbx)
	movq	$0, 16(%rbx)
	movl	8(%rbx), %eax
	movl	24(%rbx), %ecx
	movl	%ecx, 28(%rbx)
	movl	%eax, (%r14)
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_mlx5_ib_map_klm_mr_sg_pi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_ib_map_klm_mr_sg_pi
_mlx5_ib_map_klm_mr_sg_pi:              ; @mlx5_ib_map_klm_mr_sg_pi
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	bl	_to_mmr
	ldr	x26, [x0, #72]
	stp	xzr, xzr, [x26, #56]
	str	xzr, [x26, #48]
	ldr	w0, [x25, #4]
	ldr	w1, [x26, #40]
	ldp	w8, w9, [x26]
	mul	w2, w9, w8
Lloh0:
	adrp	x27, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x27]
	bl	_ib_dma_sync_single_for_cpu
	mov	x0, x26
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	mov	x6, x19
	bl	_mlx5_ib_sg_to_klms
	mov	x19, x0
	ldr	w0, [x25, #4]
	ldr	w1, [x26, #40]
	ldp	w8, w9, [x26]
	mul	w2, w9, w8
	ldr	w3, [x27]
	bl	_ib_dma_sync_single_for_device
	str	xzr, [x26, #32]
	str	xzr, [x26, #16]
	ldr	w8, [x26, #24]
	str	w8, [x26, #28]
	ldr	w8, [x26, #8]
	str	w8, [x25]
	mov	x0, x19
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_mlx5_ib_map_klm_mr_sg_pi
.subsections_via_symbols
