	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_dcbx_init                ## -- Begin function bnx2x_dcbx_init
	.p2align	4, 0x90
_bnx2x_dcbx_init:                       ## @bnx2x_dcbx_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	%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, %r14d
	movq	%rdi, %rbx
	movq	_SHMEM_LLDP_DCBX_PARAMS_NONE@GOTPCREL(%rip), %r12
	movq	(%r12), %r15
	movl	24(%rdi), %ecx
	testl	%ecx, %ecx
	jne	LBB0_2
## %bb.1:
	movq	_BC_SUPPORTS_DCBX_MSG_NON_PMF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_9
LBB0_2:
	cmpq	$0, 8(%rbx)
	jle	LBB0_9
## %bb.3:
	movq	_BNX2X_MSG_DCB@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	16(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	16(%rbx), %rax
	movq	_BNX2X_DCB_STATE_ON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_SHMEM2_HAS
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_SHMEM2_RD
	movq	%rax, %r15
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_DP
	movq	_DRV_FLAGS_DCB_CONFIGURED@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %esi
	shll	%cl, %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_bnx2x_update_drv_flags
	cmpq	%r15, (%r12)
	jne	LBB0_6
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_HW_LOCK_RESOURCE_DCBX_ADMIN_MIB@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_bnx2x_acquire_hw_lock
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_bnx2x_dcbx_admin_mib_updated_params
LBB0_8:
	movq	_DRV_MSG_CODE_DCBX_ADMIN_PMF_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_bnx2x_fw_command
	movl	(%r12), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2x_release_hw_lock          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SHMEM_LLDP_DCBX_PARAMS_NONE,8,3 ## @SHMEM_LLDP_DCBX_PARAMS_NONE
	.comm	_BC_SUPPORTS_DCBX_MSG_NON_PMF,4,2 ## @BC_SUPPORTS_DCBX_MSG_NON_PMF
	.comm	_BNX2X_MSG_DCB,4,2              ## @BNX2X_MSG_DCB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dcb_state %d bp->port.pmf %d\n"

	.comm	_BNX2X_DCB_STATE_ON,8,3         ## @BNX2X_DCB_STATE_ON
L_.str.1:                               ## @.str.1
	.asciz	"dcbx_lldp_params_offset 0x%x\n"

	.comm	_DRV_FLAGS_DCB_CONFIGURED,4,2   ## @DRV_FLAGS_DCB_CONFIGURED
	.comm	_HW_LOCK_RESOURCE_DCBX_ADMIN_MIB,4,2 ## @HW_LOCK_RESOURCE_DCBX_ADMIN_MIB
	.comm	_DRV_MSG_CODE_DCBX_ADMIN_PMF_MSG,4,2 ## @DRV_MSG_CODE_DCBX_ADMIN_PMF_MSG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_dcbx_init                ; -- Begin function bnx2x_dcbx_init
	.p2align	2
_bnx2x_dcbx_init:                       ; @bnx2x_dcbx_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _SHMEM_LLDP_DCBX_PARAMS_NONE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SHMEM_LLDP_DCBX_PARAMS_NONE@GOTPAGEOFF]
	ldr	x21, [x22]
	ldr	w8, [x0, #24]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w9, [x19]
Lloh2:
	adrp	x10, _BC_SUPPORTS_DCBX_MSG_NON_PMF@GOTPAGE
Lloh3:
	ldr	x10, [x10, _BC_SUPPORTS_DCBX_MSG_NON_PMF@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
LBB0_2:
	ldr	x9, [x19, #8]
	cmp	x9, #1
	b.lt	LBB0_6
; %bb.3:
Lloh5:
	adrp	x23, _BNX2X_MSG_DCB@GOTPAGE
Lloh6:
	ldr	x23, [x23, _BNX2X_MSG_DCB@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	x2, [x19, #16]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	ldr	x8, [x19, #16]
Lloh9:
	adrp	x9, _BNX2X_DCB_STATE_ON@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BNX2X_DCB_STATE_ON@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x19
	mov	x1, x21
	bl	_SHMEM2_HAS
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x21
	bl	_SHMEM2_RD
	mov	x21, x0
	ldr	w0, [x23]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_DP
Lloh14:
	adrp	x8, _DRV_FLAGS_DCB_CONFIGURED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DRV_FLAGS_DCB_CONFIGURED@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w1, w9, w8
	mov	x0, x19
	mov	w2, #0
	bl	_bnx2x_update_drv_flags
	ldr	x8, [x22]
	cmp	x8, x21
	b.ne	LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
Lloh17:
	adrp	x22, _HW_LOCK_RESOURCE_DCBX_ADMIN_MIB@GOTPAGE
Lloh18:
	ldr	x22, [x22, _HW_LOCK_RESOURCE_DCBX_ADMIN_MIB@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_bnx2x_acquire_hw_lock
	cbz	w20, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x21
	bl	_bnx2x_dcbx_admin_mib_updated_params
LBB0_9:
Lloh19:
	adrp	x8, _DRV_MSG_CODE_DCBX_ADMIN_PMF_MSG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DRV_MSG_CODE_DCBX_ADMIN_PMF_MSG@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_bnx2x_fw_command
	ldr	w1, [x22]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_bnx2x_release_hw_lock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_SHMEM_LLDP_DCBX_PARAMS_NONE,8,3 ; @SHMEM_LLDP_DCBX_PARAMS_NONE
	.comm	_BC_SUPPORTS_DCBX_MSG_NON_PMF,4,2 ; @BC_SUPPORTS_DCBX_MSG_NON_PMF
	.comm	_BNX2X_MSG_DCB,4,2              ; @BNX2X_MSG_DCB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dcb_state %d bp->port.pmf %d\n"

	.comm	_BNX2X_DCB_STATE_ON,8,3         ; @BNX2X_DCB_STATE_ON
l_.str.1:                               ; @.str.1
	.asciz	"dcbx_lldp_params_offset 0x%x\n"

	.comm	_DRV_FLAGS_DCB_CONFIGURED,4,2   ; @DRV_FLAGS_DCB_CONFIGURED
	.comm	_HW_LOCK_RESOURCE_DCBX_ADMIN_MIB,4,2 ; @HW_LOCK_RESOURCE_DCBX_ADMIN_MIB
	.comm	_DRV_MSG_CODE_DCBX_ADMIN_PMF_MSG,4,2 ; @DRV_MSG_CODE_DCBX_ADMIN_PMF_MSG
.subsections_via_symbols
