	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_init_fw_cap
_bnx2_init_fw_cap:                      ## @bnx2_init_fw_cap
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_BNX2_PHY_FLAG_REMOTE_PHY_CAP@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, (%rdi)
	movq	_BNX2_FLAG_CAN_KEEP_VLAN@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, %edx
	notl	%edx
	movl	4(%rdi), %ecx
	andl	%ecx, %edx
	movl	%edx, 4(%rdi)
	movq	_BNX2_FLAG_ASF_ENABLE@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	jne	LBB0_2
## %bb.1:
	orl	%eax, %ecx
	movl	%ecx, 4(%rbx)
LBB0_2:
	movq	_BNX2_FW_CAP_MB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bnx2_shmem_rd
	movq	_BNX2_FW_CAP_SIGNATURE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_BNX2_FW_CAP_SIGNATURE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_13
## %bb.3:
	movq	_BNX2_FW_CAP_CAN_KEEP_VLAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edx
	notl	%edx
	xorl	%r14d, %r14d
	testl	%edx, %ecx
	jne	LBB0_5
## %bb.4:
	movl	(%r12), %edx
	orl	%edx, 4(%rbx)
	movq	_BNX2_DRV_ACK_CAP_SIGNATURE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, %r14d
LBB0_5:
	movl	(%rbx), %ecx
	movq	_BNX2_PHY_FLAG_SERDES@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_11
## %bb.6:
	movq	_BNX2_FW_CAP_REMOTE_PHY_CAPABLE@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_11
## %bb.7:
	orl	(%r15), %ecx
	movl	%ecx, (%rbx)
	movq	_BNX2_LINK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bnx2_shmem_rd
	movq	_BNX2_LINK_STATUS_SERDES_LINK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_8
## %bb.9:
	movq	_PORT_TP@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_PORT_FIBRE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_BNX2_DRV_ACK_CAP_SIGNATURE@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	orl	(%r12), %r14d
LBB0_11:
	movl	8(%rbx), %edi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.14:
	movq	_BNX2_DRV_ACK_CAP_MB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2_shmem_wr                  ## TAILCALL
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2_PHY_FLAG_REMOTE_PHY_CAP,4,2 ## @BNX2_PHY_FLAG_REMOTE_PHY_CAP
	.comm	_BNX2_FLAG_CAN_KEEP_VLAN,4,2    ## @BNX2_FLAG_CAN_KEEP_VLAN
	.comm	_BNX2_FLAG_ASF_ENABLE,4,2       ## @BNX2_FLAG_ASF_ENABLE
	.comm	_BNX2_FW_CAP_MB,4,2             ## @BNX2_FW_CAP_MB
	.comm	_BNX2_FW_CAP_SIGNATURE_MASK,4,2 ## @BNX2_FW_CAP_SIGNATURE_MASK
	.comm	_BNX2_FW_CAP_SIGNATURE,4,2      ## @BNX2_FW_CAP_SIGNATURE
	.comm	_BNX2_FW_CAP_CAN_KEEP_VLAN,4,2  ## @BNX2_FW_CAP_CAN_KEEP_VLAN
	.comm	_BNX2_DRV_ACK_CAP_SIGNATURE,4,2 ## @BNX2_DRV_ACK_CAP_SIGNATURE
	.comm	_BNX2_PHY_FLAG_SERDES,4,2       ## @BNX2_PHY_FLAG_SERDES
	.comm	_BNX2_FW_CAP_REMOTE_PHY_CAPABLE,4,2 ## @BNX2_FW_CAP_REMOTE_PHY_CAPABLE
	.comm	_BNX2_LINK_STATUS,4,2           ## @BNX2_LINK_STATUS
	.comm	_BNX2_LINK_STATUS_SERDES_LINK,4,2 ## @BNX2_LINK_STATUS_SERDES_LINK
	.comm	_PORT_FIBRE,4,2                 ## @PORT_FIBRE
	.comm	_PORT_TP,4,2                    ## @PORT_TP
	.comm	_BNX2_DRV_ACK_CAP_MB,4,2        ## @BNX2_DRV_ACK_CAP_MB
	.no_dead_strip	_bnx2_init_fw_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_init_fw_cap
_bnx2_init_fw_cap:                      ; @bnx2_init_fw_cap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _BNX2_PHY_FLAG_REMOTE_PHY_CAP@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BNX2_PHY_FLAG_REMOTE_PHY_CAP@GOTPAGEOFF]
	ldr	w9, [x21]
	ldp	w10, w8, [x0]
	bic	w9, w10, w9
	str	w9, [x0]
Lloh2:
	adrp	x20, _BNX2_FLAG_CAN_KEEP_VLAN@GOTPAGE
Lloh3:
	ldr	x20, [x20, _BNX2_FLAG_CAN_KEEP_VLAN@GOTPAGEOFF]
	ldr	w9, [x20]
	bic	w10, w8, w9
	str	w10, [x0, #4]
Lloh4:
	adrp	x11, _BNX2_FLAG_ASF_ENABLE@GOTPAGE
Lloh5:
	ldr	x11, [x11, _BNX2_FLAG_ASF_ENABLE@GOTPAGEOFF]
Lloh6:
	ldr	w11, [x11]
	tst	w11, w10
	b.ne	LBB0_2
; %bb.1:
	orr	w8, w8, w9
	str	w8, [x19, #4]
LBB0_2:
Lloh7:
	adrp	x8, _BNX2_FW_CAP_MB@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BNX2_FW_CAP_MB@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bnx2_shmem_rd
Lloh10:
	adrp	x8, _BNX2_FW_CAP_SIGNATURE_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BNX2_FW_CAP_SIGNATURE_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh13:
	adrp	x9, _BNX2_FW_CAP_SIGNATURE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BNX2_FW_CAP_SIGNATURE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.3:
Lloh16:
	adrp	x8, _BNX2_FW_CAP_CAN_KEEP_VLAN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BNX2_FW_CAP_CAN_KEEP_VLAN@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	bics	wzr, w8, w0
	b.ne	LBB0_5
; %bb.4:
	ldr	w9, [x20]
	ldr	w10, [x19, #4]
	orr	w9, w10, w9
	str	w9, [x19, #4]
Lloh19:
	adrp	x9, _BNX2_DRV_ACK_CAP_SIGNATURE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _BNX2_DRV_ACK_CAP_SIGNATURE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w20, w9, w8
	b	LBB0_6
LBB0_5:
	mov	w20, #0
LBB0_6:
	ldr	w8, [x19]
Lloh22:
	adrp	x9, _BNX2_PHY_FLAG_SERDES@GOTPAGE
Lloh23:
	ldr	x9, [x9, _BNX2_PHY_FLAG_SERDES@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
Lloh25:
	adrp	x22, _BNX2_FW_CAP_REMOTE_PHY_CAPABLE@GOTPAGE
Lloh26:
	ldr	x22, [x22, _BNX2_FW_CAP_REMOTE_PHY_CAPABLE@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w0
	b.eq	LBB0_9
; %bb.8:
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh27:
	adrp	x8, _BNX2_LINK_STATUS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BNX2_LINK_STATUS@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bnx2_shmem_rd
Lloh30:
	adrp	x8, _BNX2_LINK_STATUS_SERDES_LINK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BNX2_LINK_STATUS_SERDES_LINK@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _PORT_TP@GOTPAGE
Lloh34:
	ldr	x9, [x9, _PORT_TP@GOTPAGEOFF]
Lloh35:
	adrp	x10, _PORT_FIBRE@GOTPAGE
Lloh36:
	ldr	x10, [x10, _PORT_FIBRE@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x19, #12]
Lloh37:
	adrp	x8, _BNX2_DRV_ACK_CAP_SIGNATURE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _BNX2_DRV_ACK_CAP_SIGNATURE@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w8, w20
	orr	w20, w8, w9
LBB0_9:
	ldr	w0, [x19, #8]
	bl	_netif_running
	cbz	x0, LBB0_12
; %bb.10:
	cbz	w20, LBB0_12
; %bb.11:
Lloh40:
	adrp	x8, _BNX2_DRV_ACK_CAP_MB@GOTPAGE
Lloh41:
	ldr	x8, [x8, _BNX2_DRV_ACK_CAP_MB@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_bnx2_shmem_wr
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2_PHY_FLAG_REMOTE_PHY_CAP,4,2 ; @BNX2_PHY_FLAG_REMOTE_PHY_CAP
	.comm	_BNX2_FLAG_CAN_KEEP_VLAN,4,2    ; @BNX2_FLAG_CAN_KEEP_VLAN
	.comm	_BNX2_FLAG_ASF_ENABLE,4,2       ; @BNX2_FLAG_ASF_ENABLE
	.comm	_BNX2_FW_CAP_MB,4,2             ; @BNX2_FW_CAP_MB
	.comm	_BNX2_FW_CAP_SIGNATURE_MASK,4,2 ; @BNX2_FW_CAP_SIGNATURE_MASK
	.comm	_BNX2_FW_CAP_SIGNATURE,4,2      ; @BNX2_FW_CAP_SIGNATURE
	.comm	_BNX2_FW_CAP_CAN_KEEP_VLAN,4,2  ; @BNX2_FW_CAP_CAN_KEEP_VLAN
	.comm	_BNX2_DRV_ACK_CAP_SIGNATURE,4,2 ; @BNX2_DRV_ACK_CAP_SIGNATURE
	.comm	_BNX2_PHY_FLAG_SERDES,4,2       ; @BNX2_PHY_FLAG_SERDES
	.comm	_BNX2_FW_CAP_REMOTE_PHY_CAPABLE,4,2 ; @BNX2_FW_CAP_REMOTE_PHY_CAPABLE
	.comm	_BNX2_LINK_STATUS,4,2           ; @BNX2_LINK_STATUS
	.comm	_BNX2_LINK_STATUS_SERDES_LINK,4,2 ; @BNX2_LINK_STATUS_SERDES_LINK
	.comm	_PORT_FIBRE,4,2                 ; @PORT_FIBRE
	.comm	_PORT_TP,4,2                    ; @PORT_TP
	.comm	_BNX2_DRV_ACK_CAP_MB,4,2        ; @BNX2_DRV_ACK_CAP_MB
	.no_dead_strip	_bnx2_init_fw_cap
.subsections_via_symbols
