	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_init_dcb                   ## -- Begin function ice_init_dcb
	.p2align	4, 0x90
_ice_init_dcb:                          ## @ice_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, 8(%rdi)
	je	LBB0_1
## %bb.2:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movl	$1, (%r14)
	callq	_ice_get_dcbx_status
	movq	%rax, 8(%r14)
	movq	_ICE_DCBX_STATUS_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.3:
	movq	_ICE_DCBX_STATUS_IN_PROGRESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_ICE_DCBX_STATUS_NOT_STARTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.10:
	movq	_ICE_DCBX_STATUS_DIS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.11:
	movq	_ICE_ERR_NOT_READY@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_1:
	movq	_ICE_ERR_NOT_SUPPORTED@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_5:
	movq	%r14, %rdi
	callq	_ice_get_dcb_cfg
	movq	(%rbx), %rcx
	movq	_ICE_AQ_RC_EPERM@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rcx
	sete	%sil
	movl	%esi, (%r14)
	testl	%eax, %eax
	jne	LBB0_13
LBB0_6:
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_ice_aq_cfg_lldp_mib_change
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	movl	$0, (%r14)
LBB0_9:
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_ERR_NOT_SUPPORTED,4,2      ## @ICE_ERR_NOT_SUPPORTED
	.comm	_ICE_DCBX_STATUS_DONE,8,3       ## @ICE_DCBX_STATUS_DONE
	.comm	_ICE_DCBX_STATUS_IN_PROGRESS,8,3 ## @ICE_DCBX_STATUS_IN_PROGRESS
	.comm	_ICE_DCBX_STATUS_NOT_STARTED,8,3 ## @ICE_DCBX_STATUS_NOT_STARTED
	.comm	_ICE_AQ_RC_EPERM,8,3            ## @ICE_AQ_RC_EPERM
	.comm	_ICE_DCBX_STATUS_DIS,8,3        ## @ICE_DCBX_STATUS_DIS
	.comm	_ICE_ERR_NOT_READY,4,2          ## @ICE_ERR_NOT_READY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_init_dcb                   ; -- Begin function ice_init_dcb
	.p2align	2
_ice_init_dcb:                          ; @ice_init_dcb
	.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
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #16]
	mov	w8, #1
	str	w8, [x19]
	bl	_ice_get_dcbx_status
	str	x0, [x19, #8]
Lloh0:
	adrp	x8, _ICE_DCBX_STATUS_DONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_DCBX_STATUS_DONE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ICE_DCBX_STATUS_IN_PROGRESS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ICE_DCBX_STATUS_IN_PROGRESS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _ICE_DCBX_STATUS_NOT_STARTED@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ICE_DCBX_STATUS_NOT_STARTED@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	ccmp	x0, x10, #4, ne
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_ice_get_dcb_cfg
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _ICE_AQ_RC_EPERM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ICE_AQ_RC_EPERM@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [x19]
	cbnz	w0, LBB0_10
	b	LBB0_6
LBB0_3:
Lloh12:
	adrp	x8, _ICE_ERR_NOT_SUPPORTED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ICE_ERR_NOT_SUPPORTED@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_4:
Lloh15:
	adrp	x8, _ICE_DCBX_STATUS_DIS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ICE_DCBX_STATUS_DIS@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.5:
Lloh18:
	adrp	x8, _ICE_ERR_NOT_READY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ICE_ERR_NOT_READY@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_6:
	cbz	w21, LBB0_9
; %bb.7:
	mov	x0, x20
	mov	w1, #1
	mov	x2, #0
	bl	_ice_aq_cfg_lldp_mib_change
	cbnz	w0, LBB0_10
; %bb.8:
	str	wzr, [x19]
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_ERR_NOT_SUPPORTED,4,2      ; @ICE_ERR_NOT_SUPPORTED
	.comm	_ICE_DCBX_STATUS_DONE,8,3       ; @ICE_DCBX_STATUS_DONE
	.comm	_ICE_DCBX_STATUS_IN_PROGRESS,8,3 ; @ICE_DCBX_STATUS_IN_PROGRESS
	.comm	_ICE_DCBX_STATUS_NOT_STARTED,8,3 ; @ICE_DCBX_STATUS_NOT_STARTED
	.comm	_ICE_AQ_RC_EPERM,8,3            ; @ICE_AQ_RC_EPERM
	.comm	_ICE_DCBX_STATUS_DIS,8,3        ; @ICE_DCBX_STATUS_DIS
	.comm	_ICE_ERR_NOT_READY,4,2          ; @ICE_ERR_NOT_READY
.subsections_via_symbols
