	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxgb4_getpgtccfg
_cxgb4_getpgtccfg:                      ## @cxgb4_getpgtccfg
	.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	%r9, %r12
	movq	%r8, %r15
	movq	%rcx, %r13
	movq	%rdx, %rbx
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	callq	_netdev2pinfo
	movq	8(%rax), %r14
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	$0, (%r12)
	movq	$0, (%r15)
	movq	$0, (%r13)
	movq	$0, (%rbx)
	movl	(%rax), %edi
	cmpl	$0, 16(%rbp)
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %r12
	je	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rax
	movq	%rax, 16(%rsp)
	movups	-64(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	callq	_INIT_PORT_DCB_READ_LOCAL_CMD
	jmp	LBB0_3
LBB0_2:
	movq	-48(%rbp), %rax
	movq	%rax, 16(%rsp)
	movups	-64(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	callq	_INIT_PORT_DCB_READ_PEER_CMD
LBB0_3:
	movq	%r14, %rbx
	movq	_FW_PORT_DCB_TYPE_PGID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%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), %r14
	cmpl	(%r14), %eax
	jne	LBB0_4
## %bb.6:
	movl	-48(%rbp), %edi
	callq	_be32_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leal	(,%rcx,4), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	andl	$15, %eax
	movq	%rax, (%r13)
	movl	(%r12), %edi
	cmpl	$0, 16(%rbp)
	je	LBB0_8
## %bb.7:
	movq	-48(%rbp), %rax
	movq	%rax, 16(%rsp)
	movups	-64(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	callq	_INIT_PORT_DCB_READ_LOCAL_CMD
	jmp	LBB0_9
LBB0_4:
	movl	(%rbx), %edi
	negl	%eax
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_8:
	movq	-48(%rbp), %rax
	movq	%rax, 16(%rsp)
	movups	-64(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	callq	_INIT_PORT_DCB_READ_PEER_CMD
LBB0_9:
	movq	_FW_PORT_DCB_TYPE_PGRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	4(%rbx), %esi
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$24, %ecx
	movq	%rdx, %r8
	callq	_t4_wr_mbox
	cmpl	(%r14), %eax
	jne	LBB0_10
## %bb.11:
	movq	-64(%rbp), %rax
	movq	(%r13), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, (%r15)
	movl	$1, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %eax
	cltq
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	cmpq	$15, (%r13)
	je	LBB0_13
## %bb.12:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	$2, (%rax)
	jmp	LBB0_13
LBB0_10:
	movl	(%rbx), %edi
	negl	%eax
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	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	_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"

	.no_dead_strip	_cxgb4_getpgtccfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxgb4_getpgtccfg
_cxgb4_getpgtccfg:                      ; @cxgb4_getpgtccfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x6
	mov	x20, x5
	mov	x22, x4
	mov	x21, x3
	mov	x19, x2
	mov	x23, x1
	bl	_netdev2pinfo
	mov	x26, x0
	ldr	x24, [x0, #8]
	str	xzr, [x20]
	str	xzr, [x22]
	str	xzr, [x21]
	str	xzr, [x19]
	ldr	w1, [x0]
	add	x0, sp, #24
	cbz	w25, 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_PGID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_PORT_DCB_TYPE_PGID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #44]
	ldr	w1, [x24, #4]
	add	x2, sp, #24
	add	x4, sp, #24
	mov	x0, x24
	mov	w3, #24
	bl	_t4_wr_mbox
Lloh3:
	adrp	x27, _FW_PORT_DCB_CFG_SUCCESS@GOTPAGE
Lloh4:
	ldr	x27, [x27, _FW_PORT_DCB_CFG_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [sp, #40]
	bl	_be32_to_cpu
	lsl	w8, w23, #2
	asr	w8, w0, w8
	and	w8, w8, #0xf
	str	x8, [x21]
	ldr	w1, [x26]
	cbz	w25, LBB0_7
; %bb.5:
	ldur	q0, [sp, #24]
	str	q0, [sp]
	ldr	x8, [sp, #40]
	str	x8, [sp, #16]
	mov	x0, sp
	bl	_INIT_PORT_DCB_READ_LOCAL_CMD
	b	LBB0_8
LBB0_6:
	ldr	w8, [x24]
	neg	w2, w0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_7:
	ldur	q0, [sp, #24]
	str	q0, [sp]
	ldr	x8, [sp, #40]
	str	x8, [sp, #16]
	mov	x0, sp
	bl	_INIT_PORT_DCB_READ_PEER_CMD
LBB0_8:
Lloh7:
	adrp	x8, _FW_PORT_DCB_TYPE_PGRATE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FW_PORT_DCB_TYPE_PGRATE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	ldr	w1, [x24, #4]
	add	x2, sp, #24
	add	x4, sp, #24
	mov	x0, x24
	mov	w3, #24
	bl	_t4_wr_mbox
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.9:
	ldr	x8, [sp, #24]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [x22]
	mov	w8, #1
	lsl	w8, w8, w23
	sxtw	x8, w8
	str	x8, [x20]
	ldr	x8, [x21]
	cmp	x8, #15
	b.eq	LBB0_13
; %bb.10:
	mov	w8, #2
	str	x8, [x19]
	b	LBB0_13
LBB0_11:
	ldr	w8, [x24]
	neg	w2, w0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_12:
	mov	x0, x8
	bl	_dev_err
LBB0_13:
	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
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.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"

	.no_dead_strip	_cxgb4_getpgtccfg
.subsections_via_symbols
