	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxgb4_setpfccfg
_cxgb4_setpfccfg:                       ## @cxgb4_setpfccfg
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r12d
	callq	_netdev2pinfo
	movq	%rax, %rbx
	movq	(%rax), %rdi
	movq	24(%rax), %r14
	callq	_cxgb4_dcb_state_synced
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	_CXGB4_MAX_PRIORITY@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jle	LBB0_7
## %bb.2:
	movl	16(%rbx), %edx
	callq	_INIT_PORT_DCB_WRITE_CMD
	movq	(%rbx), %rax
	movq	_CXGB4_DCB_STATE_HOST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_FW_PORT_CMD_APPLY_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movl	$-1, -40(%rbp)
LBB0_4:
	movq	_FW_PORT_DCB_TYPE_PFC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	8(%rbx), %eax
	movb	$7, %cl
	subb	%r12b, %cl
	movl	%eax, %edx
	btsl	%ecx, %edx
	btrl	%ecx, %eax
	testq	%r15, %r15
	cmovnel	%edx, %eax
	movl	%eax, -48(%rbp)
	movl	4(%r14), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$12, %ecx
	movq	%rdx, %r8
	callq	_t4_wr_mbox
	movq	_FW_PORT_DCB_CFG_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.6:
	movl	-48(%rbp), %eax
	movl	%eax, 8(%rbx)
	jmp	LBB0_7
LBB0_5:
	movl	(%r14), %edi
	negl	%eax
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CXGB4_MAX_PRIORITY,4,2         ## @CXGB4_MAX_PRIORITY
	.comm	_CXGB4_DCB_STATE_HOST,8,3       ## @CXGB4_DCB_STATE_HOST
	.comm	_FW_PORT_CMD_APPLY_F,4,2        ## @FW_PORT_CMD_APPLY_F
	.comm	_FW_PORT_DCB_TYPE_PFC,4,2       ## @FW_PORT_DCB_TYPE_PFC
	.comm	_FW_PORT_DCB_CFG_SUCCESS,4,2    ## @FW_PORT_DCB_CFG_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DCB PFC write failed with %d\n"

	.no_dead_strip	_cxgb4_setpfccfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxgb4_setpfccfg
_cxgb4_setpfccfg:                       ; @cxgb4_setpfccfg
	.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
	mov	x21, x2
	mov	x22, x1
	bl	_netdev2pinfo
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldr	x0, [x0]
	bl	_cxgb4_dcb_state_synced
Lloh0:
	adrp	x8, _CXGB4_MAX_PRIORITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CXGB4_MAX_PRIORITY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #0
	ccmp	w8, w22, #4, ne
	b.le	LBB0_6
; %bb.1:
	ldr	w2, [x19, #16]
	mov	x1, #0
	bl	_INIT_PORT_DCB_WRITE_CMD
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _CXGB4_DCB_STATE_HOST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CXGB4_DCB_STATE_HOST@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _FW_PORT_CMD_APPLY_F@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FW_PORT_CMD_APPLY_F@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_be32
	mov	w8, #-1
	str	w8, [sp, #8]
LBB0_3:
Lloh9:
	adrp	x8, _FW_PORT_DCB_TYPE_PFC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FW_PORT_DCB_TYPE_PFC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	mov	w10, #7
	sub	w10, w10, w22
	mov	w11, #1
	lsl	w10, w11, w10
	orr	w11, w9, w10
	bic	w9, w9, w10
	cmp	x21, #0
	csel	w9, w9, w11, eq
	stp	w9, w8, [sp]
	ldr	w1, [x20, #4]
	mov	x2, sp
	mov	x4, sp
	mov	x0, x20
	mov	w3, #12
	bl	_t4_wr_mbox
Lloh12:
	adrp	x8, _FW_PORT_DCB_CFG_SUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FW_PORT_DCB_CFG_SUCCESS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [sp]
	str	w8, [x19, #8]
	b	LBB0_6
LBB0_5:
	ldr	w8, [x20]
	neg	w2, w0
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_dev_err
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CXGB4_MAX_PRIORITY,4,2         ; @CXGB4_MAX_PRIORITY
	.comm	_CXGB4_DCB_STATE_HOST,8,3       ; @CXGB4_DCB_STATE_HOST
	.comm	_FW_PORT_CMD_APPLY_F,4,2        ; @FW_PORT_CMD_APPLY_F
	.comm	_FW_PORT_DCB_TYPE_PFC,4,2       ; @FW_PORT_DCB_TYPE_PFC
	.comm	_FW_PORT_DCB_CFG_SUCCESS,4,2    ; @FW_PORT_DCB_CFG_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DCB PFC write failed with %d\n"

	.no_dead_strip	_cxgb4_setpfccfg
.subsections_via_symbols
