	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_init_dcb                  ## -- Begin function i40e_init_dcb
	.p2align	4, 0x90
_i40e_init_dcb:                         ## @i40e_init_dcb
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 24(%rdi)
	je	LBB0_13
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_I40E_HW_FLAG_FW_LLDP_PERSISTENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_4
## %bb.2:
	movq	16(%rbx), %rax
	movq	_I40E_MAC_XL710@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	_I40E_LLDP_CURRENT_STATUS_XL710_OFFSET@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_i40e_read_lldp_cfg
	testq	%rax, %rax
	jne	LBB0_15
	jmp	LBB0_8
LBB0_5:
	movq	_I40E_MAC_X722@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.6:
	movq	_I40E_LLDP_CURRENT_STATUS_X722_OFFSET@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edx
	movq	_I40E_SR_EMP_SR_SETTINGS_PTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %r8
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_i40e_read_nvm_module_data
	testq	%rax, %rax
	jne	LBB0_15
LBB0_8:
	movl	-32(%rbp), %eax
	movb	4(%rbx), %cl
	shlb	$2, %cl
	sarl	%cl, %eax
	testb	$15, %al
	je	LBB0_14
## %bb.9:
	leaq	8(%rbx), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_i40e_get_dcbx_status
	testq	%rax, %rax
	jne	LBB0_17
## %bb.10:
	movq	(%r15), %rax
	movq	_I40E_DCBX_STATUS_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.11:
	movq	_I40E_DCBX_STATUS_IN_PROGRESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.12:
	movq	_I40E_DCBX_STATUS_DISABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
	jmp	LBB0_19
LBB0_13:
	movq	_I40E_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	_I40E_DCBX_STATUS_DISABLED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_15:
	movq	_I40E_ERR_NOT_READY@GOTPCREL(%rip), %rax
LBB0_16:
	movq	(%rax), %rax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%rbx, %rdi
	callq	_i40e_get_dcb_config
	testq	%rax, %rax
	jne	LBB0_17
LBB0_19:
	testl	%r14d, %r14d
	je	LBB0_21
## %bb.20:
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_i40e_aq_cfg_lldp_mib_change_event
	jmp	LBB0_17
LBB0_21:
	xorl	%eax, %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_NOT_SUPPORTED,8,3         ## @I40E_NOT_SUPPORTED
	.comm	_I40E_HW_FLAG_FW_LLDP_PERSISTENT,4,2 ## @I40E_HW_FLAG_FW_LLDP_PERSISTENT
	.comm	_I40E_MAC_XL710,8,3             ## @I40E_MAC_XL710
	.comm	_I40E_LLDP_CURRENT_STATUS_XL710_OFFSET,4,2 ## @I40E_LLDP_CURRENT_STATUS_XL710_OFFSET
	.comm	_I40E_MAC_X722,8,3              ## @I40E_MAC_X722
	.comm	_I40E_LLDP_CURRENT_STATUS_X722_OFFSET,4,2 ## @I40E_LLDP_CURRENT_STATUS_X722_OFFSET
	.comm	_I40E_SR_EMP_SR_SETTINGS_PTR,4,2 ## @I40E_SR_EMP_SR_SETTINGS_PTR
	.comm	_I40E_ERR_NOT_READY,8,3         ## @I40E_ERR_NOT_READY
	.comm	_I40E_DCBX_STATUS_DISABLED,8,3  ## @I40E_DCBX_STATUS_DISABLED
	.comm	_I40E_DCBX_STATUS_DONE,8,3      ## @I40E_DCBX_STATUS_DONE
	.comm	_I40E_DCBX_STATUS_IN_PROGRESS,8,3 ## @I40E_DCBX_STATUS_IN_PROGRESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_init_dcb                  ; -- Begin function i40e_init_dcb
	.p2align	2
_i40e_init_dcb:                         ; @i40e_init_dcb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_12
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _I40E_HW_FLAG_FW_LLDP_PERSISTENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I40E_HW_FLAG_FW_LLDP_PERSISTENT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _I40E_MAC_XL710@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I40E_MAC_XL710@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _I40E_LLDP_CURRENT_STATUS_XL710_OFFSET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40E_LLDP_CURRENT_STATUS_XL710_OFFSET@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	add	x1, sp, #8
	mov	x0, x19
	bl	_i40e_read_lldp_cfg
	cbnz	x0, LBB0_14
	b	LBB0_8
LBB0_5:
Lloh8:
	adrp	x9, _I40E_MAC_X722@GOTPAGE
Lloh9:
	ldr	x9, [x9, _I40E_MAC_X722@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.6:
Lloh11:
	adrp	x8, _I40E_LLDP_CURRENT_STATUS_X722_OFFSET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I40E_LLDP_CURRENT_STATUS_X722_OFFSET@GOTPAGEOFF]
LBB0_7:
	ldr	w2, [x8]
Lloh13:
	adrp	x8, _I40E_SR_EMP_SR_SETTINGS_PTR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _I40E_SR_EMP_SR_SETTINGS_PTR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x4, sp, #8
	mov	x0, x19
	mov	w3, #1
	bl	_i40e_read_nvm_module_data
	cbnz	x0, LBB0_14
LBB0_8:
	ldr	w8, [sp, #8]
	ldr	w9, [x19, #4]
	lsl	w9, w9, #2
	asr	w8, w8, w9
	tst	w8, #0xf
	b.eq	LBB0_13
; %bb.9:
	add	x21, x19, #8
	mov	x0, x19
	mov	x1, x21
	bl	_i40e_get_dcbx_status
	cbnz	x0, LBB0_16
; %bb.10:
	ldr	x8, [x21]
Lloh16:
	adrp	x9, _I40E_DCBX_STATUS_DONE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _I40E_DCBX_STATUS_DONE@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
Lloh19:
	adrp	x10, _I40E_DCBX_STATUS_IN_PROGRESS@GOTPAGE
Lloh20:
	ldr	x10, [x10, _I40E_DCBX_STATUS_IN_PROGRESS@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_17
; %bb.11:
	mov	x0, x19
	bl	_i40e_get_dcb_config
	cbnz	x0, LBB0_16
	b	LBB0_18
LBB0_12:
Lloh22:
	adrp	x8, _I40E_NOT_SUPPORTED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _I40E_NOT_SUPPORTED@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh24:
	adrp	x8, _I40E_DCBX_STATUS_DISABLED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _I40E_DCBX_STATUS_DISABLED@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_14:
Lloh27:
	adrp	x8, _I40E_ERR_NOT_READY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _I40E_ERR_NOT_READY@GOTPAGEOFF]
LBB0_15:
	ldr	x0, [x8]
LBB0_16:
	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
	add	sp, sp, #64
	ret
LBB0_17:
Lloh29:
	adrp	x9, _I40E_DCBX_STATUS_DISABLED@GOTPAGE
Lloh30:
	ldr	x9, [x9, _I40E_DCBX_STATUS_DISABLED@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_14
LBB0_18:
	cbz	w20, LBB0_20
; %bb.19:
	mov	x0, x19
	mov	w1, #1
	mov	x2, #0
	bl	_i40e_aq_cfg_lldp_mib_change_event
	b	LBB0_16
LBB0_20:
	mov	x0, #0
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_NOT_SUPPORTED,8,3         ; @I40E_NOT_SUPPORTED
	.comm	_I40E_HW_FLAG_FW_LLDP_PERSISTENT,4,2 ; @I40E_HW_FLAG_FW_LLDP_PERSISTENT
	.comm	_I40E_MAC_XL710,8,3             ; @I40E_MAC_XL710
	.comm	_I40E_LLDP_CURRENT_STATUS_XL710_OFFSET,4,2 ; @I40E_LLDP_CURRENT_STATUS_XL710_OFFSET
	.comm	_I40E_MAC_X722,8,3              ; @I40E_MAC_X722
	.comm	_I40E_LLDP_CURRENT_STATUS_X722_OFFSET,4,2 ; @I40E_LLDP_CURRENT_STATUS_X722_OFFSET
	.comm	_I40E_SR_EMP_SR_SETTINGS_PTR,4,2 ; @I40E_SR_EMP_SR_SETTINGS_PTR
	.comm	_I40E_ERR_NOT_READY,8,3         ; @I40E_ERR_NOT_READY
	.comm	_I40E_DCBX_STATUS_DISABLED,8,3  ; @I40E_DCBX_STATUS_DISABLED
	.comm	_I40E_DCBX_STATUS_DONE,8,3      ; @I40E_DCBX_STATUS_DONE
	.comm	_I40E_DCBX_STATUS_IN_PROGRESS,8,3 ; @I40E_DCBX_STATUS_IN_PROGRESS
.subsections_via_symbols
