	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_shared_fcoe_funcs
_bnx2x_shared_fcoe_funcs:               ## @bnx2x_shared_fcoe_funcs
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_IS_MF
	movq	%r14, %rdi
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	callq	_BP_PATH
	movq	_E2_FUNC_MAX@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	addl	%ecx, %ecx
	xorl	%r12d, %r12d
	cmpl	%ecx, %eax
	jge	LBB0_11
## %bb.2:
	movslq	%eax, %rbx
	xorl	%r12d, %r12d
	movq	_FUNC_MF_CFG_FUNC_HIDE@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$2, %rbx
	movslq	(%r15), %rax
	addq	%rax, %rax
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_IS_MF_SD
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_func_mf_config@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_MF_CFG_RD
	testl	%eax, (%r13)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_FUNC_MF_CFG_PROTOCOL_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	xorl	%ecx, %ecx
	movq	_FUNC_MF_CFG_PROTOCOL_FCOE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	sete	%cl
	addl	%ecx, %r12d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_func_ext_config@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_MF_CFG_RD
	movq	_MACP_FUNC_CFG_FLAGS_ENABLED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_MACP_FUNC_CFG_FLAGS_FCOE_OFFLOAD@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	$1, %eax
	sbbl	$-1, %r12d
	jmp	LBB0_8
LBB0_9:
	callq	_CHIP_MODE_IS_4_PORT
	cmpq	$1, %rax
	movl	$2, %r15d
	sbbq	$0, %r15
	xorl	%ebx, %ebx
	movq	_FW_ENCODE_32BIT_PATTERN@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	_drv_lic_key@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_SHMEM_RD
	xorl	%ecx, %ecx
	cmpl	(%r13), %eax
	setne	%cl
	addl	%ecx, %r12d
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_10
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E2_FUNC_MAX,4,2                ## @E2_FUNC_MAX
	.comm	_func_mf_config,8,3             ## @func_mf_config
	.comm	_FUNC_MF_CFG_FUNC_HIDE,4,2      ## @FUNC_MF_CFG_FUNC_HIDE
	.comm	_FUNC_MF_CFG_PROTOCOL_MASK,4,2  ## @FUNC_MF_CFG_PROTOCOL_MASK
	.comm	_FUNC_MF_CFG_PROTOCOL_FCOE,4,2  ## @FUNC_MF_CFG_PROTOCOL_FCOE
	.comm	_func_ext_config,8,3            ## @func_ext_config
	.comm	_MACP_FUNC_CFG_FLAGS_ENABLED,4,2 ## @MACP_FUNC_CFG_FLAGS_ENABLED
	.comm	_MACP_FUNC_CFG_FLAGS_FCOE_OFFLOAD,4,2 ## @MACP_FUNC_CFG_FLAGS_FCOE_OFFLOAD
	.comm	_drv_lic_key,8,3                ## @drv_lic_key
	.comm	_FW_ENCODE_32BIT_PATTERN,4,2    ## @FW_ENCODE_32BIT_PATTERN
	.no_dead_strip	_bnx2x_shared_fcoe_funcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_shared_fcoe_funcs
_bnx2x_shared_fcoe_funcs:               ; @bnx2x_shared_fcoe_funcs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
	bl	_IS_MF
	cbz	x0, LBB0_9
; %bb.1:
	mov	x0, x19
	bl	_BP_PATH
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x21, _E2_FUNC_MAX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _E2_FUNC_MAX@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8, lsl #1
	b.ge	LBB0_11
; %bb.2:
	mov	w20, #0
	sxtw	x22, w0
Lloh2:
	adrp	x23, _func_ext_config@GOTPAGE
Lloh3:
	ldr	x23, [x23, _func_ext_config@GOTPAGEOFF]
Lloh4:
	adrp	x24, _MACP_FUNC_CFG_FLAGS_ENABLED@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MACP_FUNC_CFG_FLAGS_ENABLED@GOTPAGEOFF]
Lloh6:
	adrp	x26, _func_mf_config@GOTPAGE
Lloh7:
	ldr	x26, [x26, _func_mf_config@GOTPAGEOFF]
Lloh8:
	adrp	x27, _FUNC_MF_CFG_FUNC_HIDE@GOTPAGE
Lloh9:
	ldr	x27, [x27, _FUNC_MF_CFG_FUNC_HIDE@GOTPAGEOFF]
Lloh10:
	adrp	x28, _FUNC_MF_CFG_PROTOCOL_MASK@GOTPAGE
Lloh11:
	ldr	x28, [x28, _FUNC_MF_CFG_PROTOCOL_MASK@GOTPAGEOFF]
Lloh12:
	adrp	x25, _FUNC_MF_CFG_PROTOCOL_FCOE@GOTPAGE
Lloh13:
	ldr	x25, [x25, _FUNC_MF_CFG_PROTOCOL_FCOE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #2
	ldrsw	x8, [x21]
	cmp	x22, x8, lsl #1
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_IS_MF_SD
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26]
	ldr	w1, [x8, x22, lsl #2]
	mov	x0, x19
	bl	_MF_CFG_RD
	ldr	w8, [x27]
	tst	w8, w0
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x28]
	and	w8, w8, w0
	ldr	w9, [x25]
	cmp	w8, w9
	cinc	w20, w20, eq
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	ldr	w1, [x8, x22, lsl #2]
	mov	x0, x19
	bl	_MF_CFG_RD
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh14:
	adrp	x8, _MACP_FUNC_CFG_FLAGS_FCOE_OFFLOAD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MACP_FUNC_CFG_FLAGS_FCOE_OFFLOAD@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w0
	cinc	w20, w20, ne
	b	LBB0_3
LBB0_9:
	mov	x0, x19
	bl	_CHIP_MODE_IS_4_PORT
	mov	x21, #0
	mov	w20, #0
	cmp	x0, #0
	mov	w8, #1
	cinc	x22, x8, ne
Lloh17:
	adrp	x23, _drv_lic_key@GOTPAGE
Lloh18:
	ldr	x23, [x23, _drv_lic_key@GOTPAGEOFF]
Lloh19:
	adrp	x24, _FW_ENCODE_32BIT_PATTERN@GOTPAGE
Lloh20:
	ldr	x24, [x24, _FW_ENCODE_32BIT_PATTERN@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w1, [x8, x21, lsl #2]
	mov	x0, x19
	bl	_SHMEM_RD
	ldr	w8, [x24]
	cmp	w0, w8
	cinc	w20, w20, ne
	add	x21, x21, #1
	cmp	x22, x21
	b.ne	LBB0_10
	b	LBB0_12
LBB0_11:
	mov	w20, #0
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_E2_FUNC_MAX,4,2                ; @E2_FUNC_MAX
	.comm	_func_mf_config,8,3             ; @func_mf_config
	.comm	_FUNC_MF_CFG_FUNC_HIDE,4,2      ; @FUNC_MF_CFG_FUNC_HIDE
	.comm	_FUNC_MF_CFG_PROTOCOL_MASK,4,2  ; @FUNC_MF_CFG_PROTOCOL_MASK
	.comm	_FUNC_MF_CFG_PROTOCOL_FCOE,4,2  ; @FUNC_MF_CFG_PROTOCOL_FCOE
	.comm	_func_ext_config,8,3            ; @func_ext_config
	.comm	_MACP_FUNC_CFG_FLAGS_ENABLED,4,2 ; @MACP_FUNC_CFG_FLAGS_ENABLED
	.comm	_MACP_FUNC_CFG_FLAGS_FCOE_OFFLOAD,4,2 ; @MACP_FUNC_CFG_FLAGS_FCOE_OFFLOAD
	.comm	_drv_lic_key,8,3                ; @drv_lic_key
	.comm	_FW_ENCODE_32BIT_PATTERN,4,2    ; @FW_ENCODE_32BIT_PATTERN
	.no_dead_strip	_bnx2x_shared_fcoe_funcs
.subsections_via_symbols
