	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __cxgb4_setapp
___cxgb4_setapp:                        ## @__cxgb4_setapp
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_netdev2pinfo
	movq	%rax, %r12
	movq	(%rax), %rdi
	movq	16(%rax), %r13
	callq	_cxgb4_dcb_state_synced
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	callq	_netif_carrier_ok
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	_CXGB4_MAX_DCBX_APP_SUPPORTED@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	jle	LBB0_5
## %bb.7:
	xorl	%ebx, %ebx
	leaq	-88(%rbp), %r14
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %edi
	movups	-88(%rbp), %xmm0
	movups	-72(%rbp), %xmm1
	movups	-56(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_INIT_PORT_DCB_READ_LOCAL_CMD
	movq	_FW_PORT_DCB_TYPE_APP_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movl	%ebx, -88(%rbp)
	movl	4(%r13), %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	movl	$48, %ecx
	movq	%r14, %r8
	callq	_t4_wr_mbox
	movl	%eax, %r15d
	movq	_FW_PORT_DCB_CFG_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %rdi
	callq	_be16_to_cpu
	cmpq	-96(%rbp), %rax                 ## 8-byte Folded Reload
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, -64(%rbp)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	movq	_CXGB4_MAX_DCBX_APP_SUPPORTED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_8
	jmp	LBB0_14
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movq	_ENOLINK@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_20
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_9:
	movl	(%r13), %edi
	movl	%r15d, %edx
	negl	%edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_20
LBB0_11:
	movq	$0, -64(%rbp)
LBB0_14:
	movq	_CXGB4_MAX_DCBX_APP_SUPPORTED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_16
## %bb.15:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_20
LBB0_16:
	movl	8(%r12), %edi
	movups	-88(%rbp), %xmm0
	movups	-72(%rbp), %xmm1
	movups	-56(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_INIT_PORT_DCB_WRITE_CMD
	movq	(%r12), %rax
	movq	_CXGB4_DCB_STATE_HOST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.17:
	movq	_FW_PORT_CMD_APPLY_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	orl	%eax, -48(%rbp)
LBB0_18:
	movq	_FW_PORT_DCB_TYPE_APP_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_cpu_to_be16
	movq	%rax, -64(%rbp)
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -72(%rbp)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -80(%rbp)
	movl	%ebx, -88(%rbp)
	movl	4(%r13), %esi
	leaq	-88(%rbp), %rdx
	movq	%r13, %rdi
	movl	$48, %ecx
	movq	%rdx, %r8
	callq	_t4_wr_mbox
	movl	%eax, %ebx
	movq	_FW_PORT_DCB_CFG_SUCCESS@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	cmpl	(%rax), %ebx
	je	LBB0_20
## %bb.19:
	movl	(%r13), %edi
	movl	%ebx, %edx
	negl	%edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%ebx, %r15d
LBB0_20:
	movl	%r15d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOLINK,4,2                    ## @ENOLINK
	.comm	_CXGB4_MAX_DCBX_APP_SUPPORTED,4,2 ## @CXGB4_MAX_DCBX_APP_SUPPORTED
	.comm	_FW_PORT_DCB_TYPE_APP_ID,8,3    ## @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"

L_.str.1:                               ## @.str.1
	.asciz	"DCB app table full\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_CXGB4_DCB_STATE_HOST,8,3       ## @CXGB4_DCB_STATE_HOST
	.comm	_FW_PORT_CMD_APPLY_F,4,2        ## @FW_PORT_CMD_APPLY_F
L_.str.2:                               ## @.str.2
	.asciz	"DCB app table write failed with %d\n"

	.no_dead_strip	___cxgb4_setapp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __cxgb4_setapp
___cxgb4_setapp:                        ; @__cxgb4_setapp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x24, x0
	bl	_netdev2pinfo
	mov	x23, x0
	ldr	x19, [x0, #16]
	ldr	x0, [x0]
	bl	_cxgb4_dcb_state_synced
	cbz	w0, LBB0_8
; %bb.1:
	mov	x0, x24
	bl	_netif_carrier_ok
	cbz	w0, LBB0_9
; %bb.2:
Lloh0:
	adrp	x28, _CXGB4_MAX_DCBX_APP_SUPPORTED@GOTPAGE
Lloh1:
	ldr	x28, [x28, _CXGB4_MAX_DCBX_APP_SUPPORTED@GOTPAGEOFF]
	ldr	w8, [x28]
Lloh2:
	adrp	x26, _FW_PORT_DCB_TYPE_APP_ID@GOTPAGE
Lloh3:
	ldr	x26, [x26, _FW_PORT_DCB_TYPE_APP_ID@GOTPAGEOFF]
Lloh4:
	adrp	x25, _FW_PORT_DCB_CFG_SUCCESS@GOTPAGE
Lloh5:
	ldr	x25, [x25, _FW_PORT_DCB_CFG_SUCCESS@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.3:
	mov	w27, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23, #8]
	ldp	q0, q1, [sp, #64]
	stp	q0, q1, [sp, #16]
	ldr	q0, [sp, #96]
	str	q0, [sp, #48]
	add	x0, sp, #16
	bl	_INIT_PORT_DCB_READ_LOCAL_CMD
	ldr	x8, [x26]
	str	x8, [sp, #96]
	str	w27, [sp, #64]
	ldr	w1, [x19, #4]
	add	x2, sp, #64
	add	x4, sp, #64
	mov	x0, x19
	mov	w3, #48
	bl	_t4_wr_mbox
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #88]
	bl	_be16_to_cpu
	cmp	x0, x22
	b.eq	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #88]
	cbz	x8, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w27, w27, #1
	ldr	w8, [x28]
	cmp	w27, w8
	b.lt	LBB0_4
	b	LBB0_13
LBB0_8:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_9:
Lloh8:
	adrp	x8, _ENOLINK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOLINK@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
	mov	w27, #0
	b	LBB0_13
LBB0_11:
	mov	x24, x0
	ldr	w0, [x19]
	neg	w8, w24
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_22
LBB0_12:
	str	xzr, [sp, #88]
LBB0_13:
	ldr	w8, [x28]
	cmp	w27, w8
	b.ne	LBB0_17
; %bb.14:
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh14:
	adrp	x8, _EBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_16:
	mov	x0, x24
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_17:
	ldr	w1, [x23, #8]
	ldp	q0, q1, [sp, #64]
	stp	q0, q1, [sp, #16]
	ldr	q0, [sp, #96]
	str	q0, [sp, #48]
	add	x0, sp, #16
	bl	_INIT_PORT_DCB_WRITE_CMD
	ldr	x8, [x23]
Lloh16:
	adrp	x9, _CXGB4_DCB_STATE_HOST@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CXGB4_DCB_STATE_HOST@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.18:
Lloh19:
	adrp	x8, _FW_PORT_CMD_APPLY_F@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FW_PORT_CMD_APPLY_F@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_cpu_to_be32
	ldr	w8, [sp, #104]
	orr	w8, w8, w0
	str	w8, [sp, #104]
LBB0_19:
	ldr	x8, [x26]
	str	x8, [sp, #96]
	mov	x0, x22
	bl	_cpu_to_be16
	stp	x21, x0, [sp, #80]
	str	x20, [sp, #72]
	str	w27, [sp, #64]
	ldr	w1, [x19, #4]
	add	x2, sp, #64
	add	x4, sp, #64
	mov	x0, x19
	mov	w3, #48
	bl	_t4_wr_mbox
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_21
; %bb.20:
	mov	w24, #0
	b	LBB0_16
LBB0_21:
	mov	x24, x0
	ldr	w0, [x19]
	neg	w8, w24
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_22:
	bl	_dev_err
	b	LBB0_16
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOLINK,4,2                    ; @ENOLINK
	.comm	_CXGB4_MAX_DCBX_APP_SUPPORTED,4,2 ; @CXGB4_MAX_DCBX_APP_SUPPORTED
	.comm	_FW_PORT_DCB_TYPE_APP_ID,8,3    ; @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"

l_.str.1:                               ; @.str.1
	.asciz	"DCB app table full\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_CXGB4_DCB_STATE_HOST,8,3       ; @CXGB4_DCB_STATE_HOST
	.comm	_FW_PORT_CMD_APPLY_F,4,2        ; @FW_PORT_CMD_APPLY_F
l_.str.2:                               ; @.str.2
	.asciz	"DCB app table write failed with %d\n"

	.no_dead_strip	___cxgb4_setapp
.subsections_via_symbols
