	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxgb4_ieee_getapp
_cxgb4_ieee_getapp:                     ## @cxgb4_ieee_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	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	16(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.3:
	movq	8(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.4:
	decq	%rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	___cxgb4_getapp
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_dcb_ieee_getapp_mask
LBB0_6:
	movl	%eax, %edi
	callq	_ffs
	decq	%rax
	movq	%rax, (%r14)
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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
	.no_dead_strip	_cxgb4_ieee_getapp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxgb4_ieee_getapp
_cxgb4_ieee_getapp:                     ; @cxgb4_ieee_getapp
	.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_6
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x2, [x19, #8]
	cbz	x2, LBB0_6
; %bb.3:
	sub	x1, x8, #1
	mov	x0, x20
	mov	w3, #0
	bl	___cxgb4_getapp
	tbz	w0, #31, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_dcb_ieee_getapp_mask
LBB0_5:
	bl	_ffs
	mov	x8, x0
	mov	w0, #0
	sub	x8, x8, #1
	str	x8, [x19]
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CXGB4_DCB_FW_APP_ID,4,2        ; @CXGB4_DCB_FW_APP_ID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cxgb4_ieee_getapp
.subsections_via_symbols
