	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxgb4_ieee_setapp
_cxgb4_ieee_setapp:                     ## @cxgb4_ieee_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_CXGB4_DCB_FW_APP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cxgb4_ieee_negotiation_complete
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.3:
	movq	16(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.4:
	movq	_IEEE_8021QAZ_APP_SEL_ETHERTYPE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jle	LBB0_1
## %bb.5:
	movq	_IEEE_8021QAZ_APP_SEL_ANY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jge	LBB0_1
## %bb.6:
	decq	%rsi
	movb	8(%r14), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	___cxgb4_setapp
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dcb_ieee_setapp                ## TAILCALL
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CXGB4_DCB_FW_APP_ID,4,2        ## @CXGB4_DCB_FW_APP_ID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IEEE_8021QAZ_APP_SEL_ETHERTYPE,8,3 ## @IEEE_8021QAZ_APP_SEL_ETHERTYPE
	.comm	_IEEE_8021QAZ_APP_SEL_ANY,8,3   ## @IEEE_8021QAZ_APP_SEL_ANY
	.no_dead_strip	_cxgb4_ieee_setapp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxgb4_ieee_setapp
_cxgb4_ieee_setapp:                     ; @cxgb4_ieee_setapp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CXGB4_DCB_FW_APP_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CXGB4_DCB_FW_APP_ID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_cxgb4_ieee_negotiation_complete
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x2, [x19, #16]
	cbz	x2, LBB0_4
; %bb.3:
Lloh3:
	adrp	x9, _IEEE_8021QAZ_APP_SEL_ETHERTYPE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE_8021QAZ_APP_SEL_ETHERTYPE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _IEEE_8021QAZ_APP_SEL_ANY@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IEEE_8021QAZ_APP_SEL_ANY@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #0, gt
	b.lt	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	sub	x1, x8, #1
	ldr	w8, [x19, #8]
	mov	w9, #1
	lsl	w3, w9, w8
	mov	x0, x20
	bl	___cxgb4_setapp
	cbnz	w0, LBB0_5
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dcb_ieee_setapp
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CXGB4_DCB_FW_APP_ID,4,2        ; @CXGB4_DCB_FW_APP_ID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IEEE_8021QAZ_APP_SEL_ETHERTYPE,8,3 ; @IEEE_8021QAZ_APP_SEL_ETHERTYPE
	.comm	_IEEE_8021QAZ_APP_SEL_ANY,8,3   ; @IEEE_8021QAZ_APP_SEL_ANY
	.no_dead_strip	_cxgb4_ieee_setapp
.subsections_via_symbols
