	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_update_pfc_xmac
_bnx2x_update_pfc_xmac:                 ## @bnx2x_update_pfc_xmac
	.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
	cmpq	$0, 16(%rdi)
	jne	LBB0_1
## %bb.2:
	movq	_GRCBASE_XMAC0@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_GRCBASE_XMAC1@GOTPCREL(%rip), %rax
LBB0_3:
	movq	24(%r14), %r15
	movl	(%rax), %r13d
	movq	_FEATURE_CONFIG_PFC_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_4
## %bb.6:
	movq	_XMAC_PFC_CTRL_HI_REG_PFC_REFRESH_EN@GOTPCREL(%rip), %rax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r14d
	movq	_XMAC_PFC_CTRL_HI_REG_PFC_STATS_EN@GOTPCREL(%rip), %rax
	movq	_XMAC_PFC_CTRL_HI_REG_RX_PFC_EN@GOTPCREL(%rip), %rcx
	movq	_XMAC_PFC_CTRL_HI_REG_TX_PFC_EN@GOTPCREL(%rip), %rdx
	movq	_XMAC_PFC_CTRL_HI_REG_FORCE_PFC_XON@GOTPCREL(%rip), %rbx
	orl	(%rax), %r14d
	orl	(%rcx), %r14d
	orl	(%rdx), %r14d
	orl	(%rbx), %r14d
	orl	$2, %r14d
	movq	_XMAC_REG_PAUSE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%r13d, %esi
	movl	$98304, %r12d                   ## imm = 0x18000
	movq	%r15, %rdi
	movl	$98304, %edx                    ## imm = 0x18000
	callq	_REG_WR
	movq	_XMAC_REG_PFC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%r13d, %esi
	movq	%r15, %rdi
	movl	$-32768, %edx                   ## imm = 0x8000
	callq	_REG_WR
	movq	_XMAC_REG_PFC_CTRL_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%r13d, %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_REG_WR
	movl	(%rbx), %ebx
	notl	%ebx
	andl	%r14d, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_4:
	movl	(%rsi), %eax
	movq	_BNX2X_FLOW_CTRL_RX@GOTPCREL(%rip), %rcx
	movq	_XMAC_PAUSE_CTRL_REG_RX_PAUSE_EN@GOTPCREL(%rip), %rdx
	movl	$98304, %esi                    ## imm = 0x18000
	movl	(%rdx), %r12d
	orl	%esi, %r12d
	testl	%eax, (%rcx)
	cmovel	%esi, %r12d
	movq	_BNX2X_FLOW_CTRL_TX@GOTPCREL(%rip), %rcx
	movl	$2, %ebx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:
	movq	_XMAC_PAUSE_CTRL_REG_TX_PAUSE_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_7:
	movq	_XMAC_REG_PAUSE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%r13d, %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_REG_WR
	movq	_XMAC_REG_PFC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%r13d, %esi
	movq	%r15, %rdi
	movl	$-32768, %edx                   ## imm = 0x8000
	callq	_REG_WR
	movq	_XMAC_REG_PFC_CTRL_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%r13d, %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_REG_WR
	movq	_XMAC_REG_CTRL_SA_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%r13d, %esi
	movq	8(%r14), %rax
	movl	8(%rax), %ecx
	movl	12(%rax), %edi
	shll	$24, %ecx
	shll	$16, %edi
	orl	%ecx, %edi
	movl	16(%rax), %edx
	shll	$8, %edx
	orl	%edi, %edx
	orl	20(%rax), %edx
	movq	%r15, %rdi
	callq	_REG_WR
	movq	_XMAC_REG_CTRL_SA_HI@GOTPCREL(%rip), %rax
	addl	(%rax), %r13d
	movq	8(%r14), %rax
	movl	(%rax), %edx
	shll	$8, %edx
	orl	4(%rax), %edx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_REG_WR
	movl	$30, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GRCBASE_XMAC1,4,2              ## @GRCBASE_XMAC1
	.comm	_GRCBASE_XMAC0,4,2              ## @GRCBASE_XMAC0
	.comm	_FEATURE_CONFIG_PFC_ENABLED,4,2 ## @FEATURE_CONFIG_PFC_ENABLED
	.comm	_BNX2X_FLOW_CTRL_RX,4,2         ## @BNX2X_FLOW_CTRL_RX
	.comm	_XMAC_PAUSE_CTRL_REG_RX_PAUSE_EN,4,2 ## @XMAC_PAUSE_CTRL_REG_RX_PAUSE_EN
	.comm	_BNX2X_FLOW_CTRL_TX,4,2         ## @BNX2X_FLOW_CTRL_TX
	.comm	_XMAC_PAUSE_CTRL_REG_TX_PAUSE_EN,4,2 ## @XMAC_PAUSE_CTRL_REG_TX_PAUSE_EN
	.comm	_XMAC_PFC_CTRL_HI_REG_PFC_REFRESH_EN,4,2 ## @XMAC_PFC_CTRL_HI_REG_PFC_REFRESH_EN
	.comm	_XMAC_PFC_CTRL_HI_REG_PFC_STATS_EN,4,2 ## @XMAC_PFC_CTRL_HI_REG_PFC_STATS_EN
	.comm	_XMAC_PFC_CTRL_HI_REG_RX_PFC_EN,4,2 ## @XMAC_PFC_CTRL_HI_REG_RX_PFC_EN
	.comm	_XMAC_PFC_CTRL_HI_REG_TX_PFC_EN,4,2 ## @XMAC_PFC_CTRL_HI_REG_TX_PFC_EN
	.comm	_XMAC_PFC_CTRL_HI_REG_FORCE_PFC_XON,4,2 ## @XMAC_PFC_CTRL_HI_REG_FORCE_PFC_XON
	.comm	_XMAC_REG_PAUSE_CTRL,4,2        ## @XMAC_REG_PAUSE_CTRL
	.comm	_XMAC_REG_PFC_CTRL,4,2          ## @XMAC_REG_PFC_CTRL
	.comm	_XMAC_REG_PFC_CTRL_HI,4,2       ## @XMAC_REG_PFC_CTRL_HI
	.comm	_XMAC_REG_CTRL_SA_LO,4,2        ## @XMAC_REG_CTRL_SA_LO
	.comm	_XMAC_REG_CTRL_SA_HI,4,2        ## @XMAC_REG_CTRL_SA_HI
	.no_dead_strip	_bnx2x_update_pfc_xmac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_update_pfc_xmac
_bnx2x_update_pfc_xmac:                 ; @bnx2x_update_pfc_xmac
	.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	x20, x0
	ldp	x8, x19, [x0, #16]
Lloh0:
	adrp	x9, _GRCBASE_XMAC1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GRCBASE_XMAC1@GOTPAGEOFF]
Lloh2:
	adrp	x10, _GRCBASE_XMAC0@GOTPAGE
Lloh3:
	ldr	x10, [x10, _GRCBASE_XMAC0@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w23, [x8]
	ldr	w8, [x0]
Lloh4:
	adrp	x9, _FEATURE_CONFIG_PFC_ENABLED@GOTPAGE
Lloh5:
	ldr	x9, [x9, _FEATURE_CONFIG_PFC_ENABLED@GOTPAGEOFF]
Lloh6:
	adrp	x26, _XMAC_REG_PAUSE_CTRL@GOTPAGE
Lloh7:
	ldr	x26, [x26, _XMAC_REG_PAUSE_CTRL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x25, _XMAC_REG_PFC_CTRL@GOTPAGE
Lloh10:
	ldr	x25, [x25, _XMAC_REG_PFC_CTRL@GOTPAGEOFF]
Lloh11:
	adrp	x24, _XMAC_REG_PFC_CTRL_HI@GOTPAGE
Lloh12:
	ldr	x24, [x24, _XMAC_REG_PFC_CTRL_HI@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh13:
	adrp	x8, _XMAC_PFC_CTRL_HI_REG_PFC_REFRESH_EN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _XMAC_PFC_CTRL_HI_REG_PFC_REFRESH_EN@GOTPAGEOFF]
Lloh15:
	adrp	x9, _XMAC_PFC_CTRL_HI_REG_PFC_STATS_EN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _XMAC_PFC_CTRL_HI_REG_PFC_STATS_EN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x10, _XMAC_PFC_CTRL_HI_REG_RX_PFC_EN@GOTPAGE
Lloh20:
	ldr	x10, [x10, _XMAC_PFC_CTRL_HI_REG_RX_PFC_EN@GOTPAGEOFF]
Lloh21:
	adrp	x11, _XMAC_PFC_CTRL_HI_REG_TX_PFC_EN@GOTPAGE
Lloh22:
	ldr	x11, [x11, _XMAC_PFC_CTRL_HI_REG_TX_PFC_EN@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
Lloh24:
	ldr	w11, [x11]
Lloh25:
	adrp	x27, _XMAC_PFC_CTRL_HI_REG_FORCE_PFC_XON@GOTPAGE
Lloh26:
	ldr	x27, [x27, _XMAC_PFC_CTRL_HI_REG_FORCE_PFC_XON@GOTPAGEOFF]
	ldr	w12, [x27]
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w8, w8, w12
	orr	w22, w8, #0x2
	ldr	w8, [x26]
	add	w1, w8, w23
	mov	w21, #98304
	mov	x0, x19
	mov	w2, #98304
	bl	_REG_WR
	ldr	w8, [x25]
	add	w1, w8, w23
	mov	x0, x19
	mov	w2, #-32768
	bl	_REG_WR
	ldr	w8, [x24]
	add	w1, w8, w23
	mov	x0, x19
	mov	x2, x22
	bl	_REG_WR
	ldr	w8, [x27]
	bic	w22, w22, w8
	b	LBB0_5
LBB0_2:
	ldr	w8, [x1]
Lloh27:
	adrp	x9, _BNX2X_FLOW_CTRL_RX@GOTPAGE
Lloh28:
	ldr	x9, [x9, _BNX2X_FLOW_CTRL_RX@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
Lloh30:
	adrp	x10, _XMAC_PAUSE_CTRL_REG_RX_PAUSE_EN@GOTPAGE
Lloh31:
	ldr	x10, [x10, _XMAC_PAUSE_CTRL_REG_RX_PAUSE_EN@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	orr	w10, w10, #0x18000
	tst	w9, w8
	mov	w9, #98304
	csel	w21, w9, w10, eq
Lloh33:
	adrp	x9, _BNX2X_FLOW_CTRL_TX@GOTPAGE
Lloh34:
	ldr	x9, [x9, _BNX2X_FLOW_CTRL_TX@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh36:
	adrp	x8, _XMAC_PAUSE_CTRL_REG_TX_PAUSE_EN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _XMAC_PAUSE_CTRL_REG_TX_PAUSE_EN@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_4:
	mov	w22, #2
LBB0_5:
	ldr	w8, [x26]
	add	w1, w8, w23
	mov	x0, x19
	mov	x2, x21
	bl	_REG_WR
	ldr	w8, [x25]
	add	w1, w8, w23
	mov	x0, x19
	mov	w2, #-32768
	bl	_REG_WR
	ldr	w8, [x24]
	add	w1, w8, w23
	mov	x0, x19
	mov	x2, x22
	bl	_REG_WR
Lloh39:
	adrp	x8, _XMAC_REG_CTRL_SA_LO@GOTPAGE
Lloh40:
	ldr	x8, [x8, _XMAC_REG_CTRL_SA_LO@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	add	w1, w8, w23
	ldr	x8, [x20, #8]
	ldp	w9, w10, [x8, #8]
	lsl	w10, w10, #16
	orr	w9, w10, w9, lsl #24
	ldp	w10, w8, [x8, #16]
	orr	w9, w9, w10, lsl #8
	orr	w2, w9, w8
	mov	x0, x19
	bl	_REG_WR
Lloh42:
	adrp	x8, _XMAC_REG_CTRL_SA_HI@GOTPAGE
Lloh43:
	ldr	x8, [x8, _XMAC_REG_CTRL_SA_HI@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	add	w1, w8, w23
	ldr	x8, [x20, #8]
	ldp	w9, w8, [x8]
	orr	w2, w8, w9, lsl #8
	mov	x0, x19
	bl	_REG_WR
	mov	w0, #30
	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
	b	_udelay
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_GRCBASE_XMAC1,4,2              ; @GRCBASE_XMAC1
	.comm	_GRCBASE_XMAC0,4,2              ; @GRCBASE_XMAC0
	.comm	_FEATURE_CONFIG_PFC_ENABLED,4,2 ; @FEATURE_CONFIG_PFC_ENABLED
	.comm	_BNX2X_FLOW_CTRL_RX,4,2         ; @BNX2X_FLOW_CTRL_RX
	.comm	_XMAC_PAUSE_CTRL_REG_RX_PAUSE_EN,4,2 ; @XMAC_PAUSE_CTRL_REG_RX_PAUSE_EN
	.comm	_BNX2X_FLOW_CTRL_TX,4,2         ; @BNX2X_FLOW_CTRL_TX
	.comm	_XMAC_PAUSE_CTRL_REG_TX_PAUSE_EN,4,2 ; @XMAC_PAUSE_CTRL_REG_TX_PAUSE_EN
	.comm	_XMAC_PFC_CTRL_HI_REG_PFC_REFRESH_EN,4,2 ; @XMAC_PFC_CTRL_HI_REG_PFC_REFRESH_EN
	.comm	_XMAC_PFC_CTRL_HI_REG_PFC_STATS_EN,4,2 ; @XMAC_PFC_CTRL_HI_REG_PFC_STATS_EN
	.comm	_XMAC_PFC_CTRL_HI_REG_RX_PFC_EN,4,2 ; @XMAC_PFC_CTRL_HI_REG_RX_PFC_EN
	.comm	_XMAC_PFC_CTRL_HI_REG_TX_PFC_EN,4,2 ; @XMAC_PFC_CTRL_HI_REG_TX_PFC_EN
	.comm	_XMAC_PFC_CTRL_HI_REG_FORCE_PFC_XON,4,2 ; @XMAC_PFC_CTRL_HI_REG_FORCE_PFC_XON
	.comm	_XMAC_REG_PAUSE_CTRL,4,2        ; @XMAC_REG_PAUSE_CTRL
	.comm	_XMAC_REG_PFC_CTRL,4,2          ; @XMAC_REG_PFC_CTRL
	.comm	_XMAC_REG_PFC_CTRL_HI,4,2       ; @XMAC_REG_PFC_CTRL_HI
	.comm	_XMAC_REG_CTRL_SA_LO,4,2        ; @XMAC_REG_CTRL_SA_LO
	.comm	_XMAC_REG_CTRL_SA_HI,4,2        ; @XMAC_REG_CTRL_SA_HI
	.no_dead_strip	_bnx2x_update_pfc_xmac
.subsections_via_symbols
