	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_get_ieee_or_cee_dcb_cfg
_ice_get_ieee_or_cee_dcb_cfg:           ## @ice_get_ieee_or_cee_dcb_cfg
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	_ICE_DCBX_MODE_IEEE@GOTPCREL(%rip), %rax
	movq	_ICE_DCBX_MODE_CEE@GOTPCREL(%rip), %rdx
	leaq	12(%rdi), %rcx
	xorl	%r14d, %r14d
	cmpq	%rsi, (%rdx)
	cmovneq	%r14, %rcx
	cmpq	%rsi, (%rax)
	leaq	16(%rdi), %rax
	cmoveq	%rax, %rcx
	movq	(%rdi), %rdi
	movq	_ICE_AQ_LLDP_MIB_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ICE_AQ_LLDP_BRID_TYPE_NEAREST_BRID@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_ice_aq_get_dcb_cfg
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	8(%rbx), %rcx
	movq	(%rbx), %rdi
	movq	_ICE_AQ_LLDP_MIB_REMOTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	callq	_ice_aq_get_dcb_cfg
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	_ICE_AQ_RC_ENOENT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	cmovel	%r14d, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_ICE_ERR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_ERR_PARAM,4,2              ## @ICE_ERR_PARAM
	.comm	_ICE_DCBX_MODE_IEEE,8,3         ## @ICE_DCBX_MODE_IEEE
	.comm	_ICE_DCBX_MODE_CEE,8,3          ## @ICE_DCBX_MODE_CEE
	.comm	_ICE_AQ_LLDP_MIB_LOCAL,4,2      ## @ICE_AQ_LLDP_MIB_LOCAL
	.comm	_ICE_AQ_LLDP_BRID_TYPE_NEAREST_BRID,4,2 ## @ICE_AQ_LLDP_BRID_TYPE_NEAREST_BRID
	.comm	_ICE_AQ_LLDP_MIB_REMOTE,4,2     ## @ICE_AQ_LLDP_MIB_REMOTE
	.comm	_ICE_AQ_RC_ENOENT,8,3           ## @ICE_AQ_RC_ENOENT
	.no_dead_strip	_ice_get_ieee_or_cee_dcb_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_get_ieee_or_cee_dcb_cfg
_ice_get_ieee_or_cee_dcb_cfg:           ; @ice_get_ieee_or_cee_dcb_cfg
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _ICE_DCBX_MODE_IEEE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_DCBX_MODE_IEEE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x9, x0, #16
Lloh3:
	adrp	x10, _ICE_DCBX_MODE_CEE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ICE_DCBX_MODE_CEE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	mov	x11, x0
	ldr	x0, [x11], #12
	cmp	x10, x1
	csel	x10, x11, xzr, eq
	cmp	x8, x1
	csel	x3, x9, x10, eq
Lloh6:
	adrp	x8, _ICE_AQ_LLDP_MIB_LOCAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICE_AQ_LLDP_MIB_LOCAL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x20, _ICE_AQ_LLDP_BRID_TYPE_NEAREST_BRID@GOTPAGE
Lloh10:
	ldr	x20, [x20, _ICE_AQ_LLDP_BRID_TYPE_NEAREST_BRID@GOTPAGEOFF]
	ldr	w2, [x20]
	bl	_ice_aq_get_dcb_cfg
	cbnz	w0, LBB0_4
; %bb.2:
	add	x3, x19, #8
	ldr	x0, [x19]
Lloh11:
	adrp	x8, _ICE_AQ_LLDP_MIB_REMOTE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ICE_AQ_LLDP_MIB_REMOTE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x20]
	bl	_ice_aq_get_dcb_cfg
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _ICE_AQ_RC_ENOENT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ICE_AQ_RC_ENOENT@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	w0, wzr, w0, eq
	b	LBB0_4
LBB0_3:
Lloh17:
	adrp	x8, _ICE_ERR_PARAM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ICE_ERR_PARAM@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_ERR_PARAM,4,2              ; @ICE_ERR_PARAM
	.comm	_ICE_DCBX_MODE_IEEE,8,3         ; @ICE_DCBX_MODE_IEEE
	.comm	_ICE_DCBX_MODE_CEE,8,3          ; @ICE_DCBX_MODE_CEE
	.comm	_ICE_AQ_LLDP_MIB_LOCAL,4,2      ; @ICE_AQ_LLDP_MIB_LOCAL
	.comm	_ICE_AQ_LLDP_BRID_TYPE_NEAREST_BRID,4,2 ; @ICE_AQ_LLDP_BRID_TYPE_NEAREST_BRID
	.comm	_ICE_AQ_LLDP_MIB_REMOTE,4,2     ; @ICE_AQ_LLDP_MIB_REMOTE
	.comm	_ICE_AQ_RC_ENOENT,8,3           ; @ICE_AQ_RC_ENOENT
	.no_dead_strip	_ice_get_ieee_or_cee_dcb_cfg
.subsections_via_symbols
