	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxgb4_cee_peer_getpg
_cxgb4_cee_peer_getpg:                  ## @cxgb4_cee_peer_getpg
	.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	%rsi, %r14
	callq	_netdev2pinfo
	movq	%rax, %r15
	movq	8(%rax), %r12
	movl	$1, (%r14)
	movl	(%rax), %edi
	movups	-72(%rbp), %xmm0
	movups	-56(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_INIT_PORT_DCB_READ_PEER_CMD
	movq	_FW_PORT_DCB_TYPE_PGID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	4(%r12), %esi
	leaq	-72(%rbp), %rdx
	movq	%r12, %rdi
	movl	$32, %ecx
	movq	%rdx, %r8
	callq	_t4_wr_mbox
	movl	%eax, %ebx
	movq	_FW_PORT_DCB_CFG_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_9
## %bb.1:
	movl	-48(%rbp), %edi
	callq	_be32_to_cpu
	movq	_CXGB4_MAX_PRIORITY@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_4
## %bb.2:
	movq	8(%r14), %rdx
	addq	$28, %rdx
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edi
	sarl	%cl, %edi
	andl	$15, %edi
	movl	%edi, (%rdx)
	incq	%rsi
	movslq	(%r13), %rdi
	addq	$-4, %rdx
	addl	$4, %ecx
	cmpq	%rdi, %rsi
	jl	LBB0_3
LBB0_4:
	movl	(%r15), %edi
	movups	-72(%rbp), %xmm0
	movups	-56(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_INIT_PORT_DCB_READ_PEER_CMD
	movq	_FW_PORT_DCB_TYPE_PGRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	4(%r12), %esi
	leaq	-72(%rbp), %rdx
	movq	%r12, %rdi
	movl	$32, %ecx
	movq	%rdx, %r8
	callq	_t4_wr_mbox
	movl	%eax, %ebx
	movq	_FW_PORT_DCB_CFG_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_10
## %bb.5:
	cmpl	$0, (%r13)
	jle	LBB0_8
## %bb.6:
	movq	-64(%rbp), %rax
	movq	24(%r14), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx,4), %esi
	movl	%esi, (%rcx,%rdx,4)
	incq	%rdx
	movslq	(%r13), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_7
LBB0_8:
	movl	-72(%rbp), %eax
	movl	%eax, 16(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_9:
	movl	(%r12), %edi
	movl	%ebx, %edx
	negl	%edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_11
LBB0_10:
	movl	(%r12), %edi
	movl	%ebx, %edx
	negl	%edx
	leaq	L_.str.1(%rip), %rsi
LBB0_11:
	callq	_dev_err
LBB0_12:
	movl	%ebx, %eax
	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	_CXGB4_MAX_PRIORITY,4,2         ## @CXGB4_MAX_PRIORITY
	.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_cee_peer_getpg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxgb4_cee_peer_getpg
_cxgb4_cee_peer_getpg:                  ; @cxgb4_cee_peer_getpg
	.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	x19, x1
	bl	_netdev2pinfo
	mov	x21, x0
	ldr	x20, [x0, #8]
	mov	w8, #1
	str	w8, [x19]
	ldr	w1, [x0]
	add	x0, sp, #32
	bl	_INIT_PORT_DCB_READ_PEER_CMD
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, #60]
	ldr	w1, [x20, #4]
	add	x2, sp, #32
	add	x4, sp, #32
	mov	x0, x20
	mov	w3, #32
	bl	_t4_wr_mbox
Lloh3:
	adrp	x24, _FW_PORT_DCB_CFG_SUCCESS@GOTPAGE
Lloh4:
	ldr	x24, [x24, _FW_PORT_DCB_CFG_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.1:
	ldr	w0, [sp, #56]
	bl	_be32_to_cpu
Lloh5:
	adrp	x23, _CXGB4_MAX_PRIORITY@GOTPAGE
Lloh6:
	ldr	x23, [x23, _CXGB4_MAX_PRIORITY@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w8, #0
	mov	x9, #0
	ldr	x10, [x19, #8]
	add	x10, x10, #28
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	asr	w11, w0, w8
	and	w11, w11, #0xf
	str	w11, [x10], #-4
	add	x9, x9, #1
	ldrsw	x11, [x23]
	add	w8, w8, #4
	cmp	x9, x11
	b.lt	LBB0_3
LBB0_4:
	ldr	w1, [x21]
	ldp	q0, q1, [sp, #32]
	stp	q0, q1, [sp]
	mov	x0, sp
	bl	_INIT_PORT_DCB_READ_PEER_CMD
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, #48]
	ldr	w1, [x20, #4]
	add	x2, sp, #32
	add	x4, sp, #32
	mov	x0, x20
	mov	w3, #32
	bl	_t4_wr_mbox
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.5:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x8, #0
	ldr	x9, [sp, #40]
	ldr	x10, [x19, #24]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x11, x8, #2
	ldr	w12, [x9, x11]
	str	w12, [x10, x11]
	add	x8, x8, #1
	ldrsw	x11, [x23]
	cmp	x8, x11
	b.lt	LBB0_7
LBB0_8:
	mov	w22, #0
	ldr	w8, [sp, #32]
	str	w8, [x19, #16]
	b	LBB0_12
LBB0_9:
	mov	x22, x0
	ldr	w0, [x20]
	neg	w2, w22
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:
	mov	x22, x0
	ldr	w0, [x20]
	neg	w2, w22
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	bl	_dev_err
LBB0_12:
	mov	x0, x22
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.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	_CXGB4_MAX_PRIORITY,4,2         ; @CXGB4_MAX_PRIORITY
	.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_cee_peer_getpg
.subsections_via_symbols
