	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_set_xmac_rxtx
_bnx2x_set_xmac_rxtx:                   ## @bnx2x_set_xmac_rxtx
	.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	%rsi, %rbx
	movq	(%rdi), %r14
	movq	8(%rdi), %r12
	testq	%r12, %r12
	jne	LBB0_1
## %bb.2:
	movq	_GRCBASE_XMAC0@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_GRCBASE_XMAC1@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r13d
	movq	_MISC_REG_RESET_REG_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_REG_RD
	movq	_MISC_REGISTERS_RESET_REG_2_XMAC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.4:
	movq	_XMAC_REG_PFC_CTRL_HI@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	addl	%r13d, %esi
	movq	%r14, %rdi
	callq	_REG_RD
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %ebx
	movl	(%r15), %esi
	addl	%r13d, %esi
	movl	%eax, %edx
	andl	$-3, %edx
	movq	%r14, %rdi
	callq	_REG_WR
	movl	(%r15), %esi
	addl	%r13d, %esi
	orl	$2, %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_REG_WR
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	callq	_DP
	movq	_XMAC_REG_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	addl	%r13d, %esi
	movq	%r14, %rdi
	callq	_REG_RD
	movq	_XMAC_CTRL_REG_TX_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_XMAC_CTRL_REG_RX_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_6
## %bb.5:
	orl	%eax, %edx
	orl	%ecx, %edx
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	orl	%edx, %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, %edx
LBB0_7:
	addl	(%rbx), %r13d
	movq	%r14, %rdi
	movl	%r13d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_WR                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GRCBASE_XMAC1,4,2              ## @GRCBASE_XMAC1
	.comm	_GRCBASE_XMAC0,4,2              ## @GRCBASE_XMAC0
	.comm	_MISC_REG_RESET_REG_2,4,2       ## @MISC_REG_RESET_REG_2
	.comm	_MISC_REGISTERS_RESET_REG_2_XMAC,4,2 ## @MISC_REGISTERS_RESET_REG_2_XMAC
	.comm	_XMAC_REG_PFC_CTRL_HI,4,2       ## @XMAC_REG_PFC_CTRL_HI
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disable XMAC on port %x\n"

	.comm	_XMAC_REG_CTRL,4,2              ## @XMAC_REG_CTRL
	.comm	_XMAC_CTRL_REG_TX_EN,4,2        ## @XMAC_CTRL_REG_TX_EN
	.comm	_XMAC_CTRL_REG_RX_EN,4,2        ## @XMAC_CTRL_REG_RX_EN
	.no_dead_strip	_bnx2x_set_xmac_rxtx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_set_xmac_rxtx
_bnx2x_set_xmac_rxtx:                   ; @bnx2x_set_xmac_rxtx
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	ldp	x19, x21, [x0]
Lloh0:
	adrp	x8, _GRCBASE_XMAC1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GRCBASE_XMAC1@GOTPAGEOFF]
Lloh2:
	adrp	x9, _GRCBASE_XMAC0@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GRCBASE_XMAC0@GOTPAGEOFF]
	cmp	x21, #0
	csel	x8, x9, x8, eq
	ldr	w23, [x8]
Lloh4:
	adrp	x8, _MISC_REG_RESET_REG_2@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MISC_REG_RESET_REG_2@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_REG_RD
Lloh7:
	adrp	x8, _MISC_REGISTERS_RESET_REG_2_XMAC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MISC_REGISTERS_RESET_REG_2_XMAC@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh10:
	adrp	x24, _XMAC_REG_PFC_CTRL_HI@GOTPAGE
Lloh11:
	ldr	x24, [x24, _XMAC_REG_PFC_CTRL_HI@GOTPAGEOFF]
	ldr	w8, [x24]
	add	w1, w8, w23
	mov	x0, x19
	bl	_REG_RD
	mov	x22, x0
	ldr	w8, [x24]
	add	w1, w8, w23
	and	w2, w0, #0xfffffffd
	mov	x0, x19
	bl	_REG_WR
	ldr	w8, [x24]
	add	w1, w8, w23
	orr	w2, w22, #0x2
	mov	x0, x19
	bl	_REG_WR
Lloh12:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_DP
Lloh17:
	adrp	x21, _XMAC_REG_CTRL@GOTPAGE
Lloh18:
	ldr	x21, [x21, _XMAC_REG_CTRL@GOTPAGEOFF]
	ldr	w8, [x21]
	add	w1, w8, w23
	mov	x0, x19
	bl	_REG_RD
Lloh19:
	adrp	x8, _XMAC_CTRL_REG_TX_EN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _XMAC_CTRL_REG_TX_EN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _XMAC_CTRL_REG_RX_EN@GOTPAGE
Lloh23:
	ldr	x9, [x9, _XMAC_CTRL_REG_RX_EN@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w10, w9, w8
	bic	w10, w0, w10
	orr	w8, w8, w0
	orr	w8, w8, w9
	cmp	x20, #0
	csel	w2, w10, w8, eq
	ldr	w8, [x21]
	add	w1, w8, w23
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_REG_WR
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GRCBASE_XMAC1,4,2              ; @GRCBASE_XMAC1
	.comm	_GRCBASE_XMAC0,4,2              ; @GRCBASE_XMAC0
	.comm	_MISC_REG_RESET_REG_2,4,2       ; @MISC_REG_RESET_REG_2
	.comm	_MISC_REGISTERS_RESET_REG_2_XMAC,4,2 ; @MISC_REGISTERS_RESET_REG_2_XMAC
	.comm	_XMAC_REG_PFC_CTRL_HI,4,2       ; @XMAC_REG_PFC_CTRL_HI
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disable XMAC on port %x\n"

	.comm	_XMAC_REG_CTRL,4,2              ; @XMAC_REG_CTRL
	.comm	_XMAC_CTRL_REG_TX_EN,4,2        ; @XMAC_CTRL_REG_TX_EN
	.comm	_XMAC_CTRL_REG_RX_EN,4,2        ; @XMAC_CTRL_REG_RX_EN
	.no_dead_strip	_bnx2x_set_xmac_rxtx
.subsections_via_symbols
