	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxgb4_getpgbwgcfg
_cxgb4_getpgbwgcfg:                     ## @cxgb4_getpgbwgcfg
	.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
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movl	%esi, %r15d
	callq	_netdev2pinfo
	movq	8(%rax), %rbx
	movl	(%rax), %edx
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.1:
	callq	_INIT_PORT_DCB_READ_LOCAL_CMD
	jmp	LBB0_3
LBB0_2:
	callq	_INIT_PORT_DCB_READ_PEER_CMD
LBB0_3:
	movq	_FW_PORT_DCB_TYPE_PGRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	4(%rbx), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$16, %ecx
	movq	%rdx, %r8
	callq	_t4_wr_mbox
	movq	_FW_PORT_DCB_CFG_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.5:
	movq	-48(%rbp), %rax
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, (%r14)
	jmp	LBB0_6
LBB0_4:
	movl	(%rbx), %edi
	negl	%eax
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	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"

	.no_dead_strip	_cxgb4_getpgbwgcfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxgb4_getpgbwgcfg
_cxgb4_getpgbwgcfg:                     ; @cxgb4_getpgbwgcfg
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	bl	_netdev2pinfo
	ldr	x21, [x0, #8]
	ldr	w2, [x0]
	cbz	w22, LBB0_2
; %bb.1:
	bl	_INIT_PORT_DCB_READ_LOCAL_CMD
	b	LBB0_3
LBB0_2:
	bl	_INIT_PORT_DCB_READ_PEER_CMD
LBB0_3:
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, #8]
	ldr	w1, [x21, #4]
	mov	x2, sp
	mov	x4, sp
	mov	x0, x21
	mov	w3, #16
	bl	_t4_wr_mbox
Lloh3:
	adrp	x8, _FW_PORT_DCB_CFG_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_PORT_DCB_CFG_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [sp]
	ldr	w8, [x8, w20, sxtw #2]
	str	w8, [x19]
	b	LBB0_6
LBB0_5:
	ldr	w8, [x21]
	neg	w2, w0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.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"

	.no_dead_strip	_cxgb4_getpgbwgcfg
.subsections_via_symbols
