	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpsw_fifo_shp_on
_cpsw_fifo_shp_on:                      ## @cpsw_fifo_shp_on
	.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, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	movq	(%r12), %rdi
	callq	_readl_relaxed
	movl	%eax, %r15d
	movq	8(%r12), %r14
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_cpsw_slave_index
	movq	_CPSW_FIFO_SHAPE_EN_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%r14,%rax,4), %eax
	leal	(%rax,%rax,2), %eax
	addl	(%rcx), %eax
	decb	%r13b
	movl	$1, %edi
	movl	%r13d, %ecx
	shll	%cl, %edi
	movl	%eax, %ecx
	shll	%cl, %edi
	movl	%edi, %eax
	orl	%r15d, %eax
	notl	%edi
	andl	%r15d, %edi
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	cmovnel	%eax, %edi
	movq	(%r12), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel_relaxed                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CPSW_FIFO_SHAPE_EN_SHIFT,4,2   ## @CPSW_FIFO_SHAPE_EN_SHIFT
	.no_dead_strip	_cpsw_fifo_shp_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpsw_fifo_shp_on
_cpsw_fifo_shp_on:                      ; @cpsw_fifo_shp_on
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0]
	ldr	x0, [x22]
	bl	_readl_relaxed
	mov	x23, x0
	ldr	x24, [x22, #8]
	mov	x0, x22
	mov	x1, x21
	bl	_cpsw_slave_index
Lloh0:
	adrp	x8, _CPSW_FIFO_SHAPE_EN_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPSW_FIFO_SHAPE_EN_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x24, x0, lsl #2]
	add	w9, w9, w9, lsl #1
	add	w8, w9, w8
	sub	w9, w20, #1
	mov	w10, #1
	lsl	w9, w10, w9
	lsl	w8, w9, w8
	orr	w9, w8, w23
	bic	w8, w23, w8
	cmp	w19, #0
	csel	w0, w8, w9, eq
	ldr	x1, [x22]
	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	_writel_relaxed
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CPSW_FIFO_SHAPE_EN_SHIFT,4,2   ; @CPSW_FIFO_SHAPE_EN_SHIFT
	.no_dead_strip	_cpsw_fifo_shp_on
.subsections_via_symbols
