	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxgb4_setpgbwgcfg_tx
_cxgb4_setpgbwgcfg_tx:                  ## @cxgb4_setpgbwgcfg_tx
	.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	%edx, %r15d
	movl	%esi, %r12d
	callq	_netdev2pinfo
	movq	%rax, %rbx
	movq	16(%rax), %r14
	movl	8(%rax), %edi
	movq	-48(%rbp), %rax
	movq	%rax, 16(%rsp)
	movups	-64(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	callq	_INIT_PORT_DCB_READ_LOCAL_CMD
	movq	_FW_PORT_DCB_TYPE_PGRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	4(%r14), %esi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movl	$24, %ecx
	movq	%rdx, %r8
	callq	_t4_wr_mbox
	movq	_FW_PORT_DCB_CFG_SUCCESS@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jne	LBB0_1
## %bb.2:
	movq	-56(%rbp), %rax
	movslq	%r12d, %rcx
	movl	%r15d, (%rax,%rcx,4)
	movl	8(%rbx), %edi
	movq	-48(%rbp), %rax
	movq	%rax, 16(%rsp)
	movups	-64(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	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
	orl	%eax, -64(%rbp)
LBB0_4:
	movl	4(%r14), %esi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movl	$24, %ecx
	movq	%rdx, %r8
	callq	_t4_wr_mbox
	cmpl	(%r13), %eax
	je	LBB0_7
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
LBB0_6:
	movl	(%r14), %edi
	negl	%eax
	movl	%eax, %edx
	callq	_dev_err
LBB0_7:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_PORT_DCB_TYPE_PGRATE,4,2    ## @FW_PORT_DCB_TYPE_PGRATE
	.comm	_FW_PORT_DCB_CFG_SUCCESS,4,2    ## @FW_PORT_DCB_CFG_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DCB read PGRATE failed with %d\n"

	.comm	_CXGB4_DCB_STATE_HOST,8,3       ## @CXGB4_DCB_STATE_HOST
	.comm	_FW_PORT_CMD_APPLY_F,4,2        ## @FW_PORT_CMD_APPLY_F
L_.str.1:                               ## @.str.1
	.asciz	"DCB write PGRATE failed with %d\n"

	.no_dead_strip	_cxgb4_setpgbwgcfg_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxgb4_setpgbwgcfg_tx
_cxgb4_setpgbwgcfg_tx:                  ; @cxgb4_setpgbwgcfg_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x2
	mov	x22, x1
	bl	_netdev2pinfo
	mov	x20, x0
	ldr	x19, [x0, #16]
	ldr	w1, [x0, #8]
	add	x0, sp, #24
	bl	_INIT_PORT_DCB_READ_LOCAL_CMD
Lloh0:
	adrp	x8, _FW_PORT_DCB_TYPE_PGRATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_PORT_DCB_TYPE_PGRATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	ldr	w1, [x19, #4]
	add	x2, sp, #24
	add	x4, sp, #24
	mov	x0, x19
	mov	w3, #24
	bl	_t4_wr_mbox
Lloh3:
	adrp	x23, _FW_PORT_DCB_CFG_SUCCESS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _FW_PORT_DCB_CFG_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [sp, #32]
	str	w21, [x8, w22, sxtw #2]
	ldr	w1, [x20, #8]
	ldur	q0, [sp, #24]
	str	q0, [sp]
	ldr	x8, [sp, #40]
	str	x8, [sp, #16]
	mov	x0, sp
	bl	_INIT_PORT_DCB_WRITE_CMD
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _CXGB4_DCB_STATE_HOST@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CXGB4_DCB_STATE_HOST@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _FW_PORT_CMD_APPLY_F@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FW_PORT_CMD_APPLY_F@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_cpu_to_be32
	ldr	w8, [sp, #24]
	orr	w8, w8, w0
	str	w8, [sp, #24]
LBB0_3:
	ldr	w1, [x19, #4]
	add	x2, sp, #24
	add	x4, sp, #24
	mov	x0, x19
	mov	w3, #24
	bl	_t4_wr_mbox
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.4:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	ldr	w8, [x19]
	neg	w2, w0
	mov	x0, x8
	bl	_dev_err
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_PORT_DCB_TYPE_PGRATE,4,2    ; @FW_PORT_DCB_TYPE_PGRATE
	.comm	_FW_PORT_DCB_CFG_SUCCESS,4,2    ; @FW_PORT_DCB_CFG_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DCB read PGRATE failed with %d\n"

	.comm	_CXGB4_DCB_STATE_HOST,8,3       ; @CXGB4_DCB_STATE_HOST
	.comm	_FW_PORT_CMD_APPLY_F,4,2        ; @FW_PORT_CMD_APPLY_F
l_.str.1:                               ; @.str.1
	.asciz	"DCB write PGRATE failed with %d\n"

	.no_dead_strip	_cxgb4_setpgbwgcfg_tx
.subsections_via_symbols
