	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_bmac2_enable
_bnx2x_bmac2_enable:                    ## @bnx2x_bmac2_enable
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %r13
	cmpq	$0, 8(%rdi)
	jne	LBB0_1
## %bb.2:
	movq	_NIG_REG_INGRESS_BMAC0_MEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_NIG_REG_INGRESS_BMAC1_MEM@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movq	$0, -56(%rbp)
	movq	_BIGMAC2_REGISTER_BMAC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	leaq	-56(%rbp), %r14
	movq	%r13, %rdi
	movq	%r14, %rdx
	movl	$2, %ecx
	callq	_REG_WR_DMAE
	movl	$30, %edi
	callq	_udelay
	movq	$60, -56(%rbp)
	movq	_BIGMAC2_REGISTER_BMAC_XGXS_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	movl	$2, %ecx
	callq	_REG_WR_DMAE
	movl	$30, %edi
	callq	_udelay
	movq	(%r15), %rax
	movl	8(%rax), %ecx
	movl	12(%rax), %edx
	shll	$24, %ecx
	shll	$16, %edx
	orl	%ecx, %edx
	movl	16(%rax), %ecx
	shll	$8, %ecx
	orl	%edx, %ecx
	orl	20(%rax), %ecx
	movl	%ecx, -56(%rbp)
	movl	(%rax), %ecx
	shll	$8, %ecx
	orl	4(%rax), %ecx
	movl	%ecx, -52(%rbp)
	movq	_BIGMAC2_REGISTER_TX_SOURCE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	movl	$2, %ecx
	callq	_REG_WR_DMAE
	movl	$30, %edi
	callq	_udelay
	movq	$16777728, -56(%rbp)            ## imm = 0x1000200
	movq	_BIGMAC2_REGISTER_RX_LLFC_MSG_FLDS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	movl	$2, %ecx
	callq	_REG_WR_DMAE
	movl	$30, %edi
	callq	_udelay
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	_ETH_MAX_JUMBO_PACKET_SIZE@GOTPCREL(%rip), %r15
	movq	_ETH_OVREHEAD@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	addl	(%r15), %eax
	movl	%eax, -56(%rbp)
	movl	$0, -52(%rbp)
	movq	_BIGMAC2_REGISTER_RX_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	movl	$2, %ecx
	callq	_REG_WR_DMAE
	movl	$30, %edi
	callq	_udelay
	movl	(%r12), %eax
	addl	(%r15), %eax
	movl	%eax, -56(%rbp)
	movl	$0, -52(%rbp)
	movq	_BIGMAC2_REGISTER_TX_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	movl	$2, %ecx
	callq	_REG_WR_DMAE
	movl	$30, %edi
	callq	_udelay
	movl	(%r15), %eax
	movl	(%r12), %ecx
	addl	%ecx, %eax
	addl	$-2, %eax
	movl	%eax, -56(%rbp)
	movl	$0, -52(%rbp)
	movq	_BIGMAC2_REGISTER_CNT_MAX_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	movl	$2, %ecx
	callq	_REG_WR_DMAE
	movl	$30, %edi
	callq	_udelay
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_bnx2x_update_pfc_bmac2
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NIG_REG_INGRESS_BMAC1_MEM,4,2  ## @NIG_REG_INGRESS_BMAC1_MEM
	.comm	_NIG_REG_INGRESS_BMAC0_MEM,4,2  ## @NIG_REG_INGRESS_BMAC0_MEM
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enabling BigMAC2\n"

	.comm	_BIGMAC2_REGISTER_BMAC_CONTROL,4,2 ## @BIGMAC2_REGISTER_BMAC_CONTROL
	.comm	_BIGMAC2_REGISTER_BMAC_XGXS_CONTROL,4,2 ## @BIGMAC2_REGISTER_BMAC_XGXS_CONTROL
	.comm	_BIGMAC2_REGISTER_TX_SOURCE_ADDR,4,2 ## @BIGMAC2_REGISTER_TX_SOURCE_ADDR
	.comm	_BIGMAC2_REGISTER_RX_LLFC_MSG_FLDS,4,2 ## @BIGMAC2_REGISTER_RX_LLFC_MSG_FLDS
	.comm	_ETH_MAX_JUMBO_PACKET_SIZE,4,2  ## @ETH_MAX_JUMBO_PACKET_SIZE
	.comm	_ETH_OVREHEAD,4,2               ## @ETH_OVREHEAD
	.comm	_BIGMAC2_REGISTER_RX_MAX_SIZE,4,2 ## @BIGMAC2_REGISTER_RX_MAX_SIZE
	.comm	_BIGMAC2_REGISTER_TX_MAX_SIZE,4,2 ## @BIGMAC2_REGISTER_TX_MAX_SIZE
	.comm	_BIGMAC2_REGISTER_CNT_MAX_SIZE,4,2 ## @BIGMAC2_REGISTER_CNT_MAX_SIZE
	.no_dead_strip	_bnx2x_bmac2_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_bmac2_enable
_bnx2x_bmac2_enable:                    ; @bnx2x_bmac2_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldp	x8, x22, [x0, #8]
Lloh3:
	adrp	x9, _NIG_REG_INGRESS_BMAC1_MEM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NIG_REG_INGRESS_BMAC1_MEM@GOTPAGEOFF]
Lloh5:
	adrp	x10, _NIG_REG_INGRESS_BMAC0_MEM@GOTPAGE
Lloh6:
	ldr	x10, [x10, _NIG_REG_INGRESS_BMAC0_MEM@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w23, [x8]
Lloh7:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	str	xzr, [sp]
Lloh12:
	adrp	x8, _BIGMAC2_REGISTER_BMAC_CONTROL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BIGMAC2_REGISTER_BMAC_CONTROL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	add	w1, w8, w23
	mov	x2, sp
	mov	x0, x22
	mov	w3, #2
	bl	_REG_WR_DMAE
	mov	w0, #30
	bl	_udelay
	mov	w8, #60
	str	x8, [sp]
Lloh15:
	adrp	x8, _BIGMAC2_REGISTER_BMAC_XGXS_CONTROL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BIGMAC2_REGISTER_BMAC_XGXS_CONTROL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	add	w1, w8, w23
	mov	x2, sp
	mov	x0, x22
	mov	w3, #2
	bl	_REG_WR_DMAE
	mov	w0, #30
	bl	_udelay
	ldr	x8, [x21]
	ldp	w9, w10, [x8, #8]
	lsl	w10, w10, #16
	orr	w9, w10, w9, lsl #24
	ldp	w10, w11, [x8, #16]
	orr	w9, w9, w10, lsl #8
	orr	w9, w9, w11
	str	w9, [sp]
	ldp	w9, w8, [x8]
	orr	w8, w8, w9, lsl #8
	str	w8, [sp, #4]
Lloh18:
	adrp	x8, _BIGMAC2_REGISTER_TX_SOURCE_ADDR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BIGMAC2_REGISTER_TX_SOURCE_ADDR@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	add	w1, w8, w23
	mov	x2, sp
	mov	x0, x22
	mov	w3, #2
	bl	_REG_WR_DMAE
	mov	w0, #30
	bl	_udelay
	mov	w8, #512
	movk	w8, #256, lsl #16
	str	x8, [sp]
Lloh21:
	adrp	x8, _BIGMAC2_REGISTER_RX_LLFC_MSG_FLDS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BIGMAC2_REGISTER_RX_LLFC_MSG_FLDS@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	add	w1, w8, w23
	mov	x2, sp
	mov	x0, x22
	mov	w3, #2
	bl	_REG_WR_DMAE
	mov	w0, #30
	bl	_udelay
Lloh24:
	adrp	x24, _ETH_MAX_JUMBO_PACKET_SIZE@GOTPAGE
Lloh25:
	ldr	x24, [x24, _ETH_MAX_JUMBO_PACKET_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh26:
	adrp	x25, _ETH_OVREHEAD@GOTPAGE
Lloh27:
	ldr	x25, [x25, _ETH_OVREHEAD@GOTPAGEOFF]
	ldr	w9, [x25]
	add	w8, w9, w8
	stp	w8, wzr, [sp]
Lloh28:
	adrp	x8, _BIGMAC2_REGISTER_RX_MAX_SIZE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BIGMAC2_REGISTER_RX_MAX_SIZE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	add	w1, w8, w23
	mov	x2, sp
	mov	x0, x22
	mov	w3, #2
	bl	_REG_WR_DMAE
	mov	w0, #30
	bl	_udelay
	ldr	w8, [x24]
	ldr	w9, [x25]
	add	w8, w9, w8
	stp	w8, wzr, [sp]
Lloh31:
	adrp	x8, _BIGMAC2_REGISTER_TX_MAX_SIZE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BIGMAC2_REGISTER_TX_MAX_SIZE@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	add	w1, w8, w23
	mov	x2, sp
	mov	x0, x22
	mov	w3, #2
	bl	_REG_WR_DMAE
	mov	w0, #30
	bl	_udelay
	ldr	w8, [x24]
	ldr	w9, [x25]
	add	w8, w8, w9
	sub	w8, w8, #2
	stp	w8, wzr, [sp]
Lloh34:
	adrp	x8, _BIGMAC2_REGISTER_CNT_MAX_SIZE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _BIGMAC2_REGISTER_CNT_MAX_SIZE@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	add	w1, w8, w23
	mov	x2, sp
	mov	x0, x22
	mov	w3, #2
	bl	_REG_WR_DMAE
	mov	w0, #30
	bl	_udelay
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_bnx2x_update_pfc_bmac2
	ldr	x8, [sp, #8]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	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
	add	sp, sp, #96
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NIG_REG_INGRESS_BMAC1_MEM,4,2  ; @NIG_REG_INGRESS_BMAC1_MEM
	.comm	_NIG_REG_INGRESS_BMAC0_MEM,4,2  ; @NIG_REG_INGRESS_BMAC0_MEM
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enabling BigMAC2\n"

	.comm	_BIGMAC2_REGISTER_BMAC_CONTROL,4,2 ; @BIGMAC2_REGISTER_BMAC_CONTROL
	.comm	_BIGMAC2_REGISTER_BMAC_XGXS_CONTROL,4,2 ; @BIGMAC2_REGISTER_BMAC_XGXS_CONTROL
	.comm	_BIGMAC2_REGISTER_TX_SOURCE_ADDR,4,2 ; @BIGMAC2_REGISTER_TX_SOURCE_ADDR
	.comm	_BIGMAC2_REGISTER_RX_LLFC_MSG_FLDS,4,2 ; @BIGMAC2_REGISTER_RX_LLFC_MSG_FLDS
	.comm	_ETH_MAX_JUMBO_PACKET_SIZE,4,2  ; @ETH_MAX_JUMBO_PACKET_SIZE
	.comm	_ETH_OVREHEAD,4,2               ; @ETH_OVREHEAD
	.comm	_BIGMAC2_REGISTER_RX_MAX_SIZE,4,2 ; @BIGMAC2_REGISTER_RX_MAX_SIZE
	.comm	_BIGMAC2_REGISTER_TX_MAX_SIZE,4,2 ; @BIGMAC2_REGISTER_TX_MAX_SIZE
	.comm	_BIGMAC2_REGISTER_CNT_MAX_SIZE,4,2 ; @BIGMAC2_REGISTER_CNT_MAX_SIZE
	.no_dead_strip	_bnx2x_bmac2_enable
.subsections_via_symbols
