	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_ib_get_netdev
_mlx5_ib_get_netdev:                    ## @mlx5_ib_get_netdev
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_to_mdev
	movq	%rax, %r15
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_mlx5_ib_get_native_port_mdev
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rdi
	callq	_mlx5_lag_get_roce_netdev
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movslq	%r14d, %r12
	decq	%r12
	shlq	$4, %r12
	movq	(%r15), %rdi
	addq	%r12, %rdi
	callq	_read_lock
	movq	(%r15), %rdi
	movq	8(%rdi,%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_dev_hold
	movq	(%r15), %rdi
LBB0_4:
	addq	%r12, %rdi
	callq	_read_unlock
LBB0_5:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_mlx5_ib_put_native_port_mdev
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mlx5_ib_get_netdev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_ib_get_netdev
_mlx5_ib_get_netdev:                    ; @mlx5_ib_get_netdev
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	bl	_to_mdev
	mov	x20, x0
	mov	x1, x19
	mov	x2, #0
	bl	_mlx5_ib_get_native_port_mdev
	cbz	x0, LBB0_6
; %bb.1:
	bl	_mlx5_lag_get_roce_netdev
	mov	x21, x0
	cbnz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x20]
	sxtw	x9, w19
	sub	x22, x9, #1
	lsl	x21, x22, #4
	add	x0, x8, x21
	bl	_read_lock
	ldr	x8, [x20]
	add	x9, x8, x21
	ldr	x21, [x9, #8]
	cbz	x21, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_dev_hold
	ldr	x8, [x20]
LBB0_4:
	add	x0, x8, x22, lsl #4
	bl	_read_unlock
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_mlx5_ib_put_native_port_mdev
	b	LBB0_7
LBB0_6:
	mov	x21, #0
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mlx5_ib_get_netdev
.subsections_via_symbols
