	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxgb4_getpeerapp_tbl
_cxgb4_getpeerapp_tbl:                  ## @cxgb4_getpeerapp_tbl
	.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, %rbx
	callq	_netdev2pinfo
	movq	%rax, %r15
	movq	8(%rax), %r14
	movl	4(%rax), %edi
	callq	_cxgb4_dcb_state_synced
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_CXGB4_MAX_DCBX_APP_SUPPORTED@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.4:
	addq	$16, %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	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_APP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	%r12d, -72(%rbp)
	movl	4(%r14), %esi
	movq	%r14, %rdi
	leaq	-72(%rbp), %rdx
	movl	$32, %ecx
	movq	%rdx, %r8
	callq	_t4_wr_mbox
	movl	%eax, %r13d
	movq	_FW_PORT_DCB_CFG_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-64(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax
	incq	%rax
	movq	%rax, (%rbx)
	callq	_be16_to_cpu
	movl	%eax, -8(%rbx)
	movl	-68(%rbp), %edi
	callq	_ffs
	decq	%rax
	movq	%rax, -16(%rbx)
	incq	%r12
	movq	_CXGB4_MAX_DCBX_APP_SUPPORTED@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$24, %rbx
	cmpq	%rax, %r12
	jl	LBB0_5
	jmp	LBB0_9
LBB0_1:
	movl	$1, %r13d
	jmp	LBB0_9
LBB0_3:
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_6:
	movl	(%r14), %edi
	movl	%r13d, %edx
	negl	%edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_9:
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CXGB4_MAX_DCBX_APP_SUPPORTED,4,2 ## @CXGB4_MAX_DCBX_APP_SUPPORTED
	.comm	_FW_PORT_DCB_TYPE_APP_ID,4,2    ## @FW_PORT_DCB_TYPE_APP_ID
	.comm	_FW_PORT_DCB_CFG_SUCCESS,4,2    ## @FW_PORT_DCB_CFG_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DCB app table read failed with %d\n"

	.no_dead_strip	_cxgb4_getpeerapp_tbl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxgb4_getpeerapp_tbl
_cxgb4_getpeerapp_tbl:                  ; @cxgb4_getpeerapp_tbl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	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
	mov	x21, x1
	bl	_netdev2pinfo
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldr	w0, [x0, #4]
	bl	_cxgb4_dcb_state_synced
	cbz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x22, _CXGB4_MAX_DCBX_APP_SUPPORTED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CXGB4_MAX_DCBX_APP_SUPPORTED@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x23, #0
	add	x24, x21, #16
Lloh2:
	adrp	x25, _FW_PORT_DCB_TYPE_APP_ID@GOTPAGE
Lloh3:
	ldr	x25, [x25, _FW_PORT_DCB_TYPE_APP_ID@GOTPAGEOFF]
Lloh4:
	adrp	x26, _FW_PORT_DCB_CFG_SUCCESS@GOTPAGE
Lloh5:
	ldr	x26, [x26, _FW_PORT_DCB_CFG_SUCCESS@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	ldp	q0, q1, [sp, #32]
	stp	q0, q1, [sp]
	mov	x0, sp
	bl	_INIT_PORT_DCB_READ_PEER_CMD
	ldr	w8, [x25]
	str	w8, [sp, #56]
	str	w23, [sp, #32]
	ldr	w1, [x19, #4]
	add	x2, sp, #32
	add	x4, sp, #32
	mov	x0, x19
	mov	w3, #32
	bl	_t4_wr_mbox
	mov	x21, x0
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #40]
	cbz	w0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #48]
	add	x8, x8, #1
	str	x8, [x24]
	bl	_be16_to_cpu
	stur	w0, [x24, #-8]
	ldr	w0, [sp, #36]
	bl	_ffs
	sub	x8, x0, #1
	stur	x8, [x24, #-16]
	add	x23, x23, #1
	ldrsw	x8, [x22]
	add	x24, x24, #24
	cmp	x23, x8
	b.lt	LBB0_3
	b	LBB0_9
LBB0_6:
	mov	w21, #1
	b	LBB0_9
LBB0_7:
	mov	w21, #0
	b	LBB0_9
LBB0_8:
	ldr	w0, [x19]
	neg	w2, w21
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_9:
	mov	x0, x21
	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
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CXGB4_MAX_DCBX_APP_SUPPORTED,4,2 ; @CXGB4_MAX_DCBX_APP_SUPPORTED
	.comm	_FW_PORT_DCB_TYPE_APP_ID,4,2    ; @FW_PORT_DCB_TYPE_APP_ID
	.comm	_FW_PORT_DCB_CFG_SUCCESS,4,2    ; @FW_PORT_DCB_CFG_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DCB app table read failed with %d\n"

	.no_dead_strip	_cxgb4_getpeerapp_tbl
.subsections_via_symbols
