	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxgb4_setpgtccfg_tx
_cxgb4_setpgtccfg_tx:                   ## @cxgb4_setpgtccfg_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r12
	movl	%esi, %ebx
	callq	_netdev2pinfo
	movq	%rax, %r13
	movq	_DCB_ATTR_VALUE_UNDEFINED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r12, %rax
	je	LBB0_13
## %bb.1:
	cmpq	%r15, %rax
	je	LBB0_13
## %bb.2:
	movq	16(%r13), %r14
	movl	8(%r13), %edi
	movups	-72(%rbp), %xmm0
	movups	-56(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_INIT_PORT_DCB_READ_LOCAL_CMD
	movq	_FW_PORT_DCB_TYPE_PGID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	4(%r14), %esi
	leaq	-72(%rbp), %rdx
	movq	%r14, %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_3
## %bb.4:
	movl	-48(%rbp), %edi
	callq	_be32_to_cpu
	shll	$2, %ebx
	movb	$28, %cl
	subb	%bl, %cl
	movl	$15, %edx
	shll	%cl, %edx
	notl	%edx
	andl	%eax, %edx
	movq	%r12, %rdi
	shlq	%cl, %rdi
	orl	%edx, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_be32
	movl	%eax, -48(%rbp)
	movl	8(%r13), %edi
	movups	-72(%rbp), %xmm0
	movups	-56(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_INIT_PORT_DCB_WRITE_CMD
	movl	4(%r14), %esi
	leaq	-72(%rbp), %rdx
	movq	%r14, %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.6:
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	8(%r13), %edi
	movups	-72(%rbp), %xmm0
	movups	-56(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_INIT_PORT_DCB_READ_LOCAL_CMD
	movq	_FW_PORT_DCB_TYPE_PGRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	4(%r14), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	$32, %ecx
	movq	%rbx, %r8
	callq	_t4_wr_mbox
	movq	_FW_PORT_DCB_CFG_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.8:
	movq	-64(%rbp), %rax
	movq	%r15, (%rax,%r12,8)
	movl	8(%r13), %edi
	movups	-72(%rbp), %xmm0
	movups	-56(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_INIT_PORT_DCB_WRITE_CMD
	movq	(%r13), %rax
	movq	_CXGB4_DCB_STATE_HOST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	_FW_PORT_CMD_APPLY_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	orl	%eax, -72(%rbp)
LBB0_10:
	movl	4(%r14), %esi
	leaq	-72(%rbp), %rdx
	movq	%r14, %rdi
	movl	$32, %ecx
	movq	%rdx, %r8
	callq	_t4_wr_mbox
	movq	_FW_PORT_DCB_CFG_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_13
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_12
LBB0_3:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_12
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_12
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
LBB0_12:
	movl	(%r14), %edi
	negl	%eax
	movl	%eax, %edx
	callq	_dev_err
LBB0_13:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCB_ATTR_VALUE_UNDEFINED,8,3   ## @DCB_ATTR_VALUE_UNDEFINED
	.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"

L_.str.1:                               ## @.str.1
	.asciz	"DCB write PGID failed with %d\n"

	.comm	_FW_PORT_DCB_TYPE_PGRATE,4,2    ## @FW_PORT_DCB_TYPE_PGRATE
L_.str.2:                               ## @.str.2
	.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.3:                               ## @.str.3
	.asciz	"DCB write PGRATE failed with %d\n"

	.no_dead_strip	_cxgb4_setpgtccfg_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxgb4_setpgtccfg_tx
_cxgb4_setpgtccfg_tx:                   ; @cxgb4_setpgtccfg_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x21, x4
	mov	x22, x3
	mov	x23, x1
	bl	_netdev2pinfo
Lloh0:
	adrp	x8, _DCB_ATTR_VALUE_UNDEFINED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCB_ATTR_VALUE_UNDEFINED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x22
	ccmp	x8, x21, #4, ne
	b.eq	LBB0_12
; %bb.1:
	mov	x20, x0
	ldr	x19, [x0, #16]
	ldr	w1, [x0, #8]
	add	x0, sp, #32
	bl	_INIT_PORT_DCB_READ_LOCAL_CMD
Lloh3:
	adrp	x8, _FW_PORT_DCB_TYPE_PGID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_PORT_DCB_TYPE_PGID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #60]
	ldr	w1, [x19, #4]
	add	x2, sp, #32
	add	x4, sp, #32
	mov	x0, x19
	mov	w3, #32
	bl	_t4_wr_mbox
Lloh6:
	adrp	x24, _FW_PORT_DCB_CFG_SUCCESS@GOTPAGE
Lloh7:
	ldr	x24, [x24, _FW_PORT_DCB_CFG_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.2:
	ldr	w0, [sp, #56]
	bl	_be32_to_cpu
	mov	w8, #28
	sub	w8, w8, w23, lsl #2
	mov	w9, #15
	lsl	w9, w9, w8
	bic	w9, w0, w9
	lsl	x8, x22, x8
	orr	w0, w9, w8
	bl	_cpu_to_be32
	str	w0, [sp, #56]
	ldr	w1, [x20, #8]
	ldp	q0, q1, [sp, #32]
	stp	q0, q1, [sp]
	mov	x0, sp
	bl	_INIT_PORT_DCB_WRITE_CMD
	ldr	w1, [x19, #4]
	add	x2, sp, #32
	add	x4, sp, #32
	mov	x0, x19
	mov	w3, #32
	bl	_t4_wr_mbox
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.3:
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	w1, [x20, #8]
	ldp	q0, q1, [sp, #32]
	stp	q0, q1, [sp]
	mov	x0, sp
	bl	_INIT_PORT_DCB_READ_LOCAL_CMD
Lloh8:
	adrp	x8, _FW_PORT_DCB_TYPE_PGRATE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FW_PORT_DCB_TYPE_PGRATE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #48]
	ldr	w1, [x19, #4]
	add	x2, sp, #32
	add	x4, sp, #32
	mov	x0, x19
	mov	w3, #32
	bl	_t4_wr_mbox
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.4:
	ldr	x8, [sp, #40]
	str	x21, [x8, x22, lsl #3]
	ldr	w1, [x20, #8]
	ldp	q0, q1, [sp, #32]
	stp	q0, q1, [sp]
	mov	x0, sp
	bl	_INIT_PORT_DCB_WRITE_CMD
	ldr	x8, [x20]
Lloh11:
	adrp	x9, _CXGB4_DCB_STATE_HOST@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CXGB4_DCB_STATE_HOST@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _FW_PORT_CMD_APPLY_F@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FW_PORT_CMD_APPLY_F@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_cpu_to_be32
	ldr	w8, [sp, #32]
	orr	w8, w8, w0
	str	w8, [sp, #32]
LBB0_6:
	ldr	w1, [x19, #4]
	add	x2, sp, #32
	add	x4, sp, #32
	mov	x0, x19
	mov	w3, #32
	bl	_t4_wr_mbox
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_12
; %bb.7:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_8:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	ldr	w8, [x19]
	neg	w2, w0
	mov	x0, x8
	bl	_dev_err
LBB0_12:
	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
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_DCB_ATTR_VALUE_UNDEFINED,8,3   ; @DCB_ATTR_VALUE_UNDEFINED
	.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"

l_.str.1:                               ; @.str.1
	.asciz	"DCB write PGID failed with %d\n"

	.comm	_FW_PORT_DCB_TYPE_PGRATE,4,2    ; @FW_PORT_DCB_TYPE_PGRATE
l_.str.2:                               ; @.str.2
	.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.3:                               ; @.str.3
	.asciz	"DCB write PGRATE failed with %d\n"

	.no_dead_strip	_cxgb4_setpgtccfg_tx
.subsections_via_symbols
