	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_dcbnl_setdcbx
_mlx5e_dcbnl_setdcbx:                   ## @mlx5e_dcbnl_setdcbx
	.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
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_DCB_CAP_DCBX_LLD_MANAGED@GOTPCREL(%rip), %rax
	movl	$1, %r15d
	testl	%r12d, (%rax)
	je	LBB0_1
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testl	%r12d, %r12d
	je	LBB0_2
LBB0_6:
	movq	_DCB_CAP_DCBX_HOST@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_10
## %bb.7:
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	%rax, %rdi
	callq	_mlx5e_dcbnl_switch_to_host_mode
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movl	%r12d, 16(%r14)
	jmp	LBB0_9
LBB0_2:
	movq	%r14, %r13
	addq	$8, %r13
	movl	(%r14), %edi
	movq	%r13, %rsi
	callq	_MLX5_CAP_GEN
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_MLX5E_DCBX_PARAM_VER_OPER_AUTO@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	cmpq	%rsi, (%r13)
	je	LBB0_9
## %bb.4:
	movq	%r14, %rdi
	callq	_mlx5e_dcbnl_set_dcbx_mode
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movq	(%rbx), %rax
	movq	%rax, 8(%r14)
	movq	_DCB_CAP_DCBX_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 16(%r14)
LBB0_9:
	xorl	%r15d, %r15d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_DCB_CAP_DCBX_LLD_MANAGED,4,2   ## @DCB_CAP_DCBX_LLD_MANAGED
	.comm	_MLX5E_DCBX_PARAM_VER_OPER_AUTO,8,3 ## @MLX5E_DCBX_PARAM_VER_OPER_AUTO
	.comm	_DCB_CAP_DCBX_HOST,4,2          ## @DCB_CAP_DCBX_HOST
	.no_dead_strip	_mlx5e_dcbnl_setdcbx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_dcbnl_setdcbx
_mlx5e_dcbnl_setdcbx:                   ; @mlx5e_dcbnl_setdcbx
	.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	x20, x1
	mov	x21, x0
	bl	_netdev_priv
Lloh0:
	adrp	x8, _DCB_CAP_DCBX_LLD_MANAGED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCB_CAP_DCBX_LLD_MANAGED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
LBB0_1:
	mov	w0, #1
LBB0_2:
	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
LBB0_3:
	mov	x19, x0
	cbz	w20, LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _DCB_CAP_DCBX_HOST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DCB_CAP_DCBX_HOST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_1
; %bb.5:
	mov	x0, x21
	bl	_netdev_priv
	bl	_mlx5e_dcbnl_switch_to_host_mode
	cbnz	x0, LBB0_1
; %bb.6:
	str	w20, [x19, #16]
	b	LBB0_2
LBB0_7:
	add	x22, x19, #8
	ldr	w0, [x19]
	mov	x1, x22
	bl	_MLX5_CAP_GEN
	cbz	x0, LBB0_4
; %bb.8:
	ldr	x8, [x22]
Lloh6:
	adrp	x20, _MLX5E_DCBX_PARAM_VER_OPER_AUTO@GOTPAGE
Lloh7:
	ldr	x20, [x20, _MLX5E_DCBX_PARAM_VER_OPER_AUTO@GOTPAGEOFF]
	ldr	x1, [x20]
	cmp	x8, x1
	b.ne	LBB0_10
; %bb.9:
	mov	w0, #0
	b	LBB0_2
LBB0_10:
	mov	x0, x19
	bl	_mlx5e_dcbnl_set_dcbx_mode
	cbnz	w0, LBB0_1
; %bb.11:
	ldr	x8, [x20]
	str	x8, [x19, #8]
Lloh8:
	adrp	x8, _DCB_CAP_DCBX_HOST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DCB_CAP_DCBX_HOST@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	bic	w8, w9, w8
	str	w8, [x19, #16]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DCB_CAP_DCBX_LLD_MANAGED,4,2   ; @DCB_CAP_DCBX_LLD_MANAGED
	.comm	_MLX5E_DCBX_PARAM_VER_OPER_AUTO,8,3 ; @MLX5E_DCBX_PARAM_VER_OPER_AUTO
	.comm	_DCB_CAP_DCBX_HOST,4,2          ; @DCB_CAP_DCBX_HOST
	.no_dead_strip	_mlx5e_dcbnl_setdcbx
.subsections_via_symbols
