	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_dcbx_process_tlv
_qed_dcbx_process_tlv:                  ## @qed_dcbx_process_tlv
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, -72(%rbp)                 ## 4-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %rbx
	movq	_QED_MSG_DCB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%r9d, %ecx
	callq	_DP_VERBOSE
	movq	_DCBX_CONFIG_VERSION_IEEE@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	%rbx, (%rax)
	sete	%al
	testl	%r14d, %r14d
	jle	LBB0_1
## %bb.2:
	movb	%al, %cl
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	%r14d, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	cmpq	%r13, -96(%rbp)                 ## 8-byte Folded Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r13,4), %edi
	movq	_DCBX_APP_PROTOCOL_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_QED_MFW_GET_FIELD
	movq	%rax, %r14
	movl	(%rbx,%r13,4), %edi
	movq	_DCBX_APP_PRI_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_QED_MFW_GET_FIELD
	cmpq	$1, %rax
	movl	$0, %r12d
	sbbl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	bsfq	%rax, %rax
	orl	%eax, %r12d
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	callq	_QED_DCBX_PRIO2TC
	movq	%rax, %r15
	movl	(%rbx,%r13,4), %esi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %rdx
	leaq	-48(%rbp), %rcx
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	callq	_qed_dcbx_get_app_protocol_type
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %eax
	xorl	%r8d, %r8d
	movq	_DCBX_PROTOCOL_ETH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	setne	%r8b
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	$1, %edx
	cmovel	%edx, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	$1, %ecx
	movl	%r12d, %r9d
	pushq	%rax
	pushq	%r15
	callq	_qed_dcbx_update_app_info
	addq	$16, %rsp
	jmp	LBB0_7
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_8:
	movq	_QED_MF_UFP_SPECIFIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	8(%r13), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_10
## %bb.11:
	movq	(%r13), %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movq	_DCBX_PROTOCOL_ETH@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rax,2), %rdx
	movq	%r14, (%rcx,%rdx,8)
	jmp	LBB0_12
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_DP_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_18
LBB0_10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movq	_DCBX_PROTOCOL_ETH@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rax,2), %rdx
	movq	(%rcx,%rdx,8), %r14
LBB0_12:
	leaq	(%rax,%rax,2), %rax
	movl	8(%rcx,%rax,8), %ebx
	movl	$0, -48(%rbp)
	movq	_DCBX_MAX_PROTOCOL_TYPE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	testl	%edx, %edx
	je	LBB0_17
## %bb.13:
	xorl	%eax, %eax
	movq	_DCBX_PROTOCOL_ETH@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %esi
	leaq	(%rsi,%rsi,2), %rsi
	cmpq	$0, 16(%rcx,%rsi,8)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpq	$0, 16(%rbp)
	setne	%cl
	cmpl	(%r12), %eax
	setne	%dl
	andb	%cl, %dl
	movzbl	%dl, %r8d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	movl	%ebx, %r9d
	pushq	%rax
	pushq	%r14
	callq	_qed_dcbx_update_app_info
	addq	$16, %rsp
	movl	-48(%rbp), %eax
	movl	(%r15), %edx
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	%eax
	movl	%eax, -48(%rbp)
	cmpl	%edx, %eax
	jae	LBB0_17
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	jmp	LBB0_14
LBB0_17:
	xorl	%eax, %eax
LBB0_18:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_MSG_DCB,4,2                ## @QED_MSG_DCB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Num APP entries = %d\n"

	.comm	_DCBX_CONFIG_VERSION_IEEE,8,3   ## @DCBX_CONFIG_VERSION_IEEE
	.comm	_DCBX_APP_PROTOCOL_ID,4,2       ## @DCBX_APP_PROTOCOL_ID
	.comm	_DCBX_APP_PRI_MAP,4,2           ## @DCBX_APP_PRI_MAP
L_.str.1:                               ## @.str.1
	.asciz	"Invalid priority\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DCBX_PROTOCOL_ETH,4,2          ## @DCBX_PROTOCOL_ETH
	.comm	_QED_MF_UFP_SPECIFIC,4,2        ## @QED_MF_UFP_SPECIFIC
	.comm	_DCBX_MAX_PROTOCOL_TYPE,4,2     ## @DCBX_MAX_PROTOCOL_TYPE
	.no_dead_strip	_qed_dcbx_process_tlv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_dcbx_process_tlv
_qed_dcbx_process_tlv:                  ; @qed_dcbx_process_tlv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x6
	mov	x26, x5
	mov	x23, x4
	mov	x24, x3
	mov	x21, x2
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
	mov	x20, x0
Lloh0:
	adrp	x8, _QED_MSG_DCB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QED_MSG_DCB@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x5
	bl	_DP_VERBOSE
Lloh5:
	adrp	x8, _DCBX_CONFIG_VERSION_IEEE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DCBX_CONFIG_VERSION_IEEE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	cmp	x8, x19
	cset	w25, eq
	cmp	w26, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w19, #0
	mov	w22, w26
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #4
	subs	x22, x22, #1
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
Lloh8:
	adrp	x8, _DCBX_APP_PROTOCOL_ID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DCBX_APP_PROTOCOL_ID@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_QED_MFW_GET_FIELD
	mov	x27, x0
	ldr	w0, [x24]
Lloh11:
	adrp	x8, _DCBX_APP_PRI_MAP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DCBX_APP_PRI_MAP@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_QED_MFW_GET_FIELD
	rbit	x8, x0
	clz	x8, x8
	cmp	x0, #0
	csinv	w26, w8, wzr, ne
	cbz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	mov	x1, x26
	bl	_QED_DCBX_PRIO2TC
	mov	x28, x0
	ldr	w1, [x24]
	add	x3, sp, #28
	mov	x0, x20
	mov	x2, x27
	mov	x4, x25
	bl	_qed_dcbx_get_app_protocol_type
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w7, [sp, #28]
Lloh14:
	adrp	x8, _DCBX_PROTOCOL_ETH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DCBX_PROTOCOL_ETH@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w7, w8
	cset	w4, ne
	csinc	w19, w19, wzr, ne
	mov	x0, x21
	mov	x1, x20
	ldr	x2, [sp, #16]                   ; 8-byte Folded Reload
	mov	w3, #1
	mov	x5, x26
	mov	x6, x28
	bl	_qed_dcbx_update_app_info
	b	LBB0_2
LBB0_6:
	mov	w19, #0
LBB0_7:
Lloh17:
	adrp	x8, _QED_MF_UFP_SPECIFIC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _QED_MF_UFP_SPECIFIC@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	x1, [x20, #8]
	bl	_test_bit
	cmp	x0, #0
	ccmp	w19, #0, #0, ne
	b.eq	LBB0_10
; %bb.8:
	ldr	x8, [x21]
Lloh20:
	adrp	x9, _DCBX_PROTOCOL_ETH@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DCBX_PROTOCOL_ETH@GOTPAGEOFF]
Lloh22:
	ldrsw	x9, [x9]
	mov	w10, #24
	mul	x10, x9, x10
	ldr	x23, [x8, x10]
	b	LBB0_11
LBB0_9:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_DP_ERR
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_10:
	ldr	x23, [x20]
	ldr	x8, [x21]
Lloh28:
	adrp	x9, _DCBX_PROTOCOL_ETH@GOTPAGE
Lloh29:
	ldr	x9, [x9, _DCBX_PROTOCOL_ETH@GOTPAGEOFF]
Lloh30:
	ldrsw	x9, [x9]
	mov	w10, #24
	mul	x10, x9, x10
	str	x23, [x8, x10]
LBB0_11:
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
	mov	w19, #24
	madd	x9, x9, x19, x8
	ldr	w24, [x9, #8]
	str	wzr, [sp, #28]
Lloh31:
	adrp	x22, _DCBX_MAX_PROTOCOL_TYPE@GOTPAGE
Lloh32:
	ldr	x22, [x22, _DCBX_MAX_PROTOCOL_TYPE@GOTPAGEOFF]
	ldr	w9, [x22]
	cbz	w9, LBB0_17
; %bb.12:
	mov	w7, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	umaddl	x8, w7, w19, x8
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	x25, #0
Lloh33:
	adrp	x8, _DCBX_PROTOCOL_ETH@GOTPAGE
Lloh34:
	ldr	x8, [x8, _DCBX_PROTOCOL_ETH@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ccmp	w7, w8, #4, ne
	cset	w4, ne
	mov	x0, x21
	mov	x1, x20
	ldr	x2, [sp, #16]                   ; 8-byte Folded Reload
	mov	w3, #0
	mov	x5, x24
	mov	x6, x23
	bl	_qed_dcbx_update_app_info
	ldr	w7, [sp, #28]
	ldr	w9, [x22]
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w7, w7, #1
	str	w7, [sp, #28]
	cmp	w7, w9
	b.hs	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x21]
	b	LBB0_13
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_MSG_DCB,4,2                ; @QED_MSG_DCB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Num APP entries = %d\n"

	.comm	_DCBX_CONFIG_VERSION_IEEE,8,3   ; @DCBX_CONFIG_VERSION_IEEE
	.comm	_DCBX_APP_PROTOCOL_ID,4,2       ; @DCBX_APP_PROTOCOL_ID
	.comm	_DCBX_APP_PRI_MAP,4,2           ; @DCBX_APP_PRI_MAP
l_.str.1:                               ; @.str.1
	.asciz	"Invalid priority\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DCBX_PROTOCOL_ETH,4,2          ; @DCBX_PROTOCOL_ETH
	.comm	_QED_MF_UFP_SPECIFIC,4,2        ; @QED_MF_UFP_SPECIFIC
	.comm	_DCBX_MAX_PROTOCOL_TYPE,4,2     ; @DCBX_MAX_PROTOCOL_TYPE
	.no_dead_strip	_qed_dcbx_process_tlv
.subsections_via_symbols
