	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxgb4_ieee_read_ets
_cxgb4_ieee_read_ets:                   ## @cxgb4_ieee_read_ets
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %rbx
	callq	_netdev2pinfo
	movq	_CXGB4_DCB_FW_PGID@GOTPCREL(%rip), %rcx
	movq	_CXGB4_DCB_FW_PGRATE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%edx, 16(%rax)
	je	LBB0_15
## %bb.1:
	movq	%rax, %r14
	movq	8(%rax), %r12
	movl	20(%rax), %eax
	movl	%eax, 40(%rbx)
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.2:
	movl	$1, (%rbx)
	movl	(%r14), %edi
	movups	-72(%rbp), %xmm0
	movups	-56(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_INIT_PORT_DCB_READ_LOCAL_CMD
	jmp	LBB0_4
LBB0_3:
	movl	(%r14), %edi
	movups	-72(%rbp), %xmm0
	movups	-56(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_INIT_PORT_DCB_READ_PEER_CMD
LBB0_4:
	movq	_FW_PORT_DCB_TYPE_PGID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	4(%r12), %esi
	leaq	-72(%rbp), %rdx
	movq	%r12, %rdi
	movl	$32, %ecx
	movq	%rdx, %r8
	callq	_t4_wr_mbox
	movq	_FW_PORT_DCB_CFG_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.7:
	movl	-48(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, %r15d
	movl	(%r14), %edi
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.8:
	movups	-72(%rbp), %xmm0
	movups	-56(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_INIT_PORT_DCB_READ_LOCAL_CMD
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_9:
	movups	-72(%rbp), %xmm0
	movups	-56(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_INIT_PORT_DCB_READ_PEER_CMD
LBB0_10:
	xorl	%r14d, %r14d
	movq	_FW_PORT_DCB_TYPE_PGRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	4(%r12), %esi
	leaq	-72(%rbp), %rdx
	movq	%r12, %rdi
	movl	$32, %ecx
	movq	%rdx, %r8
	callq	_t4_wr_mbox
	movq	_FW_PORT_DCB_CFG_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.12:
	movq	_IEEE_8021QAZ_MAX_TCS@GOTPCREL(%rip), %r8
	cmpl	$0, (%r8)
	jle	LBB0_16
## %bb.13:
	movq	%rbx, %rcx
	movq	8(%rbx), %r9
	movq	16(%rbx), %r10
	movq	-72(%rbp), %r11
	movq	-64(%rbp), %rax
	movq	24(%rbx), %rbx
	movq	32(%rcx), %rdx
	movl	$28, %ecx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	sarl	%cl, %edi
	andl	$15, %edi
	movl	%edi, (%r9,%rsi,4)
	movl	(%rax,%rsi,4), %edi
	movl	%edi, (%rbx,%rsi,4)
	movl	%edi, (%rdx,%rsi,4)
	movl	(%r11,%rsi,4), %edi
	movl	%edi, (%r10,%rsi,4)
	incq	%rsi
	movslq	(%r8), %rdi
	addl	$-4, %ecx
	cmpq	%rdi, %rsi
	jl	LBB0_14
LBB0_15:
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movl	%eax, %r14d
	movl	(%r12), %edi
	movl	%eax, %edx
	negl	%edx
	callq	_dev_err
LBB0_16:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CXGB4_DCB_FW_PGID,4,2          ## @CXGB4_DCB_FW_PGID
	.comm	_CXGB4_DCB_FW_PGRATE,4,2        ## @CXGB4_DCB_FW_PGRATE
	.comm	_FW_PORT_DCB_TYPE_PGID,4,2      ## @FW_PORT_DCB_TYPE_PGID
	.comm	_FW_PORT_DCB_CFG_SUCCESS,4,2    ## @FW_PORT_DCB_CFG_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DCB read PGID failed with %d\n"

	.comm	_FW_PORT_DCB_TYPE_PGRATE,4,2    ## @FW_PORT_DCB_TYPE_PGRATE
L_.str.1:                               ## @.str.1
	.asciz	"DCB read PGRATE failed with %d\n"

	.comm	_IEEE_8021QAZ_MAX_TCS,4,2       ## @IEEE_8021QAZ_MAX_TCS
	.no_dead_strip	_cxgb4_ieee_read_ets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxgb4_ieee_read_ets
_cxgb4_ieee_read_ets:                   ; @cxgb4_ieee_read_ets
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x22, x2
	mov	x19, x1
	bl	_netdev2pinfo
	ldr	w8, [x0, #16]
Lloh0:
	adrp	x9, _CXGB4_DCB_FW_PGID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CXGB4_DCB_FW_PGID@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _CXGB4_DCB_FW_PGRATE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CXGB4_DCB_FW_PGRATE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_13
; %bb.1:
	mov	x23, x0
	ldr	x20, [x0, #8]
	ldr	w8, [x0, #20]
	str	w8, [x19, #40]
	cbz	w22, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x19]
	ldr	w1, [x23]
	add	x0, sp, #32
	bl	_INIT_PORT_DCB_READ_LOCAL_CMD
	b	LBB0_4
LBB0_3:
	ldr	w1, [x23]
	add	x0, sp, #32
	bl	_INIT_PORT_DCB_READ_PEER_CMD
LBB0_4:
Lloh6:
	adrp	x8, _FW_PORT_DCB_TYPE_PGID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FW_PORT_DCB_TYPE_PGID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #60]
	ldr	w1, [x20, #4]
	add	x2, sp, #32
	add	x4, sp, #32
	mov	x0, x20
	mov	w3, #32
	bl	_t4_wr_mbox
Lloh9:
	adrp	x25, _FW_PORT_DCB_CFG_SUCCESS@GOTPAGE
Lloh10:
	ldr	x25, [x25, _FW_PORT_DCB_CFG_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.5:
	ldr	w0, [sp, #56]
	bl	_be32_to_cpu
	mov	x21, x0
	ldr	w1, [x23]
	cbz	w22, LBB0_8
; %bb.6:
	ldp	q0, q1, [sp, #32]
	stp	q0, q1, [sp]
	mov	x0, sp
	bl	_INIT_PORT_DCB_READ_LOCAL_CMD
	b	LBB0_9
LBB0_7:
	mov	x24, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_15
LBB0_8:
	ldp	q0, q1, [sp, #32]
	stp	q0, q1, [sp]
	mov	x0, sp
	bl	_INIT_PORT_DCB_READ_PEER_CMD
LBB0_9:
Lloh13:
	adrp	x8, _FW_PORT_DCB_TYPE_PGRATE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FW_PORT_DCB_TYPE_PGRATE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [sp, #48]
	ldr	w1, [x20, #4]
	add	x2, sp, #32
	add	x4, sp, #32
	mov	x0, x20
	mov	w3, #32
	bl	_t4_wr_mbox
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.10:
Lloh16:
	adrp	x8, _IEEE_8021QAZ_MAX_TCS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IEEE_8021QAZ_MAX_TCS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x9, #0
	ldp	x10, x11, [x19, #24]
	ldp	x13, x12, [sp, #32]
	mov	w14, #28
	ldp	x15, x16, [x19, #8]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	asr	w17, w21, w14
	and	w17, w17, #0xf
	lsl	x0, x9, #2
	str	w17, [x15, x0]
	ldr	w17, [x12, x0]
	str	w17, [x10, x0]
	str	w17, [x11, x0]
	ldr	w17, [x13, x0]
	str	w17, [x16, x0]
	add	x9, x9, #1
	ldrsw	x17, [x8]
	sub	w14, w14, #4
	cmp	x9, x17
	b.lt	LBB0_12
LBB0_13:
	mov	w24, #0
	b	LBB0_16
LBB0_14:
	mov	x24, x0
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_15:
	ldr	w0, [x20]
	neg	w2, w24
	bl	_dev_err
LBB0_16:
	mov	x0, x24
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_CXGB4_DCB_FW_PGID,4,2          ; @CXGB4_DCB_FW_PGID
	.comm	_CXGB4_DCB_FW_PGRATE,4,2        ; @CXGB4_DCB_FW_PGRATE
	.comm	_FW_PORT_DCB_TYPE_PGID,4,2      ; @FW_PORT_DCB_TYPE_PGID
	.comm	_FW_PORT_DCB_CFG_SUCCESS,4,2    ; @FW_PORT_DCB_CFG_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DCB read PGID failed with %d\n"

	.comm	_FW_PORT_DCB_TYPE_PGRATE,4,2    ; @FW_PORT_DCB_TYPE_PGRATE
l_.str.1:                               ; @.str.1
	.asciz	"DCB read PGRATE failed with %d\n"

	.comm	_IEEE_8021QAZ_MAX_TCS,4,2       ; @IEEE_8021QAZ_MAX_TCS
	.no_dead_strip	_cxgb4_ieee_read_ets
.subsections_via_symbols
