	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpsw_set_cbs
_cpsw_set_cbs:                          ## @cpsw_set_cbs
	.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, %r15
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r12
	movq	24(%rax), %r13
	movl	16(%rax), %edi
	movl	16(%r15), %esi
	callq	_netdev_txq_to_tc
	movl	%eax, %r14d
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_cpsw_tc_to_fifo
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpq	$0, 8(%r15)
	jne	LBB0_5
## %bb.3:
	movq	8(%r12), %rdx
	movslq	%eax, %rcx
	cmpl	$0, (%rdx,%rcx,4)
	je	LBB0_4
LBB0_5:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r13), %rbx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_cpsw_slave_index
	movq	(%rbx,%rax,8), %rax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	cmpq	$0, 8(%rax)
	je	LBB0_8
## %bb.7:
	movl	(%r12), %ecx
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	cmpl	%eax, %ecx
	cmovnel	%ecx, %r14d
	testl	%ecx, %ecx
	cmovel	%ecx, %r14d
	movl	%eax, (%r12)
LBB0_8:
	cmpl	$0, (%r12)
	je	LBB0_9
## %bb.10:
	movl	(%r13), %edi
	callq	_pm_runtime_get_sync
	movq	%r13, %rbx
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	cmpq	$0, 8(%r15)
	je	LBB0_13
## %bb.14:
	movl	(%r15), %r15d
	jmp	LBB0_15
LBB0_1:
	movl	4(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_21
LBB0_9:
	movl	4(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movl	$-1, %r13d
	jmp	LBB0_21
LBB0_11:
	movl	%eax, %r13d
	movl	(%rbx), %edi
	callq	_pm_runtime_put_noidle
	jmp	LBB0_21
LBB0_4:
	xorl	%r13d, %r13d
	jmp	LBB0_21
LBB0_13:
	xorl	%r15d, %r15d
LBB0_15:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_cpsw_set_fifo_rlimit
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%r14d, (%r12)
	jmp	LBB0_20
LBB0_17:
	testl	%r15d, %r15d
	je	LBB0_20
## %bb.18:
	testl	%r14d, %r14d
	je	LBB0_20
## %bb.19:
	movl	4(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_warn
LBB0_20:
	movl	(%rbx), %edi
	callq	_pm_runtime_put_sync
LBB0_21:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Last tc%d can't be rate limited"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Link speed is not known"

L_.str.2:                               ## @.str.2
	.asciz	"Speed was changed, CBS shaper speeds are changed!"

	.no_dead_strip	_cpsw_set_cbs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpsw_set_cbs
_cpsw_set_cbs:                          ; @cpsw_set_cbs
	.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, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x19, [x0, #24]
	ldr	w0, [x0, #16]
	ldr	w1, [x21, #16]
	bl	_netdev_txq_to_tc
	mov	x23, x0
	ldr	w1, [x22]
	bl	_cpsw_tc_to_fifo
	cbz	w0, LBB0_7
; %bb.1:
	mov	x22, x0
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	w8, [x8, w22, sxtw #2]
	cbz	w8, LBB0_13
LBB0_3:
	ldr	x23, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_cpsw_slave_index
	ldr	x8, [x23, x0, lsl #3]
	cbz	x8, LBB0_8
; %bb.4:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_8
; %bb.5:
	ldr	w9, [x20]
	ldr	w8, [x8]
	cmp	w9, w8
	ccmp	w9, #0, #4, ne
	csel	w24, wzr, w9, eq
	str	w8, [x20]
	ldr	w8, [x20]
	cbnz	w8, LBB0_9
LBB0_6:
	ldr	w0, [x20, #4]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	mov	w23, #-1
	b	LBB0_21
LBB0_7:
	ldr	w0, [x20, #4]
	str	x23, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_21
LBB0_8:
	mov	w24, #0
	ldr	w8, [x20]
	cbz	w8, LBB0_6
LBB0_9:
	ldr	w0, [x19]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_12
; %bb.10:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_14
; %bb.11:
	ldr	w21, [x21]
	b	LBB0_15
LBB0_12:
	mov	x23, x0
	ldr	w0, [x19]
	bl	_pm_runtime_put_noidle
	b	LBB0_21
LBB0_13:
	mov	w23, #0
	b	LBB0_21
LBB0_14:
	mov	w21, #0
LBB0_15:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_cpsw_set_fifo_rlimit
	mov	x23, x0
	cbz	w0, LBB0_17
; %bb.16:
	str	w24, [x20]
	b	LBB0_20
LBB0_17:
	cbz	w21, LBB0_20
; %bb.18:
	cbz	w24, LBB0_20
; %bb.19:
	ldr	w0, [x20, #4]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
LBB0_20:
	ldr	w0, [x19]
	bl	_pm_runtime_put_sync
LBB0_21:
	mov	x0, x23
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Last tc%d can't be rate limited"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Link speed is not known"

l_.str.2:                               ; @.str.2
	.asciz	"Speed was changed, CBS shaper speeds are changed!"

	.no_dead_strip	_cpsw_set_cbs
.subsections_via_symbols
