	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_odp_populate_klm          ## -- Begin function mlx5_odp_populate_klm
	.p2align	4, 0x90
_mlx5_odp_populate_klm:                 ## @mlx5_odp_populate_klm
	.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	%r8d, %r12d
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	8(%rcx), %rax
	movl	(%rax), %edi
	callq	_to_mdev
	movq	%rax, %r13
	movq	_MLX5_IB_UPD_XLT_ZAP@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_4
## %bb.1:
	testq	%r14, %r14
	je	LBB0_11
## %bb.2:
	addq	$16, %rbx
	movq	_MLX5_IMR_MTT_SIZE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	callq	_cpu_to_be32
	movq	%rax, -8(%rbx)
	movq	(%r13), %rdi
	callq	_cpu_to_be32
	movq	%rax, -16(%rbx)
	movq	$0, (%rbx)
	addq	$24, %rbx
	decq	%r14
	jne	LBB0_3
	jmp	LBB0_11
LBB0_4:
	movl	24(%r15), %edi
	callq	_to_ib_umem_odp
	movq	%rax, %rdi
	callq	_lockdep_assert_held
	movq	16(%r15), %rdi
	callq	_lockdep_assert_held
	movq	_MLX5_IMR_MTT_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rsi, %rdi
	imulq	-56(%rbp), %rdi                 ## 8-byte Folded Reload
	imulq	%r14, %rsi
	movq	%r15, %rdx
	callq	_odp_lookup
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	je	LBB0_11
## %bb.5:
	xorl	%r12d, %r12d
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rdi
	callq	_cpu_to_be32
	movq	%rax, %rdi
	movq	%rax, (%rbx)
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	callq	_be32_to_cpu
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movq	%r15, %rcx
	movl	%eax, %r8d
	callq	_mlx5_ib_dbg
	incq	%r12
	addq	$24, %rbx
	cmpq	%r12, %r14
	je	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MLX5_IMR_MTT_SIZE@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_cpu_to_be32
	movq	%rax, 8(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12), %r15
	imulq	(%r13), %r15
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	testq	%r13, %r13
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_ib_umem_start
	cmpq	%r15, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_be32
	movq	%rax, (%rbx)
	movq	%r13, %rdi
	callq	_odp_next
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rdi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_IB_UPD_XLT_ZAP,4,2        ## @MLX5_IB_UPD_XLT_ZAP
	.comm	_MLX5_IMR_MTT_SIZE,8,3          ## @MLX5_IMR_MTT_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%d] va %lx key %x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_odp_populate_klm          ; -- Begin function mlx5_odp_populate_klm
	.p2align	2
_mlx5_odp_populate_klm:                 ; @mlx5_odp_populate_klm
	.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	x24, x4
	mov	x23, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x8, [x3, #8]
	ldr	w0, [x8]
	bl	_to_mdev
	mov	x20, x0
Lloh0:
	adrp	x8, _MLX5_IB_UPD_XLT_ZAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_IB_UPD_XLT_ZAP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_4
; %bb.1:
	cbz	x19, LBB0_11
; %bb.2:
	add	x21, x21, #8
Lloh3:
	adrp	x22, _MLX5_IMR_MTT_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MLX5_IMR_MTT_SIZE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	bl	_cpu_to_be32
	str	x0, [x21]
	ldr	x0, [x20]
	bl	_cpu_to_be32
	stur	x0, [x21, #-8]
	str	xzr, [x21, #8]
	add	x21, x21, #24
	subs	x19, x19, #1
	b.ne	LBB0_3
	b	LBB0_11
LBB0_4:
	ldr	w0, [x23, #24]
	bl	_to_ib_umem_odp
	bl	_lockdep_assert_held
	ldr	x0, [x23, #16]
	bl	_lockdep_assert_held
Lloh5:
	adrp	x27, _MLX5_IMR_MTT_SIZE@GOTPAGE
Lloh6:
	ldr	x27, [x27, _MLX5_IMR_MTT_SIZE@GOTPAGEOFF]
	ldr	x8, [x27]
	mul	x0, x8, x22
	mul	x1, x8, x19
	mov	x2, x23
	bl	_odp_lookup
	cbz	x19, LBB0_11
; %bb.5:
	mov	x23, x0
	mov	x24, #0
Lloh7:
	adrp	x25, l_.str@PAGE
Lloh8:
	add	x25, x25, l_.str@PAGEOFF
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x20]
	bl	_cpu_to_be32
	str	x0, [x21]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	bl	_be32_to_cpu
	mov	x4, x0
	mov	x0, x20
	mov	x1, x25
	mov	x2, x24
	mov	x3, x26
	bl	_mlx5_ib_dbg
	add	x24, x24, #1
	add	x21, x21, #24
	cmp	x19, x24
	b.eq	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x27]
	bl	_cpu_to_be32
	str	x0, [x21, #8]
	add	x8, x22, x24
	ldr	x9, [x27]
	mul	x26, x9, x8
	cbz	x23, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x23
	bl	_ib_umem_start
	cmp	x0, x26
	b.ne	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x23]
	ldr	x0, [x8]
	bl	_cpu_to_be32
	str	x0, [x21]
	mov	x0, x23
	bl	_odp_next
	mov	x23, x0
	ldr	x0, [x21]
	b	LBB0_7
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_IB_UPD_XLT_ZAP,4,2        ; @MLX5_IB_UPD_XLT_ZAP
	.comm	_MLX5_IMR_MTT_SIZE,8,3          ; @MLX5_IMR_MTT_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%d] va %lx key %x\n"

.subsections_via_symbols
