	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_ib_advise_mr_prefetch     ## -- Begin function mlx5_ib_advise_mr_prefetch
	.p2align	4, 0x90
_mlx5_ib_advise_mr_prefetch:            ## @mlx5_ib_advise_mr_prefetch
	.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, %r13d
	movq	%rcx, %r12
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %edi
	callq	_to_mdev
	movq	_MLX5_PF_FLAGS_PREFETCH@GOTPCREL(%rip), %rdx
	movq	_IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpl	%r15d, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_MLX5_PF_FLAGS_DOWNGRADE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_2:
	orl	(%rdx), %ebx
	movq	_IB_UVERBS_ADVISE_MR_FLAG_FLUSH@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_3
## %bb.10:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx5_ib_prefetch_sg_list       ## TAILCALL
LBB0_3:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %r15
	movq	%r12, %rsi
	movq	%r13, %r12
	movl	%r12d, %edx
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kvzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movl	24(%rax), %edi
	leal	(,%r12,4), %edx
	movq	%r15, %rsi
	callq	_memcpy
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, 16(%r14)
	movl	%ebx, (%r14)
	movl	%r12d, 4(%r14)
	movq	%r14, %rbx
	addq	$8, %rbx
	movq	_mlx5_ib_prefetch_mr_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_WORK
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_srcu_read_lock
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_num_pending_prefetch_inc
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	_system_unbound_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_queue_work
	jmp	LBB0_8
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_7:
	movq	%r14, %rdi
	callq	_kvfree
LBB0_8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_srcu_read_unlock
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	xorl	%ecx, %ecx
	testl	%r15d, %r15d
	cmovnel	%ecx, %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_PF_FLAGS_PREFETCH,4,2     ## @MLX5_PF_FLAGS_PREFETCH
	.comm	_IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH,4,2 ## @IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH
	.comm	_MLX5_PF_FLAGS_DOWNGRADE,4,2    ## @MLX5_PF_FLAGS_DOWNGRADE
	.comm	_IB_UVERBS_ADVISE_MR_FLAG_FLUSH,4,2 ## @IB_UVERBS_ADVISE_MR_FLAG_FLUSH
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mlx5_ib_prefetch_mr_work,4,2   ## @mlx5_ib_prefetch_mr_work
	.comm	_system_unbound_wq,4,2          ## @system_unbound_wq
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_ib_advise_mr_prefetch     ; -- Begin function mlx5_ib_advise_mr_prefetch
	.p2align	2
_mlx5_ib_advise_mr_prefetch:            ; @mlx5_ib_advise_mr_prefetch
	.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	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x24, x1
	mov	x22, x0
	ldr	w0, [x0]
	bl	_to_mdev
Lloh0:
	adrp	x8, _MLX5_PF_FLAGS_PREFETCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_PF_FLAGS_PREFETCH@GOTPAGEOFF]
Lloh2:
	adrp	x9, _IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _MLX5_PF_FLAGS_DOWNGRADE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MLX5_PF_FLAGS_DOWNGRADE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w9, w24
	csel	w9, w10, wzr, eq
	orr	w24, w9, w8
Lloh9:
	adrp	x8, _IB_UVERBS_ADVISE_MR_FLAG_FLUSH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_UVERBS_ADVISE_MR_FLAG_FLUSH@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, x24
	mov	x2, x21
	mov	x3, x20
	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
	b	_mlx5_ib_prefetch_sg_list
LBB0_2:
	mov	x19, x0
	mov	x1, x21
	mov	x2, x20
	bl	_struct_size
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_kvzalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x23, x0
	ldr	w0, [x0, #24]
	lsl	w2, w20, #2
	mov	x1, x21
	bl	_memcpy
	str	x22, [x23, #16]
	stp	w24, w20, [x23]
	add	x24, x23, #8
Lloh15:
	adrp	x8, _mlx5_ib_prefetch_mr_work@GOTPAGE
Lloh16:
	ldr	x8, [x8, _mlx5_ib_prefetch_mr_work@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_INIT_WORK
	mov	x0, x19
	bl	_srcu_read_lock
	mov	x25, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_num_pending_prefetch_inc
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.4:
Lloh18:
	adrp	x8, _system_unbound_wq@GOTPAGE
Lloh19:
	ldr	x8, [x8, _system_unbound_wq@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_queue_work
	b	LBB0_7
LBB0_5:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
	mov	x0, x23
	bl	_kvfree
LBB0_7:
	mov	x0, x19
	mov	x1, x25
	bl	_srcu_read_unlock
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w20, #0
	csneg	w0, wzr, w8, ne
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_PF_FLAGS_PREFETCH,4,2     ; @MLX5_PF_FLAGS_PREFETCH
	.comm	_IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH,4,2 ; @IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH
	.comm	_MLX5_PF_FLAGS_DOWNGRADE,4,2    ; @MLX5_PF_FLAGS_DOWNGRADE
	.comm	_IB_UVERBS_ADVISE_MR_FLAG_FLUSH,4,2 ; @IB_UVERBS_ADVISE_MR_FLAG_FLUSH
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mlx5_ib_prefetch_mr_work,4,2   ; @mlx5_ib_prefetch_mr_work
	.comm	_system_unbound_wq,4,2          ; @system_unbound_wq
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
