	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qca8k_setup
_qca8k_setup:                           ## @qca8k_setup
	.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	%rdi, %r12
	movq	16(%rdi), %r15
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_dsa_is_cpu_port
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	12(%r15), %rdi
	callq	_mutex_init
	movl	8(%r12), %edi
	movq	_qca8k_regmap_config@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_devm_regmap_init
	movl	%eax, 8(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_warn
LBB0_4:
	movq	%r15, %rdi
	callq	_qca8k_setup_mdio_bus
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.5:
	movq	(%r12), %rax
	movq	_QCA8K_CPU_PORT@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_of_get_phy_mode
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	(%r14), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_qca8k_set_pad_ctrl
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	_QCA8K_PORT_STATUS_SPEED_1000@GOTPCREL(%rip), %rax
	movq	_QCA8K_PORT_STATUS_TXFLOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_QCA8K_PORT_STATUS_RXFLOW@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_QCA8K_PORT_STATUS_DUPLEX@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	(%r14), %rdi
	callq	_QCA8K_REG_PORT_STATUS
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_qca8k_write
	movq	_QCA8K_REG_GLOBAL_FW_CTRL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_QCA8K_GLOBAL_FW_CTRL0_CPU_PORT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_qca8k_reg_set
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_qca8k_port_set_status
	movq	(%r15), %rax
	movq	(%r14), %rcx
	movl	$1, (%rax,%rcx,4)
	movq	%r15, %rdi
	callq	_qca8k_mib_init
	movq	(%r14), %rdi
	callq	_QCA8K_REG_PORT_HDR_CTRL
	movq	_QCA8K_PORT_HDR_CTRL_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_QCA8K_PORT_HDR_CTRL_TX_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%edx, %esi
	shll	%cl, %esi
	movq	_QCA8K_PORT_HDR_CTRL_RX_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%esi, %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_qca8k_write
	movq	_QCA8K_NUM_PORTS@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_17
## %bb.10:
	xorl	%ebx, %ebx
	movq	_QCA8K_PORT_LOOKUP_MEMBER@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_QCA8K_PORT_LOOKUP_CTRL
	movl	(%r14), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_qca8k_rmw
	incl	%ebx
	movl	(%r12), %eax
	cmpl	%eax, %ebx
	jl	LBB0_11
## %bb.12:
	cmpl	$2, %eax
	jl	LBB0_17
## %bb.13:
	movl	$1, %ebx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jge	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_dsa_is_user_port
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_qca8k_port_set_status
	jmp	LBB0_16
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_25:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_QCA8K_REG_GLOBAL_FW_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%edi, %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	_QCA8K_GLOBAL_FW_CTRL1_IGMP_DP_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	xorl	%edi, %edi
	callq	_BIT
	movq	_QCA8K_GLOBAL_FW_CTRL1_BC_DP_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, %ebx
	xorl	%edi, %edi
	callq	_BIT
	movl	%eax, %r13d
	movq	_QCA8K_GLOBAL_FW_CTRL1_MC_DP_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r13d
	xorl	%edi, %edi
	callq	_BIT
	movq	_QCA8K_GLOBAL_FW_CTRL1_UC_DP_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, %r13d
	orl	%ebx, %r13d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_qca8k_write
	cmpl	$0, (%r12)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_24
## %bb.18:
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=1
	incl	%r14d
	addl	$16, %r12d
	movq	_QCA8K_NUM_PORTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_24
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_dsa_is_cpu_port
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_QCA8K_CPU_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_QCA8K_PORT_LOOKUP_CTRL
	movl	%eax, %r13d
	movq	_QCA8K_PORT_LOOKUP_MEMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_dsa_user_ports
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_qca8k_rmw
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_dsa_is_user_port
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	%r14d, %edi
	callq	_QCA8K_PORT_LOOKUP_CTRL
	movl	%eax, %ebx
	movq	_QCA8K_PORT_LOOKUP_MEMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_QCA8K_CPU_PORT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_BIT
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_qca8k_rmw
	movl	%r14d, %edi
	callq	_QCA8K_PORT_LOOKUP_CTRL
	movq	_QCA8K_PORT_LOOKUP_LEARN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_qca8k_reg_set
	movl	%r14d, %edi
	callq	_QCA8K_EGRESS_VLAN
	movl	%r12d, %ecx
	andb	$16, %cl
	movl	$65535, %edx                    ## imm = 0xFFFF
	shll	%cl, %edx
	movl	$1, %ebx
	shll	%cl, %ebx
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %ecx
	callq	_qca8k_rmw
	movl	%r14d, %edi
	callq	_QCA8K_REG_PORT_VLAN_CTRL0
	movl	%eax, %r13d
	movl	$1, %edi
	callq	_QCA8K_PORT_VLAN_CVID
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_QCA8K_PORT_VLAN_SVID
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	callq	_qca8k_write
	jmp	LBB0_23
LBB0_24:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_qca8k_fdb_flush
	xorl	%ebx, %ebx
	jmp	LBB0_25
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_25
LBB0_8:
	movl	%eax, %ebx
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port 0 is not the CPU port\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_qca8k_regmap_config,4,2        ## @qca8k_regmap_config
L_.str.1:                               ## @.str.1
	.asciz	"regmap initialization failed"

	.comm	_QCA8K_CPU_PORT,8,3             ## @QCA8K_CPU_PORT
L_.str.2:                               ## @.str.2
	.asciz	"Can't find phy-mode for master device\n"

	.comm	_QCA8K_PORT_STATUS_SPEED_1000,4,2 ## @QCA8K_PORT_STATUS_SPEED_1000
	.comm	_QCA8K_PORT_STATUS_TXFLOW,4,2   ## @QCA8K_PORT_STATUS_TXFLOW
	.comm	_QCA8K_PORT_STATUS_RXFLOW,4,2   ## @QCA8K_PORT_STATUS_RXFLOW
	.comm	_QCA8K_PORT_STATUS_DUPLEX,4,2   ## @QCA8K_PORT_STATUS_DUPLEX
	.comm	_QCA8K_REG_GLOBAL_FW_CTRL0,4,2  ## @QCA8K_REG_GLOBAL_FW_CTRL0
	.comm	_QCA8K_GLOBAL_FW_CTRL0_CPU_PORT_EN,4,2 ## @QCA8K_GLOBAL_FW_CTRL0_CPU_PORT_EN
	.comm	_QCA8K_PORT_HDR_CTRL_ALL,4,2    ## @QCA8K_PORT_HDR_CTRL_ALL
	.comm	_QCA8K_PORT_HDR_CTRL_TX_S,4,2   ## @QCA8K_PORT_HDR_CTRL_TX_S
	.comm	_QCA8K_PORT_HDR_CTRL_RX_S,4,2   ## @QCA8K_PORT_HDR_CTRL_RX_S
	.comm	_QCA8K_NUM_PORTS,4,2            ## @QCA8K_NUM_PORTS
	.comm	_QCA8K_PORT_LOOKUP_MEMBER,4,2   ## @QCA8K_PORT_LOOKUP_MEMBER
	.comm	_QCA8K_REG_GLOBAL_FW_CTRL1,4,2  ## @QCA8K_REG_GLOBAL_FW_CTRL1
	.comm	_QCA8K_GLOBAL_FW_CTRL1_IGMP_DP_S,4,2 ## @QCA8K_GLOBAL_FW_CTRL1_IGMP_DP_S
	.comm	_QCA8K_GLOBAL_FW_CTRL1_BC_DP_S,4,2 ## @QCA8K_GLOBAL_FW_CTRL1_BC_DP_S
	.comm	_QCA8K_GLOBAL_FW_CTRL1_MC_DP_S,4,2 ## @QCA8K_GLOBAL_FW_CTRL1_MC_DP_S
	.comm	_QCA8K_GLOBAL_FW_CTRL1_UC_DP_S,4,2 ## @QCA8K_GLOBAL_FW_CTRL1_UC_DP_S
	.comm	_QCA8K_PORT_LOOKUP_LEARN,4,2    ## @QCA8K_PORT_LOOKUP_LEARN
	.no_dead_strip	_qca8k_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qca8k_setup
_qca8k_setup:                           ; @qca8k_setup
	.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	x20, x0
	ldr	x19, [x0, #16]
	mov	w1, #0
	bl	_dsa_is_cpu_port
	cbz	x0, LBB0_14
; %bb.1:
	add	x0, x19, #12
	bl	_mutex_init
	ldr	w0, [x20, #8]
Lloh0:
	adrp	x3, _qca8k_regmap_config@GOTPAGE
Lloh1:
	ldr	x3, [x3, _qca8k_regmap_config@GOTPAGEOFF]
	mov	x1, #0
	mov	x2, x19
	bl	_devm_regmap_init
	str	w0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
LBB0_3:
	mov	x0, x19
	bl	_qca8k_setup_mdio_bus
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.4:
	ldr	x8, [x20]
Lloh4:
	adrp	x24, _QCA8K_CPU_PORT@GOTPAGE
Lloh5:
	ldr	x24, [x24, _QCA8K_CPU_PORT@GOTPAGEOFF]
	ldr	x9, [x24]
	ldr	w0, [x8, x9, lsl #2]
	bl	_of_get_phy_mode
	mov	x21, x0
	tbnz	w0, #31, LBB0_24
; %bb.5:
	ldr	x1, [x24]
	mov	x0, x19
	mov	x2, x21
	bl	_qca8k_set_pad_ctrl
	tbnz	w0, #31, LBB0_25
; %bb.6:
Lloh6:
	adrp	x8, _QCA8K_PORT_STATUS_SPEED_1000@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QCA8K_PORT_STATUS_SPEED_1000@GOTPAGEOFF]
Lloh8:
	adrp	x9, _QCA8K_PORT_STATUS_TXFLOW@GOTPAGE
Lloh9:
	ldr	x9, [x9, _QCA8K_PORT_STATUS_TXFLOW@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _QCA8K_PORT_STATUS_RXFLOW@GOTPAGE
Lloh13:
	ldr	x9, [x9, _QCA8K_PORT_STATUS_RXFLOW@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _QCA8K_PORT_STATUS_DUPLEX@GOTPAGE
Lloh16:
	ldr	x9, [x9, _QCA8K_PORT_STATUS_DUPLEX@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w21, w8, w9
	ldr	x0, [x24]
	bl	_QCA8K_REG_PORT_STATUS
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_qca8k_write
Lloh18:
	adrp	x8, _QCA8K_REG_GLOBAL_FW_CTRL0@GOTPAGE
Lloh19:
	ldr	x8, [x8, _QCA8K_REG_GLOBAL_FW_CTRL0@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _QCA8K_GLOBAL_FW_CTRL0_CPU_PORT_EN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _QCA8K_GLOBAL_FW_CTRL0_CPU_PORT_EN@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_qca8k_reg_set
	ldr	w1, [x24]
	mov	w21, #1
	mov	x0, x19
	mov	w2, #1
	bl	_qca8k_port_set_status
	ldr	x8, [x19]
	ldr	x9, [x24]
	str	w21, [x8, x9, lsl #2]
	mov	x0, x19
	bl	_qca8k_mib_init
	ldr	x0, [x24]
	bl	_QCA8K_REG_PORT_HDR_CTRL
	mov	x1, x0
Lloh24:
	adrp	x8, _QCA8K_PORT_HDR_CTRL_ALL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _QCA8K_PORT_HDR_CTRL_ALL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _QCA8K_PORT_HDR_CTRL_TX_S@GOTPAGE
Lloh28:
	ldr	x9, [x9, _QCA8K_PORT_HDR_CTRL_TX_S@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	lsl	w9, w8, w9
Lloh30:
	adrp	x10, _QCA8K_PORT_HDR_CTRL_RX_S@GOTPAGE
Lloh31:
	ldr	x10, [x10, _QCA8K_PORT_HDR_CTRL_RX_S@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	orr	w2, w8, w9
	mov	x0, x19
	bl	_qca8k_write
Lloh33:
	adrp	x25, _QCA8K_NUM_PORTS@GOTPAGE
Lloh34:
	ldr	x25, [x25, _QCA8K_NUM_PORTS@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh35:
	adrp	x26, _QCA8K_PORT_LOOKUP_MEMBER@GOTPAGE
Lloh36:
	ldr	x26, [x26, _QCA8K_PORT_LOOKUP_MEMBER@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.7:
	mov	w21, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_QCA8K_PORT_LOOKUP_CTRL
	mov	x1, x0
	ldr	w2, [x26]
	mov	x0, x19
	mov	w3, #0
	bl	_qca8k_rmw
	add	w21, w21, #1
	ldr	w8, [x25]
	cmp	w21, w8
	b.lt	LBB0_8
; %bb.9:
	cmp	w8, #1
	b.le	LBB0_16
; %bb.10:
	mov	w21, #1
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w21, w21, #1
	ldr	w8, [x25]
	cmp	w21, w8
	b.ge	LBB0_16
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_dsa_is_user_port
	cbz	x0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_qca8k_port_set_status
	b	LBB0_11
LBB0_14:
Lloh37:
	adrp	x0, l_.str@PAGE
Lloh38:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh39:
	adrp	x8, _EINVAL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_15:
	mov	x0, x21
	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_16:
Lloh42:
	adrp	x8, _QCA8K_REG_GLOBAL_FW_CTRL1@GOTPAGE
Lloh43:
	ldr	x8, [x8, _QCA8K_REG_GLOBAL_FW_CTRL1@GOTPAGEOFF]
Lloh44:
	ldr	w21, [x8]
	mov	x0, #0
	bl	_BIT
Lloh45:
	adrp	x8, _QCA8K_GLOBAL_FW_CTRL1_IGMP_DP_S@GOTPAGE
Lloh46:
	ldr	x8, [x8, _QCA8K_GLOBAL_FW_CTRL1_IGMP_DP_S@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	lsl	w22, w0, w8
	mov	x0, #0
	bl	_BIT
Lloh48:
	adrp	x8, _QCA8K_GLOBAL_FW_CTRL1_BC_DP_S@GOTPAGE
Lloh49:
	ldr	x8, [x8, _QCA8K_GLOBAL_FW_CTRL1_BC_DP_S@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	orr	w22, w8, w22
	mov	x0, #0
	bl	_BIT
Lloh51:
	adrp	x8, _QCA8K_GLOBAL_FW_CTRL1_MC_DP_S@GOTPAGE
Lloh52:
	ldr	x8, [x8, _QCA8K_GLOBAL_FW_CTRL1_MC_DP_S@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	orr	w22, w22, w8
	mov	x0, #0
	bl	_BIT
Lloh54:
	adrp	x8, _QCA8K_GLOBAL_FW_CTRL1_UC_DP_S@GOTPAGE
Lloh55:
	ldr	x8, [x8, _QCA8K_GLOBAL_FW_CTRL1_UC_DP_S@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	orr	w2, w22, w8
	mov	x0, x19
	mov	x1, x21
	bl	_qca8k_write
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.17:
	mov	w27, #0
	mov	w21, #0
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	w21, w21, #1
	ldr	w8, [x25]
	add	w27, w27, #16
	cmp	w21, w8
	b.ge	LBB0_23
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_dsa_is_cpu_port
	cbz	x0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w0, [x24]
	bl	_QCA8K_PORT_LOOKUP_CTRL
	mov	x22, x0
	ldr	w23, [x26]
	mov	x0, x20
	bl	_dsa_user_ports
	mov	x3, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_qca8k_rmw
LBB0_21:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_dsa_is_user_port
	cbz	x0, LBB0_18
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	and	w28, w27, #0x10
	mov	x0, x21
	bl	_QCA8K_PORT_LOOKUP_CTRL
	mov	x22, x0
	ldr	w23, [x26]
	ldr	x0, [x24]
	bl	_BIT
	mov	x3, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_qca8k_rmw
	mov	x0, x21
	bl	_QCA8K_PORT_LOOKUP_CTRL
	mov	x1, x0
Lloh57:
	adrp	x8, _QCA8K_PORT_LOOKUP_LEARN@GOTPAGE
Lloh58:
	ldr	x8, [x8, _QCA8K_PORT_LOOKUP_LEARN@GOTPAGEOFF]
Lloh59:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_qca8k_reg_set
	mov	x0, x21
	bl	_QCA8K_EGRESS_VLAN
	mov	x1, x0
	mov	w8, #65535
	lsl	w2, w8, w28
	mov	w8, #1
	lsl	w3, w8, w28
	mov	x0, x19
	bl	_qca8k_rmw
	mov	x0, x21
	bl	_QCA8K_REG_PORT_VLAN_CTRL0
	mov	x22, x0
	mov	w0, #1
	bl	_QCA8K_PORT_VLAN_CVID
	mov	x23, x0
	mov	w0, #1
	bl	_QCA8K_PORT_VLAN_SVID
	orr	w2, w0, w23
	mov	x0, x19
	mov	x1, x22
	bl	_qca8k_write
	b	LBB0_18
LBB0_23:
	mov	x0, x19
	bl	_qca8k_fdb_flush
	mov	w21, #0
	b	LBB0_15
LBB0_24:
Lloh60:
	adrp	x0, l_.str.2@PAGE
Lloh61:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	b	LBB0_15
LBB0_25:
	mov	x21, x0
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port 0 is not the CPU port\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_qca8k_regmap_config,4,2        ; @qca8k_regmap_config
l_.str.1:                               ; @.str.1
	.asciz	"regmap initialization failed"

	.comm	_QCA8K_CPU_PORT,8,3             ; @QCA8K_CPU_PORT
l_.str.2:                               ; @.str.2
	.asciz	"Can't find phy-mode for master device\n"

	.comm	_QCA8K_PORT_STATUS_SPEED_1000,4,2 ; @QCA8K_PORT_STATUS_SPEED_1000
	.comm	_QCA8K_PORT_STATUS_TXFLOW,4,2   ; @QCA8K_PORT_STATUS_TXFLOW
	.comm	_QCA8K_PORT_STATUS_RXFLOW,4,2   ; @QCA8K_PORT_STATUS_RXFLOW
	.comm	_QCA8K_PORT_STATUS_DUPLEX,4,2   ; @QCA8K_PORT_STATUS_DUPLEX
	.comm	_QCA8K_REG_GLOBAL_FW_CTRL0,4,2  ; @QCA8K_REG_GLOBAL_FW_CTRL0
	.comm	_QCA8K_GLOBAL_FW_CTRL0_CPU_PORT_EN,4,2 ; @QCA8K_GLOBAL_FW_CTRL0_CPU_PORT_EN
	.comm	_QCA8K_PORT_HDR_CTRL_ALL,4,2    ; @QCA8K_PORT_HDR_CTRL_ALL
	.comm	_QCA8K_PORT_HDR_CTRL_TX_S,4,2   ; @QCA8K_PORT_HDR_CTRL_TX_S
	.comm	_QCA8K_PORT_HDR_CTRL_RX_S,4,2   ; @QCA8K_PORT_HDR_CTRL_RX_S
	.comm	_QCA8K_NUM_PORTS,4,2            ; @QCA8K_NUM_PORTS
	.comm	_QCA8K_PORT_LOOKUP_MEMBER,4,2   ; @QCA8K_PORT_LOOKUP_MEMBER
	.comm	_QCA8K_REG_GLOBAL_FW_CTRL1,4,2  ; @QCA8K_REG_GLOBAL_FW_CTRL1
	.comm	_QCA8K_GLOBAL_FW_CTRL1_IGMP_DP_S,4,2 ; @QCA8K_GLOBAL_FW_CTRL1_IGMP_DP_S
	.comm	_QCA8K_GLOBAL_FW_CTRL1_BC_DP_S,4,2 ; @QCA8K_GLOBAL_FW_CTRL1_BC_DP_S
	.comm	_QCA8K_GLOBAL_FW_CTRL1_MC_DP_S,4,2 ; @QCA8K_GLOBAL_FW_CTRL1_MC_DP_S
	.comm	_QCA8K_GLOBAL_FW_CTRL1_UC_DP_S,4,2 ; @QCA8K_GLOBAL_FW_CTRL1_UC_DP_S
	.comm	_QCA8K_PORT_LOOKUP_LEARN,4,2    ; @QCA8K_PORT_LOOKUP_LEARN
	.no_dead_strip	_qca8k_setup
.subsections_via_symbols
