	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_gmac_max_rx_size_set
_mvpp2_gmac_max_rx_size_set:            ## @mvpp2_gmac_max_rx_size_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_MVPP2_GMAC_CTRL_0_REG@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_MVPP2_GMAC_MAX_RX_SIZE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%rbx), %eax
	movq	_MVPP2_MH_SIZE@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	movq	_MVPP2_GMAC_MAX_RX_SIZE_OFFS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	orl	%edx, %edi
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP2_GMAC_CTRL_0_REG,8,3      ## @MVPP2_GMAC_CTRL_0_REG
	.comm	_MVPP2_GMAC_MAX_RX_SIZE_MASK,4,2 ## @MVPP2_GMAC_MAX_RX_SIZE_MASK
	.comm	_MVPP2_MH_SIZE,4,2              ## @MVPP2_MH_SIZE
	.comm	_MVPP2_GMAC_MAX_RX_SIZE_OFFS,4,2 ## @MVPP2_GMAC_MAX_RX_SIZE_OFFS
	.no_dead_strip	_mvpp2_gmac_max_rx_size_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_gmac_max_rx_size_set
_mvpp2_gmac_max_rx_size_set:            ; @mvpp2_gmac_max_rx_size_set
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x20, _MVPP2_GMAC_CTRL_0_REG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MVPP2_GMAC_CTRL_0_REG@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _MVPP2_GMAC_MAX_RX_SIZE_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MVPP2_GMAC_MAX_RX_SIZE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldr	w9, [x19]
Lloh5:
	adrp	x10, _MVPP2_MH_SIZE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MVPP2_MH_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	sub	w9, w9, w10
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
Lloh8:
	adrp	x10, _MVPP2_GMAC_MAX_RX_SIZE_OFFS@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MVPP2_GMAC_MAX_RX_SIZE_OFFS@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w0, w9, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP2_GMAC_CTRL_0_REG,8,3      ; @MVPP2_GMAC_CTRL_0_REG
	.comm	_MVPP2_GMAC_MAX_RX_SIZE_MASK,4,2 ; @MVPP2_GMAC_MAX_RX_SIZE_MASK
	.comm	_MVPP2_MH_SIZE,4,2              ; @MVPP2_MH_SIZE
	.comm	_MVPP2_GMAC_MAX_RX_SIZE_OFFS,4,2 ; @MVPP2_GMAC_MAX_RX_SIZE_OFFS
	.no_dead_strip	_mvpp2_gmac_max_rx_size_set
.subsections_via_symbols
