	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpsw_set_mqprio
_cpsw_set_mqprio:                       ## @cpsw_set_mqprio
	.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
	subq	$24, %rsp
	.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, %r12
	callq	_netdev_priv
	movq	%rax, %r14
	movl	8(%r15), %r13d
	movq	_CPSW_TC_NUM@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jg	LBB0_1
## %bb.2:
	movq	(%r15), %rax
	movq	_TC_MQPRIO_MODE_DCB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	8(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rax), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	testq	%r13, %r13
	je	LBB0_6
## %bb.7:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_cpsw_tc_to_fifo
	movl	%eax, %r14d
	movq	16(%r15), %rax
	movl	4(%rax), %edi
	movl	%r13d, %esi
	callq	_cpsw_tc_to_fifo
	movl	%eax, %ebx
	shll	$4, %ebx
	orl	%r14d, %ebx
	movq	16(%r15), %rax
	movl	8(%rax), %edi
	movl	%r13d, %esi
	callq	_cpsw_tc_to_fifo
	movl	%eax, %r14d
	shll	$8, %r14d
	movq	16(%r15), %rax
	movl	12(%rax), %edi
	movl	%r13d, %esi
	callq	_cpsw_tc_to_fifo
	shll	$12, %eax
	orl	%r14d, %eax
	orl	%ebx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	16(%r15), %rax
	movl	16(%rax), %edi
	movl	%r13d, %esi
	callq	_cpsw_tc_to_fifo
	movl	%eax, %r14d
	shll	$16, %r14d
	movq	16(%r15), %rax
	movl	20(%rax), %edi
	movl	%r13d, %esi
	callq	_cpsw_tc_to_fifo
	movl	%eax, %ebx
	shll	$20, %ebx
	orl	%r14d, %ebx
	movq	16(%r15), %rax
	movl	24(%rax), %edi
	movl	%r13d, %esi
	callq	_cpsw_tc_to_fifo
	movl	%eax, %r14d
	shll	$24, %r14d
	orl	%ebx, %r14d
	orl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	movq	16(%r15), %rax
	movl	28(%rax), %edi
	movl	%r13d, %esi
	callq	_cpsw_tc_to_fifo
	shll	$28, %eax
	orl	%r14d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_netdev_set_num_tc
	testl	%r13d, %r13d
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movq	32(%r15), %rcx
	movl	(%rax,%rbx,4), %edx
	movl	(%rcx,%rbx,4), %ecx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_netdev_set_tc_queue
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_9
LBB0_10:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%eax, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	callq	_pm_runtime_put_noidle
	jmp	LBB0_17
LBB0_6:
	xorl	%r13d, %r13d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_11:
	movq	40(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	callq	_netdev_reset_tc
	movq	_TX_PRIORITY_MAPPING@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	40(%r15), %rax
LBB0_13:
	movq	%r14, %rsi
	movq	%rax, (%r14)
	movq	_CPSW_VERSION_1@GOTPCREL(%rip), %rax
	movq	(%rbx), %rcx
	movq	16(%rbx), %r14
	cmpq	(%rax), %rcx
	jne	LBB0_14
## %bb.15:
	movq	_CPSW1_TX_PRI_MAP@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	_CPSW2_TX_PRI_MAP@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_cpsw_slave_index
	leaq	(%r14,%rax,4), %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	callq	_slave_write
	movl	8(%rbx), %edi
	callq	_pm_runtime_put_sync
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_CPSW_TC_NUM,4,2                ## @CPSW_TC_NUM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TC_MQPRIO_MODE_DCB,8,3         ## @TC_MQPRIO_MODE_DCB
	.comm	_TX_PRIORITY_MAPPING,4,2        ## @TX_PRIORITY_MAPPING
	.comm	_CPSW_VERSION_1,8,3             ## @CPSW_VERSION_1
	.comm	_CPSW1_TX_PRI_MAP,4,2           ## @CPSW1_TX_PRI_MAP
	.comm	_CPSW2_TX_PRI_MAP,4,2           ## @CPSW2_TX_PRI_MAP
	.no_dead_strip	_cpsw_set_mqprio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpsw_set_mqprio
_cpsw_set_mqprio:                       ; @cpsw_set_mqprio
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x22, x0
	bl	_netdev_priv
	ldr	w23, [x21, #8]
Lloh0:
	adrp	x8, _CPSW_TC_NUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPSW_TC_NUM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w23, w8
	b.gt	LBB0_9
; %bb.1:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _TC_MQPRIO_MODE_DCB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TC_MQPRIO_MODE_DCB@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.2:
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	w0, [x20, #8]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_11
; %bb.3:
	cbz	w23, LBB0_12
; %bb.4:
	ldr	x8, [x21, #16]
	ldr	w0, [x8]
	mov	x1, x23
	bl	_cpsw_tc_to_fifo
	mov	x24, x0
	ldr	x8, [x21, #16]
	ldr	w0, [x8, #4]
	mov	x1, x23
	bl	_cpsw_tc_to_fifo
	orr	w24, w24, w0, lsl #4
	ldr	x8, [x21, #16]
	ldr	w0, [x8, #8]
	mov	x1, x23
	bl	_cpsw_tc_to_fifo
	orr	w24, w24, w0, lsl #8
	ldr	x8, [x21, #16]
	ldr	w0, [x8, #12]
	mov	x1, x23
	bl	_cpsw_tc_to_fifo
	orr	w24, w24, w0, lsl #12
	ldr	x8, [x21, #16]
	ldr	w0, [x8, #16]
	mov	x1, x23
	bl	_cpsw_tc_to_fifo
	orr	w24, w24, w0, lsl #16
	ldr	x8, [x21, #16]
	ldr	w0, [x8, #20]
	mov	x1, x23
	bl	_cpsw_tc_to_fifo
	orr	w24, w24, w0, lsl #20
	ldr	x8, [x21, #16]
	ldr	w0, [x8, #24]
	mov	x1, x23
	bl	_cpsw_tc_to_fifo
	orr	w24, w24, w0, lsl #24
	ldr	x8, [x21, #16]
	ldr	w0, [x8, #28]
	mov	x1, x23
	bl	_cpsw_tc_to_fifo
	orr	w24, w24, w0, lsl #28
	mov	x0, x22
	mov	x1, x23
	bl	_netdev_set_num_tc
	cmp	w23, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x25, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x8, x25, #2
	ldp	x9, x10, [x21, #24]
	ldr	w2, [x9, x8]
	ldr	w3, [x10, x8]
	mov	x0, x22
	mov	x1, x25
	bl	_netdev_set_tc_queue
	add	x25, x25, #1
	cmp	x23, x25
	b.ne	LBB0_6
LBB0_7:
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_13
LBB0_8:
	str	x8, [x19]
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _CPSW_VERSION_1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CPSW_VERSION_1@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _CPSW1_TX_PRI_MAP@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CPSW1_TX_PRI_MAP@GOTPAGEOFF]
Lloh11:
	adrp	x11, _CPSW2_TX_PRI_MAP@GOTPAGE
Lloh12:
	ldr	x11, [x11, _CPSW2_TX_PRI_MAP@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w21, [x8]
	ldr	x22, [x20, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_cpsw_slave_index
	add	x0, x22, x0, lsl #2
	mov	x1, x24
	mov	x2, x21
	bl	_slave_write
	ldr	w0, [x20, #8]
	bl	_pm_runtime_put_sync
	mov	w24, #0
	b	LBB0_10
LBB0_9:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_10:
	mov	x0, x24
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x24, x0
	ldr	w0, [x20, #8]
	bl	_pm_runtime_put_noidle
	b	LBB0_10
LBB0_12:
	mov	w24, #0
	ldr	x8, [x21, #40]
	cbnz	x8, LBB0_8
LBB0_13:
	mov	x0, x22
	bl	_netdev_reset_tc
Lloh16:
	adrp	x8, _TX_PRIORITY_MAPPING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TX_PRIORITY_MAPPING@GOTPAGEOFF]
Lloh18:
	ldr	w24, [x8]
	ldr	x8, [x21, #40]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CPSW_TC_NUM,4,2                ; @CPSW_TC_NUM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TC_MQPRIO_MODE_DCB,8,3         ; @TC_MQPRIO_MODE_DCB
	.comm	_TX_PRIORITY_MAPPING,4,2        ; @TX_PRIORITY_MAPPING
	.comm	_CPSW_VERSION_1,8,3             ; @CPSW_VERSION_1
	.comm	_CPSW1_TX_PRI_MAP,4,2           ; @CPSW1_TX_PRI_MAP
	.comm	_CPSW2_TX_PRI_MAP,4,2           ; @CPSW2_TX_PRI_MAP
	.no_dead_strip	_cpsw_set_mqprio
.subsections_via_symbols
