	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_fpga_conn_device_init     ## -- Begin function mlx5_fpga_conn_device_init
	.p2align	4, 0x90
_mlx5_fpga_conn_device_init:            ## @mlx5_fpga_conn_device_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_mlx5_nic_vport_enable_roce
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_mlx5_fpga_err
	jmp	LBB0_10
LBB0_2:
	movl	(%r14), %edi
	callq	_mlx5_get_uars_page
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	8(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_mlx5_fpga_err
	jmp	LBB0_9
LBB0_4:
	movl	(%rdi), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_mlx5_fpga_dbg
	movl	(%r14), %edi
	leaq	16(%r14), %rsi
	callq	_mlx5_core_alloc_pd
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_mlx5_fpga_err
	jmp	LBB0_8
LBB0_6:
	movl	16(%r14), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_mlx5_fpga_dbg
	movl	(%r14), %edi
	movl	16(%r14), %esi
	leaq	20(%r14), %rdx
	callq	_mlx5_fpga_conn_create_mkey
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_mlx5_fpga_err
	movl	(%r14), %edi
	movl	16(%r14), %esi
	callq	_mlx5_core_dealloc_pd
LBB0_8:
	movl	(%r14), %edi
	movq	8(%r14), %rsi
	callq	_mlx5_put_uars_page
LBB0_9:
	movl	(%r14), %edi
	callq	_mlx5_nic_vport_disable_roce
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	movl	20(%r14), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_mlx5_fpga_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to enable RoCE: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"get_uars_page failed, %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Allocated UAR index %u\n"

L_.str.3:                               ## @.str.3
	.asciz	"alloc pd failed, %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Allocated PD %u\n"

L_.str.5:                               ## @.str.5
	.asciz	"create mkey failed, %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"Created mkey 0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_fpga_conn_device_init     ; -- Begin function mlx5_fpga_conn_device_init
	.p2align	2
_mlx5_fpga_conn_device_init:            ; @mlx5_fpga_conn_device_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0]
	bl	_mlx5_nic_vport_enable_roce
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_mlx5_fpga_err
	b	LBB0_10
LBB0_2:
	ldr	w0, [x19]
	bl	_mlx5_get_uars_page
	str	x0, [x19, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	bl	_PTR_ERR
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_mlx5_fpga_err
	b	LBB0_9
LBB0_4:
	ldr	w2, [x0]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mlx5_fpga_dbg
	mov	x1, x19
	ldr	w0, [x1], #16
	bl	_mlx5_core_alloc_pd
	cbz	w0, LBB0_6
; %bb.5:
	mov	x20, x0
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_mlx5_fpga_err
	b	LBB0_8
LBB0_6:
	ldr	w2, [x19, #16]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_mlx5_fpga_dbg
	ldr	w0, [x19]
	ldr	w1, [x19, #16]
	add	x2, x19, #20
	bl	_mlx5_fpga_conn_create_mkey
	mov	x20, x0
	cbz	w0, LBB0_11
; %bb.7:
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_mlx5_fpga_err
	ldr	w0, [x19]
	ldr	w1, [x19, #16]
	bl	_mlx5_core_dealloc_pd
LBB0_8:
	ldr	w0, [x19]
	ldr	x1, [x19, #8]
	bl	_mlx5_put_uars_page
LBB0_9:
	ldr	w0, [x19]
	bl	_mlx5_nic_vport_disable_roce
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	w2, [x19, #20]
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_mlx5_fpga_dbg
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to enable RoCE: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"get_uars_page failed, %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Allocated UAR index %u\n"

l_.str.3:                               ; @.str.3
	.asciz	"alloc pd failed, %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Allocated PD %u\n"

l_.str.5:                               ; @.str.5
	.asciz	"create mkey failed, %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"Created mkey 0x%x\n"

.subsections_via_symbols
