	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_xgmac_set_mss
_xgene_xgmac_set_mss:                   ## @xgene_xgmac_set_mss
	.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
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	cmpl	$2, %edx
	setge	%bl
	shlq	$2, %rbx
	movq	_XG_TSIF_MSS_REG0_ADDR@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	leaq	-44(%rbp), %rdx
	callq	_xgene_enet_rd_csr
	movq	_TSO_MSS1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testb	$1, %r12b
	jne	LBB0_2
## %bb.1:
	movl	-44(%rbp), %esi
	movq	_TSO_MSS1_POS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %esi
	callq	_SET_VAL
	movl	%eax, %r12d
	movq	_TSO_MSS0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_SET_VAL
	orl	%r12d, %eax
	jmp	LBB0_3
LBB0_2:
	movl	%r15d, %esi
	callq	_SET_VAL
	movl	%eax, %r15d
	movq	_TSO_MSS0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %esi
	callq	_SET_VAL
	orl	%r15d, %eax
LBB0_3:
	movl	%eax, -44(%rbp)
	addq	(%r13), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_xgene_enet_wr_csr
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XG_TSIF_MSS_REG0_ADDR,8,3      ## @XG_TSIF_MSS_REG0_ADDR
	.comm	_TSO_MSS1,4,2                   ## @TSO_MSS1
	.comm	_TSO_MSS1_POS,4,2               ## @TSO_MSS1_POS
	.comm	_TSO_MSS0,4,2                   ## @TSO_MSS0
	.no_dead_strip	_xgene_xgmac_set_mss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_xgmac_set_mss
_xgene_xgmac_set_mss:                   ; @xgene_xgmac_set_mss
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	cmp	w2, #1
	cset	w8, gt
	lsl	x22, x8, #2
Lloh0:
	adrp	x23, _XG_TSIF_MSS_REG0_ADDR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _XG_TSIF_MSS_REG0_ADDR@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x1, x8, x22
	add	x2, sp, #12
	bl	_xgene_enet_rd_csr
Lloh2:
	adrp	x8, _TSO_MSS1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TSO_MSS1@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	tbnz	w21, #0, LBB0_2
; %bb.1:
	ldr	w8, [sp, #12]
Lloh5:
	adrp	x9, _TSO_MSS1_POS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TSO_MSS1_POS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	asr	w1, w8, w9
	bl	_SET_VAL
	mov	x21, x0
Lloh8:
	adrp	x8, _TSO_MSS0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TSO_MSS0@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_SET_VAL
	orr	w2, w0, w21
	b	LBB0_3
LBB0_2:
	mov	x1, x20
	bl	_SET_VAL
	mov	x20, x0
Lloh11:
	adrp	x8, _TSO_MSS0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TSO_MSS0@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w1, [sp, #12]
	bl	_SET_VAL
	orr	w2, w0, w20
LBB0_3:
	str	w2, [sp, #12]
	ldr	x8, [x23]
	add	x1, x8, x22
	mov	x0, x19
	bl	_xgene_enet_wr_csr
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_XG_TSIF_MSS_REG0_ADDR,8,3      ; @XG_TSIF_MSS_REG0_ADDR
	.comm	_TSO_MSS1,4,2                   ; @TSO_MSS1
	.comm	_TSO_MSS1_POS,4,2               ; @TSO_MSS1_POS
	.comm	_TSO_MSS0,4,2                   ; @TSO_MSS0
	.no_dead_strip	_xgene_xgmac_set_mss
.subsections_via_symbols
