	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_bmac1_enable
_bnx2x_bmac1_enable:                    ## @bnx2x_bmac1_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %r14
	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	$60, -56(%rbp)
	movq	_BIGMAC_REGISTER_BMAC_XGXS_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	leaq	-56(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	$2, %ecx
	callq	_REG_WR_DMAE
	movq	(%r12), %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	_BIGMAC_REGISTER_TX_SOURCE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	$2, %ecx
	callq	_REG_WR_DMAE
	testq	%r13, %r13
	je	LBB0_4
## %bb.5:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_DP
	movl	$7, %eax
	jmp	LBB0_6
LBB0_4:
	movl	$3, %eax
LBB0_6:
	movl	%eax, -56(%rbp)
	movl	$0, -52(%rbp)
	movq	_BIGMAC_REGISTER_BMAC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	leaq	-56(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	$2, %ecx
	callq	_REG_WR_DMAE
	movq	_ETH_MAX_JUMBO_PACKET_SIZE@GOTPCREL(%rip), %rcx
	movq	_ETH_OVREHEAD@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	addl	(%rcx), %eax
	movl	%eax, -56(%rbp)
	movl	$0, -52(%rbp)
	movq	_BIGMAC_REGISTER_RX_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	$2, %ecx
	callq	_REG_WR_DMAE
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_bnx2x_update_pfc_bmac1
	movl	(%r13), %eax
	movq	_ETH_MAX_JUMBO_PACKET_SIZE@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movl	%eax, -56(%rbp)
	movl	$0, -52(%rbp)
	movq	_BIGMAC_REGISTER_TX_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	$2, %ecx
	callq	_REG_WR_DMAE
	movl	(%r13), %eax
	movq	_ETH_MAX_JUMBO_PACKET_SIZE@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movl	%eax, -56(%rbp)
	movl	$0, -52(%rbp)
	movq	_BIGMAC_REGISTER_CNT_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	$2, %ecx
	callq	_REG_WR_DMAE
	movq	$16777728, -56(%rbp)            ## imm = 0x1000200
	movq	_BIGMAC_REGISTER_RX_LLFC_MSG_FLDS@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	$2, %ecx
	callq	_REG_WR_DMAE
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	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 BigMAC1\n"

	.comm	_BIGMAC_REGISTER_BMAC_XGXS_CONTROL,4,2 ## @BIGMAC_REGISTER_BMAC_XGXS_CONTROL
	.comm	_BIGMAC_REGISTER_TX_SOURCE_ADDR,4,2 ## @BIGMAC_REGISTER_TX_SOURCE_ADDR
L_.str.1:                               ## @.str.1
	.asciz	"enable bmac loopback\n"

	.comm	_BIGMAC_REGISTER_BMAC_CONTROL,4,2 ## @BIGMAC_REGISTER_BMAC_CONTROL
	.comm	_ETH_MAX_JUMBO_PACKET_SIZE,4,2  ## @ETH_MAX_JUMBO_PACKET_SIZE
	.comm	_ETH_OVREHEAD,4,2               ## @ETH_OVREHEAD
	.comm	_BIGMAC_REGISTER_RX_MAX_SIZE,4,2 ## @BIGMAC_REGISTER_RX_MAX_SIZE
	.comm	_BIGMAC_REGISTER_TX_MAX_SIZE,4,2 ## @BIGMAC_REGISTER_TX_MAX_SIZE
	.comm	_BIGMAC_REGISTER_CNT_MAX_SIZE,4,2 ## @BIGMAC_REGISTER_CNT_MAX_SIZE
	.comm	_BIGMAC_REGISTER_RX_LLFC_MSG_FLDS,4,2 ## @BIGMAC_REGISTER_RX_LLFC_MSG_FLDS
	.no_dead_strip	_bnx2x_bmac1_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function bnx2x_bmac1_enable
lCPI0_0:
	.long	60                              ; 0x3c
	.long	0                               ; 0x0
lCPI0_1:
	.long	16777728                        ; 0x1000200
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_bnx2x_bmac1_enable:                    ; @bnx2x_bmac1_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldp	x8, x19, [x0, #8]
Lloh0:
	adrp	x9, _NIG_REG_INGRESS_BMAC1_MEM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NIG_REG_INGRESS_BMAC1_MEM@GOTPAGEOFF]
Lloh2:
	adrp	x10, _NIG_REG_INGRESS_BMAC0_MEM@GOTPAGE
Lloh3:
	ldr	x10, [x10, _NIG_REG_INGRESS_BMAC0_MEM@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w23, [x8]
Lloh4:
	adrp	x24, _NETIF_MSG_LINK@GOTPAGE
Lloh5:
	ldr	x24, [x24, _NETIF_MSG_LINK@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
Lloh10:
	adrp	x8, _BIGMAC_REGISTER_BMAC_XGXS_CONTROL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BIGMAC_REGISTER_BMAC_XGXS_CONTROL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	add	w1, w8, w23
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #2
	bl	_REG_WR_DMAE
	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, #8]
	ldp	w9, w8, [x8]
	orr	w8, w8, w9, lsl #8
	str	w8, [sp, #12]
Lloh13:
	adrp	x8, _BIGMAC_REGISTER_TX_SOURCE_ADDR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BIGMAC_REGISTER_TX_SOURCE_ADDR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	add	w1, w8, w23
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #2
	bl	_REG_WR_DMAE
	cbz	x22, LBB0_2
; %bb.1:
	ldr	w0, [x24]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
	mov	w8, #7
	b	LBB0_3
LBB0_2:
	mov	w8, #3
LBB0_3:
	stp	w8, wzr, [sp, #8]
Lloh18:
	adrp	x8, _BIGMAC_REGISTER_BMAC_CONTROL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BIGMAC_REGISTER_BMAC_CONTROL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	add	w1, w8, w23
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #2
	bl	_REG_WR_DMAE
Lloh21:
	adrp	x22, _ETH_MAX_JUMBO_PACKET_SIZE@GOTPAGE
Lloh22:
	ldr	x22, [x22, _ETH_MAX_JUMBO_PACKET_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh23:
	adrp	x24, _ETH_OVREHEAD@GOTPAGE
Lloh24:
	ldr	x24, [x24, _ETH_OVREHEAD@GOTPAGEOFF]
	ldr	w9, [x24]
	add	w8, w9, w8
	stp	w8, wzr, [sp, #8]
Lloh25:
	adrp	x8, _BIGMAC_REGISTER_RX_MAX_SIZE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BIGMAC_REGISTER_RX_MAX_SIZE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	add	w1, w8, w23
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #2
	bl	_REG_WR_DMAE
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_update_pfc_bmac1
	ldr	w8, [x22]
	ldr	w9, [x24]
	add	w8, w9, w8
	stp	w8, wzr, [sp, #8]
Lloh28:
	adrp	x8, _BIGMAC_REGISTER_TX_MAX_SIZE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BIGMAC_REGISTER_TX_MAX_SIZE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	add	w1, w8, w23
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #2
	bl	_REG_WR_DMAE
	ldr	w8, [x22]
	ldr	w9, [x24]
	add	w8, w9, w8
	stp	w8, wzr, [sp, #8]
Lloh31:
	adrp	x8, _BIGMAC_REGISTER_CNT_MAX_SIZE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BIGMAC_REGISTER_CNT_MAX_SIZE@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	add	w1, w8, w23
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #2
	bl	_REG_WR_DMAE
Lloh34:
	adrp	x8, lCPI0_1@PAGE
Lloh35:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [sp, #8]
Lloh36:
	adrp	x8, _BIGMAC_REGISTER_RX_LLFC_MSG_FLDS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _BIGMAC_REGISTER_RX_LLFC_MSG_FLDS@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	add	w1, w8, w23
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #2
	bl	_REG_WR_DMAE
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdrp	Lloh8, Lloh10
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdrp	Lloh34, Lloh36
	.loh AdrpLdr	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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 BigMAC1\n"

	.comm	_BIGMAC_REGISTER_BMAC_XGXS_CONTROL,4,2 ; @BIGMAC_REGISTER_BMAC_XGXS_CONTROL
	.comm	_BIGMAC_REGISTER_TX_SOURCE_ADDR,4,2 ; @BIGMAC_REGISTER_TX_SOURCE_ADDR
l_.str.1:                               ; @.str.1
	.asciz	"enable bmac loopback\n"

	.comm	_BIGMAC_REGISTER_BMAC_CONTROL,4,2 ; @BIGMAC_REGISTER_BMAC_CONTROL
	.comm	_ETH_MAX_JUMBO_PACKET_SIZE,4,2  ; @ETH_MAX_JUMBO_PACKET_SIZE
	.comm	_ETH_OVREHEAD,4,2               ; @ETH_OVREHEAD
	.comm	_BIGMAC_REGISTER_RX_MAX_SIZE,4,2 ; @BIGMAC_REGISTER_RX_MAX_SIZE
	.comm	_BIGMAC_REGISTER_TX_MAX_SIZE,4,2 ; @BIGMAC_REGISTER_TX_MAX_SIZE
	.comm	_BIGMAC_REGISTER_CNT_MAX_SIZE,4,2 ; @BIGMAC_REGISTER_CNT_MAX_SIZE
	.comm	_BIGMAC_REGISTER_RX_LLFC_MSG_FLDS,4,2 ; @BIGMAC_REGISTER_RX_LLFC_MSG_FLDS
	.no_dead_strip	_bnx2x_bmac1_enable
.subsections_via_symbols
