	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_sgmac_enable_tx_pause
_xgene_sgmac_enable_tx_pause:           ## @xgene_sgmac_enable_tx_pause
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_XGENE_ENET1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	testb	$1, 8(%rbx)
	jne	LBB0_2
## %bb.3:
	movq	_CSR_ECM_CFG_0_ADDR@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_XG_MCX_ECM_CFG_0_ADDR@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_CSR_ECM_CFG_1_ADDR@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_xgene_enet_rd_mcx_csr
	movq	_MULTI_DPF_AUTOCTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_PAUSE_XON_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.6:
	orl	%eax, %edx
	orl	%ecx, %edx
	jmp	LBB0_8
LBB0_7:
	orl	%edx, %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, %edx
LBB0_8:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xgene_enet_wr_mcx_csr          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XGENE_ENET1,8,3                ## @XGENE_ENET1
	.comm	_CSR_ECM_CFG_0_ADDR,4,2         ## @CSR_ECM_CFG_0_ADDR
	.comm	_CSR_ECM_CFG_1_ADDR,4,2         ## @CSR_ECM_CFG_1_ADDR
	.comm	_XG_MCX_ECM_CFG_0_ADDR,4,2      ## @XG_MCX_ECM_CFG_0_ADDR
	.comm	_MULTI_DPF_AUTOCTRL,4,2         ## @MULTI_DPF_AUTOCTRL
	.comm	_PAUSE_XON_EN,4,2               ## @PAUSE_XON_EN
	.no_dead_strip	_xgene_sgmac_enable_tx_pause
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_sgmac_enable_tx_pause
_xgene_sgmac_enable_tx_pause:           ; @xgene_sgmac_enable_tx_pause
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _XGENE_ENET1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XGENE_ENET1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _CSR_ECM_CFG_0_ADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CSR_ECM_CFG_0_ADDR@GOTPAGEOFF]
Lloh5:
	adrp	x9, _CSR_ECM_CFG_1_ADDR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CSR_ECM_CFG_1_ADDR@GOTPAGEOFF]
	ldrb	w10, [x19, #8]
	tst	w10, #0x1
	csel	x8, x8, x9, eq
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _XG_MCX_ECM_CFG_0_ADDR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _XG_MCX_ECM_CFG_0_ADDR@GOTPAGEOFF]
LBB0_3:
	ldr	w21, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_xgene_enet_rd_mcx_csr
Lloh9:
	adrp	x8, _MULTI_DPF_AUTOCTRL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MULTI_DPF_AUTOCTRL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _PAUSE_XON_EN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PAUSE_XON_EN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w10, w9, w8
	bic	w10, w0, w10
	orr	w8, w8, w0
	orr	w8, w8, w9
	cmp	w20, #0
	csel	w2, w10, w8, eq
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_xgene_enet_wr_mcx_csr
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_XGENE_ENET1,8,3                ; @XGENE_ENET1
	.comm	_CSR_ECM_CFG_0_ADDR,4,2         ; @CSR_ECM_CFG_0_ADDR
	.comm	_CSR_ECM_CFG_1_ADDR,4,2         ; @CSR_ECM_CFG_1_ADDR
	.comm	_XG_MCX_ECM_CFG_0_ADDR,4,2      ; @XG_MCX_ECM_CFG_0_ADDR
	.comm	_MULTI_DPF_AUTOCTRL,4,2         ; @MULTI_DPF_AUTOCTRL
	.comm	_PAUSE_XON_EN,4,2               ; @PAUSE_XON_EN
	.no_dead_strip	_xgene_sgmac_enable_tx_pause
.subsections_via_symbols
