	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_update_pfc_bmac2
_bnx2x_update_pfc_bmac2:                ## @bnx2x_update_pfc_bmac2
	.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, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	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:
	movq	16(%r15), %r14
	movl	(%rax), %ebx
	movq	_FEATURE_CONFIG_PFC_ENABLED@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movl	$20, %eax
	testl	%ecx, (%r15)
	jne	LBB0_5
## %bb.4:
	movq	_BNX2X_FLOW_CTRL_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%r13)
	setne	%al
	shll	$5, %eax
	orl	$20, %eax
LBB0_5:
	movl	%eax, -56(%rbp)
	movl	$0, -52(%rbp)
	movq	_BIGMAC2_REGISTER_RX_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	_REG_WR_DMAE
	movl	$30, %edi
	callq	_udelay
	movl	(%r12), %ecx
	movl	$192, %eax
	testl	%ecx, (%r15)
	jne	LBB0_7
## %bb.6:
	movq	_BNX2X_FLOW_CTRL_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%r13)
	setne	%al
	shll	$23, %eax
	orl	$192, %eax
LBB0_7:
	movl	%eax, -56(%rbp)
	movl	$0, -52(%rbp)
	movq	_BIGMAC2_REGISTER_TX_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	_REG_WR_DMAE
	movl	(%r12), %eax
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testl	%eax, (%r15)
	je	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movq	$47, -56(%rbp)
	movq	_BIGMAC2_REGISTER_PFC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	_REG_WR_DMAE
	andb	$-5, -56(%rbp)
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	callq	_DP
	movq	$8, -56(%rbp)
LBB0_10:
	movq	_BIGMAC2_REGISTER_PFC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	leaq	-56(%rbp), %r13
	movq	%r14, %rdi
	movq	%r13, %rdx
	movl	$2, %ecx
	callq	_REG_WR_DMAE
	movl	(%r12), %eax
	xorl	%ecx, %ecx
	andl	(%r15), %eax
	setne	%cl
	shll	$16, %ecx
	orl	$32768, %ecx                    ## imm = 0x8000
	movl	%ecx, -56(%rbp)
	movl	$0, -52(%rbp)
	movq	_BIGMAC2_REGISTER_TX_PAUSE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	movq	%r14, %rdi
	movq	%r13, %rdx
	movl	$2, %ecx
	callq	_REG_WR_DMAE
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_11
## %bb.12:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_DP
	movl	$7, %eax
	jmp	LBB0_13
LBB0_11:
	movl	$3, %eax
LBB0_13:
	movl	(%r12), %ecx
	andl	(%r15), %ecx
	leal	96(%rax), %edx
	testl	%ecx, %ecx
	cmovel	%eax, %edx
	movl	%edx, -56(%rbp)
	movl	$0, -52(%rbp)
	movq	_BIGMAC2_REGISTER_BMAC_CONTROL@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$2, %ecx
	callq	_REG_WR_DMAE
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	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	_FEATURE_CONFIG_PFC_ENABLED,4,2 ## @FEATURE_CONFIG_PFC_ENABLED
	.comm	_BNX2X_FLOW_CTRL_RX,4,2         ## @BNX2X_FLOW_CTRL_RX
	.comm	_BIGMAC2_REGISTER_RX_CONTROL,4,2 ## @BIGMAC2_REGISTER_RX_CONTROL
	.comm	_BNX2X_FLOW_CTRL_TX,4,2         ## @BNX2X_FLOW_CTRL_TX
	.comm	_BIGMAC2_REGISTER_TX_CONTROL,4,2 ## @BIGMAC2_REGISTER_TX_CONTROL
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PFC is enabled\n"

	.comm	_BIGMAC2_REGISTER_PFC_CONTROL,4,2 ## @BIGMAC2_REGISTER_PFC_CONTROL
L_.str.1:                               ## @.str.1
	.asciz	"PFC is disabled\n"

	.comm	_BIGMAC2_REGISTER_TX_PAUSE_CONTROL,4,2 ## @BIGMAC2_REGISTER_TX_PAUSE_CONTROL
L_.str.2:                               ## @.str.2
	.asciz	"enable bmac loopback\n"

	.comm	_BIGMAC2_REGISTER_BMAC_CONTROL,4,2 ## @BIGMAC2_REGISTER_BMAC_CONTROL
	.no_dead_strip	_bnx2x_update_pfc_bmac2
.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_update_pfc_bmac2
lCPI0_0:
	.long	47                              ; 0x2f
	.long	0                               ; 0x0
lCPI0_1:
	.long	8                               ; 0x8
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_bnx2x_update_pfc_bmac2:                ; @bnx2x_update_pfc_bmac2
	.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	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _NIG_REG_INGRESS_BMAC1_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIG_REG_INGRESS_BMAC1_MEM@GOTPAGEOFF]
	ldp	x9, x19, [x0, #8]
Lloh2:
	adrp	x10, _NIG_REG_INGRESS_BMAC0_MEM@GOTPAGE
Lloh3:
	ldr	x10, [x10, _NIG_REG_INGRESS_BMAC0_MEM@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	w23, [x8]
	ldr	w9, [x0]
Lloh4:
	adrp	x24, _FEATURE_CONFIG_PFC_ENABLED@GOTPAGE
Lloh5:
	ldr	x24, [x24, _FEATURE_CONFIG_PFC_ENABLED@GOTPAGEOFF]
	ldr	w10, [x24]
	mov	w8, #20
	tst	w10, w9
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [x22]
Lloh6:
	adrp	x10, _BNX2X_FLOW_CTRL_RX@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BNX2X_FLOW_CTRL_RX@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	mov	w9, #52
	csel	w8, w8, w9, eq
LBB0_2:
	stp	w8, wzr, [sp, #8]
Lloh9:
	adrp	x8, _BIGMAC2_REGISTER_RX_CONTROL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BIGMAC2_REGISTER_RX_CONTROL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	add	w1, w8, w23
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #2
	bl	_REG_WR_DMAE
	mov	w0, #30
	bl	_udelay
	ldr	w9, [x20]
	ldr	w10, [x24]
	mov	w8, #192
	tst	w10, w9
	b.ne	LBB0_4
; %bb.3:
	ldr	w9, [x22]
Lloh12:
	adrp	x10, _BNX2X_FLOW_CTRL_TX@GOTPAGE
Lloh13:
	ldr	x10, [x10, _BNX2X_FLOW_CTRL_TX@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w10, w9
	mov	w9, #192
	movk	w9, #128, lsl #16
	csel	w8, w8, w9, eq
LBB0_4:
	stp	w8, wzr, [sp, #8]
Lloh15:
	adrp	x8, _BIGMAC2_REGISTER_TX_CONTROL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BIGMAC2_REGISTER_TX_CONTROL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	add	w1, w8, w23
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #2
	bl	_REG_WR_DMAE
	ldr	w8, [x20]
	ldr	w9, [x24]
Lloh18:
	adrp	x22, _NETIF_MSG_LINK@GOTPAGE
Lloh19:
	ldr	x22, [x22, _NETIF_MSG_LINK@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh20:
	adrp	x25, _BIGMAC2_REGISTER_PFC_CONTROL@GOTPAGE
Lloh21:
	ldr	x25, [x25, _BIGMAC2_REGISTER_PFC_CONTROL@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
Lloh24:
	adrp	x8, lCPI0_0@PAGE
Lloh25:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
	ldr	w8, [x25]
	add	w1, w8, w23
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #2
	bl	_REG_WR_DMAE
	ldr	w8, [sp, #8]
	and	w8, w8, #0xfffffffb
	str	w8, [sp, #8]
	b	LBB0_7
LBB0_6:
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
Lloh28:
	adrp	x8, lCPI0_1@PAGE
Lloh29:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [sp, #8]
LBB0_7:
	ldr	w8, [x25]
	add	w1, w8, w23
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #2
	bl	_REG_WR_DMAE
	ldr	w8, [x20]
	ldr	w9, [x24]
	tst	w9, w8
	mov	w8, #98304
	mov	w9, #32768
	csel	w8, w9, w8, eq
	stp	w8, wzr, [sp, #8]
Lloh30:
	adrp	x8, _BIGMAC2_REGISTER_TX_PAUSE_CONTROL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BIGMAC2_REGISTER_TX_PAUSE_CONTROL@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	add	w1, w8, w23
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #2
	bl	_REG_WR_DMAE
	cbz	x21, LBB0_9
; %bb.8:
	ldr	w0, [x22]
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP
	mov	w8, #7
	b	LBB0_10
LBB0_9:
	mov	w8, #3
LBB0_10:
	ldr	w9, [x20]
	ldr	w10, [x24]
	orr	w11, w8, #0x60
	tst	w10, w9
	csel	w8, w8, w11, eq
	stp	w8, wzr, [sp, #8]
Lloh35:
	adrp	x8, _BIGMAC2_REGISTER_BMAC_CONTROL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BIGMAC2_REGISTER_BMAC_CONTROL@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	add	w1, w8, w23
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #2
	bl	_REG_WR_DMAE
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdr	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdr	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.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	_FEATURE_CONFIG_PFC_ENABLED,4,2 ; @FEATURE_CONFIG_PFC_ENABLED
	.comm	_BNX2X_FLOW_CTRL_RX,4,2         ; @BNX2X_FLOW_CTRL_RX
	.comm	_BIGMAC2_REGISTER_RX_CONTROL,4,2 ; @BIGMAC2_REGISTER_RX_CONTROL
	.comm	_BNX2X_FLOW_CTRL_TX,4,2         ; @BNX2X_FLOW_CTRL_TX
	.comm	_BIGMAC2_REGISTER_TX_CONTROL,4,2 ; @BIGMAC2_REGISTER_TX_CONTROL
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PFC is enabled\n"

	.comm	_BIGMAC2_REGISTER_PFC_CONTROL,4,2 ; @BIGMAC2_REGISTER_PFC_CONTROL
l_.str.1:                               ; @.str.1
	.asciz	"PFC is disabled\n"

	.comm	_BIGMAC2_REGISTER_TX_PAUSE_CONTROL,4,2 ; @BIGMAC2_REGISTER_TX_PAUSE_CONTROL
l_.str.2:                               ; @.str.2
	.asciz	"enable bmac loopback\n"

	.comm	_BIGMAC2_REGISTER_BMAC_CONTROL,4,2 ; @BIGMAC2_REGISTER_BMAC_CONTROL
	.no_dead_strip	_bnx2x_update_pfc_bmac2
.subsections_via_symbols
