	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5i_open
_mlx5i_open:                            ## @mlx5i_open
	.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
	callq	_mlx5i_epriv
	movq	%rax, %rbx
	movq	24(%rax), %r12
	movq	32(%rax), %r13
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	_MLX5E_STATE_OPENED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %r14
	movq	%r14, %rsi
	callq	_set_bit
	movq	%rbx, %rdi
	callq	_mlx5i_init_underlay_qp
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_mlx5_core_warn
	jmp	LBB0_8
LBB0_2:
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_mlx5_fs_add_rx_underlay_qpn
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_mlx5_core_warn
	jmp	LBB0_7
LBB0_4:
	movq	%rbx, %rsi
	addq	$16, %rsi
	movq	%rbx, %rdi
	callq	_mlx5e_open_channels
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %r15d
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_mlx5_fs_remove_rx_underlay_qpn
LBB0_7:
	movq	%rbx, %rdi
	callq	_mlx5i_uninit_underlay_qp
LBB0_8:
	movq	_MLX5E_STATE_OPENED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
LBB0_9:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	%rbx, %rdi
	callq	_mlx5e_activate_priv_channels
	xorl	%r15d, %r15d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5E_STATE_OPENED,4,2         ## @MLX5E_STATE_OPENED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"prepare underlay qp state failed, %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"attach underlay qp to ft failed, %d\n"

	.no_dead_strip	_mlx5i_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5i_open
_mlx5i_open:                            ; @mlx5i_open
	.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
	bl	_mlx5i_epriv
	mov	x19, x0
	ldp	x22, x24, [x0, #24]
	bl	_mutex_lock
Lloh0:
	adrp	x23, _MLX5E_STATE_OPENED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MLX5E_STATE_OPENED@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x20, x19, #4
	mov	x1, x20
	bl	_set_bit
	mov	x0, x19
	bl	_mlx5i_init_underlay_qp
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_mlx5_core_warn
	b	LBB0_7
LBB0_2:
	ldr	w1, [x24]
	mov	x0, x22
	bl	_mlx5_fs_add_rx_underlay_qpn
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_mlx5_core_warn
	b	LBB0_6
LBB0_4:
	add	x1, x19, #16
	mov	x0, x19
	bl	_mlx5e_open_channels
	mov	x21, x0
	cbz	w0, LBB0_9
; %bb.5:
	ldr	w1, [x24]
	mov	x0, x22
	bl	_mlx5_fs_remove_rx_underlay_qpn
LBB0_6:
	mov	x0, x19
	bl	_mlx5i_uninit_underlay_qp
LBB0_7:
	ldr	w0, [x23]
	mov	x1, x20
	bl	_clear_bit
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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
LBB0_9:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_mlx5e_activate_priv_channels
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5E_STATE_OPENED,4,2         ; @MLX5E_STATE_OPENED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"prepare underlay qp state failed, %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"attach underlay qp to ft failed, %d\n"

	.no_dead_strip	_mlx5i_open
.subsections_via_symbols
