	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_fpga_conn_create_mkey
_mlx5_fpga_conn_create_mkey:            ## @mlx5_fpga_conn_create_mkey
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r13d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_create_mkey_in@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_kvzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movl	(%rbx), %edi
	movq	_memory_key_mkey_entry@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_MLX5_ADDR_OF
	movq	%r14, %rbx
	movq	%rax, %r14
	movq	_access_mode_1_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_MKC_ACCESS_MODE_PA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_MLX5_SET
	movq	_lw@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	_MLX5_SET
	movq	_lr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	_MLX5_SET
	movq	_pd@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r14, %rsi
	movl	%r13d, %ecx
	callq	_MLX5_SET
	movq	_length64@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	_MLX5_SET
	movq	_qpn@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r14, %rsi
	movl	$16777215, %ecx                 ## imm = 0xFFFFFF
	callq	_MLX5_SET
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	callq	_mlx5_core_create_mkey
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_kvfree
	movl	%ebx, %eax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_create_mkey_in,4,2             ## @create_mkey_in
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_memory_key_mkey_entry,4,2      ## @memory_key_mkey_entry
	.comm	_access_mode_1_0,4,2            ## @access_mode_1_0
	.comm	_MLX5_MKC_ACCESS_MODE_PA,4,2    ## @MLX5_MKC_ACCESS_MODE_PA
	.comm	_lw,4,2                         ## @lw
	.comm	_lr,4,2                         ## @lr
	.comm	_pd,4,2                         ## @pd
	.comm	_length64,4,2                   ## @length64
	.comm	_qpn,4,2                        ## @qpn
	.no_dead_strip	_mlx5_fpga_conn_create_mkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_fpga_conn_create_mkey
_mlx5_fpga_conn_create_mkey:            ; @mlx5_fpga_conn_create_mkey
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _create_mkey_in@GOTPAGE
Lloh1:
	ldr	x24, [x24, _create_mkey_in@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_MLX5_ST_SZ_BYTES
	mov	x21, x0
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kvzalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x22, x0
	ldr	w0, [x24]
Lloh5:
	adrp	x8, _memory_key_mkey_entry@GOTPAGE
Lloh6:
	ldr	x8, [x8, _memory_key_mkey_entry@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_MLX5_ADDR_OF
	mov	x24, x0
Lloh8:
	adrp	x8, _access_mode_1_0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _access_mode_1_0@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _MLX5_MKC_ACCESS_MODE_PA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MLX5_MKC_ACCESS_MODE_PA@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x1, x0
	bl	_MLX5_SET
Lloh14:
	adrp	x8, _lw@GOTPAGE
Lloh15:
	ldr	x8, [x8, _lw@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x24
	mov	x1, x24
	mov	w3, #1
	bl	_MLX5_SET
Lloh17:
	adrp	x8, _lr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _lr@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x24
	mov	x1, x24
	mov	w3, #1
	bl	_MLX5_SET
Lloh20:
	adrp	x8, _pd@GOTPAGE
Lloh21:
	ldr	x8, [x8, _pd@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x24
	mov	x1, x24
	mov	x3, x23
	bl	_MLX5_SET
Lloh23:
	adrp	x8, _length64@GOTPAGE
Lloh24:
	ldr	x8, [x8, _length64@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x24
	mov	x1, x24
	mov	w3, #1
	bl	_MLX5_SET
Lloh26:
	adrp	x8, _qpn@GOTPAGE
Lloh27:
	ldr	x8, [x8, _qpn@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x24
	mov	x1, x24
	mov	w3, #16777215
	bl	_MLX5_SET
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_mlx5_core_create_mkey
	mov	x19, x0
	mov	x0, x22
	bl	_kvfree
	mov	x0, x19
	b	LBB0_3
LBB0_2:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_create_mkey_in,4,2             ; @create_mkey_in
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_memory_key_mkey_entry,4,2      ; @memory_key_mkey_entry
	.comm	_access_mode_1_0,4,2            ; @access_mode_1_0
	.comm	_MLX5_MKC_ACCESS_MODE_PA,4,2    ; @MLX5_MKC_ACCESS_MODE_PA
	.comm	_lw,4,2                         ; @lw
	.comm	_lr,4,2                         ; @lr
	.comm	_pd,4,2                         ; @pd
	.comm	_length64,4,2                   ; @length64
	.comm	_qpn,4,2                        ; @qpn
	.no_dead_strip	_mlx5_fpga_conn_create_mkey
.subsections_via_symbols
