	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __cxgb4_getapp
___cxgb4_getapp:                        ## @__cxgb4_getapp
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	callq	_netdev2pinfo
	movq	%rax, %r13
	movq	8(%rax), %rbx
	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_14
## %bb.3:
	xorl	%r12d, %r12d
	leaq	-80(%rbp), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movups	-80(%rbp), %xmm0
	movups	-64(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_INIT_PORT_DCB_READ_PEER_CMD
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movups	-80(%rbp), %xmm0
	movups	-64(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_INIT_PORT_DCB_READ_LOCAL_CMD
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_FW_PORT_DCB_TYPE_APP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	%r12d, -80(%rbp)
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movl	$32, %ecx
	movq	%r15, %r8
	callq	_t4_wr_mbox
	movl	%eax, %r14d
	movq	_FW_PORT_DCB_CFG_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-60(%rbp), %edi
	callq	_be16_to_cpu
	cmpq	-96(%rbp), %rax                 ## 8-byte Folded Reload
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -72(%rbp)
	je	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -60(%rbp)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	incl	%r12d
	movq	_CXGB4_MAX_DCBX_APP_SUPPORTED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jl	LBB0_4
LBB0_14:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_15
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_8:
	movl	(%rbx), %edi
	movl	%r14d, %edx
	negl	%edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_15
LBB0_11:
	movl	-64(%rbp), %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$88, %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 read failed with %d\n"

	.comm	_EEXIST,4,2                     ## @EEXIST
	.no_dead_strip	___cxgb4_getapp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __cxgb4_getapp
___cxgb4_getapp:                        ; @__cxgb4_getapp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	bl	_netdev2pinfo
	mov	x23, x0
	ldr	x22, [x0, #8]
	ldr	w0, [x0, #4]
	bl	_cxgb4_dcb_state_synced
	cbz	w0, LBB0_11
; %bb.1:
Lloh0:
	adrp	x25, _CXGB4_MAX_DCBX_APP_SUPPORTED@GOTPAGE
Lloh1:
	ldr	x25, [x25, _CXGB4_MAX_DCBX_APP_SUPPORTED@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.2:
	mov	w26, #0
Lloh2:
	adrp	x27, _FW_PORT_DCB_TYPE_APP_ID@GOTPAGE
Lloh3:
	ldr	x27, [x27, _FW_PORT_DCB_TYPE_APP_ID@GOTPAGEOFF]
Lloh4:
	adrp	x28, _FW_PORT_DCB_CFG_SUCCESS@GOTPAGE
Lloh5:
	ldr	x28, [x28, _FW_PORT_DCB_CFG_SUCCESS@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, sp
	cbz	w19, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_INIT_PORT_DCB_READ_PEER_CMD
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_INIT_PORT_DCB_READ_LOCAL_CMD
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x27]
	str	w8, [sp, #56]
	str	w26, [sp, #32]
	ldr	w1, [x22, #4]
	add	x2, sp, #32
	add	x4, sp, #32
	mov	x0, x22
	mov	w3, #32
	bl	_t4_wr_mbox
	ldr	w8, [x28]
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #52]
	bl	_be16_to_cpu
	ldr	x8, [sp, #40]
	cmp	x0, x20
	ccmp	x8, x21, #0, eq
	b.eq	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #52]
	cbz	w8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w26, w26, #1
	ldr	w8, [x25]
	cmp	w26, w8
	b.lt	LBB0_3
LBB0_10:
Lloh6:
	adrp	x8, _EEXIST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_14
LBB0_11:
	mov	w24, #0
	b	LBB0_14
LBB0_12:
	mov	x24, x0
	ldr	w0, [x22]
	neg	w2, w24
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_14
LBB0_13:
	ldr	w24, [sp, #48]
LBB0_14:
	mov	x0, x24
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.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 read failed with %d\n"

	.comm	_EEXIST,4,2                     ; @EEXIST
	.no_dead_strip	___cxgb4_getapp
.subsections_via_symbols
