	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_lag_get_roce_netdev       ## -- Begin function mlx5_lag_get_roce_netdev
	.p2align	4, 0x90
_mlx5_lag_get_roce_netdev:              ## @mlx5_lag_get_roce_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_lag_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_mlx5_lag_dev_get
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	___mlx5_lag_is_roce
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	8(%rbx), %rax
	movq	_NETDEV_LAG_TX_TYPE_ACTIVEBACKUP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_8
## %bb.4:
	addq	$8, %rax
	jmp	LBB0_8
LBB0_7:
	movq	(%rbx), %rax
LBB0_8:
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_dev_hold
	jmp	LBB0_11
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	_lag_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lag_mutex,4,2                  ## @lag_mutex
	.comm	_NETDEV_LAG_TX_TYPE_ACTIVEBACKUP,8,3 ## @NETDEV_LAG_TX_TYPE_ACTIVEBACKUP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_lag_get_roce_netdev       ; -- Begin function mlx5_lag_get_roce_netdev
	.p2align	2
_mlx5_lag_get_roce_netdev:              ; @mlx5_lag_get_roce_netdev
	.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
Lloh0:
	adrp	x0, _lag_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _lag_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x19
	bl	_mlx5_lag_dev_get
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	___mlx5_lag_is_roce
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _NETDEV_LAG_TX_TYPE_ACTIVEBACKUP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NETDEV_LAG_TX_TYPE_ACTIVEBACKUP@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x10, x9, #8
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	x19, [x8]
	cbnz	x19, LBB0_6
	b	LBB0_7
LBB0_4:
	mov	x19, #0
	b	LBB0_7
LBB0_5:
	ldr	x8, [x19]
	ldr	x19, [x8]
	cbz	x19, LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_dev_hold
LBB0_7:
Lloh5:
	adrp	x0, _lag_mutex@GOTPAGE
Lloh6:
	ldr	x0, [x0, _lag_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_lag_mutex,4,2                  ; @lag_mutex
	.comm	_NETDEV_LAG_TX_TYPE_ACTIVEBACKUP,8,3 ; @NETDEV_LAG_TX_TYPE_ACTIVEBACKUP
.subsections_via_symbols
