	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpsw_set_channels_common       ## -- Begin function cpsw_set_channels_common
	.p2align	4, 0x90
_cpsw_set_channels_common:              ## @cpsw_set_channels_common
	.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
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r13
	movq	8(%rax), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_cpsw_check_ch_settings
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_cpsw_suspend_data_pass
	movq	(%r15), %rsi
	cmpq	(%r12), %rsi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_4
## %bb.3:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_22
LBB0_4:
	cmpq	$0, 32(%r12)
	setne	%al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_5:
	movq	%r13, %r14
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movq	%r14, %rdi
	movl	$1, %edx
	movl	%r13d, %ecx
	callq	_cpsw_update_channels_res
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	movq	8(%r15), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	%r13d, %ecx
	callq	_cpsw_update_channels_res
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
LBB0_14:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	%r12, %rdi
	callq	_cpsw_fail
LBB0_22:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpl	$0, 24(%r12)
	jle	LBB0_18
## %bb.8:
	xorl	%r13d, %r13d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r13
	movslq	24(%r12), %rax
	cmpq	%rax, %r13
	jge	LBB0_18
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movq	(%rax,%r13,8), %r15
	testq	%r15, %r15
	je	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	8(%r12), %esi
	movq	%r15, %rdi
	callq	_netif_set_real_num_tx_queues
	testl	%eax, %eax
	jne	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r12), %rsi
	movq	%r15, %rdi
	callq	_netif_set_real_num_rx_queues
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_13
LBB0_18:
	movq	%r12, %rdi
	callq	_cpsw_split_res
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_20
## %bb.19:
	movq	%r12, %rdi
	callq	_cpsw_destroy_xdp_rxqs
	movq	%r12, %rdi
	callq	_cpsw_create_xdp_rxqs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
LBB0_20:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_cpsw_resume_data_pass
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.21:
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_12:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
LBB0_13:
	movl	(%r14), %edi
	callq	_dev_err
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot set real number of tx queues\n"

L_.str.1:                               ## @.str.1
	.asciz	"cannot set real number of rx queues\n"

L_.str.2:                               ## @.str.2
	.asciz	"cannot update channels number, closing device\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpsw_set_channels_common       ; -- Begin function cpsw_set_channels_common
	.p2align	2
_cpsw_set_channels_common:              ; @cpsw_set_channels_common
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x2
	mov	x24, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	mov	x1, x24
	bl	_cpsw_check_ch_settings
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_cpsw_suspend_data_pass
	ldr	x1, [x24]
	ldr	x8, [x19]
	cmp	x1, x8
	b.ne	LBB0_4
; %bb.2:
	mov	w25, #0
	b	LBB0_5
LBB0_3:
	mov	x22, x0
	b	LBB0_8
LBB0_4:
	ldr	x8, [x19, #32]
	cmp	x8, #0
	cset	w25, ne
LBB0_5:
	mov	x0, x20
	mov	w2, #1
	mov	x3, x23
	bl	_cpsw_update_channels_res
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	x1, [x24, #8]
	mov	x0, x20
	mov	w2, #0
	mov	x3, x23
	bl	_cpsw_update_channels_res
	mov	x22, x0
	cbz	w0, LBB0_9
LBB0_7:
	ldr	w0, [x20]
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	bl	_cpsw_fail
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w8, [x19, #24]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.10:
	mov	x26, #0
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
Lloh4:
	adrp	x27, l_.str.1@PAGE
Lloh5:
	add	x27, x27, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x19, #24]
	cmp	x26, x8
	b.ge	LBB0_17
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x24, [x8, x26, lsl #3]
	cbz	x24, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x24
	bl	_netif_running
	cbz	x0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w1, [x19, #8]
	mov	x0, x24
	bl	_netif_set_real_num_tx_queues
	cbnz	w0, LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x1, [x19]
	mov	x0, x24
	bl	_netif_set_real_num_rx_queues
	cbz	w0, LBB0_11
; %bb.16:
	mov	x22, x0
	mov	x23, x27
	b	LBB0_21
LBB0_17:
	mov	x0, x19
	bl	_cpsw_split_res
	cbz	w25, LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_cpsw_destroy_xdp_rxqs
	mov	x0, x19
	bl	_cpsw_create_xdp_rxqs
	mov	x22, x0
	cbnz	w0, LBB0_7
LBB0_19:
	mov	x0, x21
	bl	_cpsw_resume_data_pass
	mov	x22, x0
	cbnz	w0, LBB0_7
	b	LBB0_8
LBB0_20:
	mov	x22, x0
LBB0_21:
	ldr	w0, [x20]
	mov	x1, x23
	bl	_dev_err
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot set real number of tx queues\n"

l_.str.1:                               ; @.str.1
	.asciz	"cannot set real number of rx queues\n"

l_.str.2:                               ; @.str.2
	.asciz	"cannot update channels number, closing device\n"

.subsections_via_symbols
