	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qca8k_port_bridge_join
_qca8k_port_bridge_join:                ## @qca8k_port_bridge_join
	.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	%rdx, %r15
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_QCA8K_CPU_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_QCA8K_NUM_PORTS@GOTPCREL(%rip), %rbx
	cmpl	$2, (%rbx)
	jl	LBB0_7
## %bb.1:
	movl	$1, %r14d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %r15
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	cmpl	(%rbx), %r14d
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_dsa_to_port
	cmpq	%r15, (%rax)
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %r12
	movl	%r14d, %edi
	callq	_QCA8K_PORT_LOOKUP_CTRL
	movl	%eax, %r15d
	movl	%r13d, %edi
	callq	_BIT
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_qca8k_reg_set
	cmpl	%r14d, %r13d
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	callq	_BIT
	orl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
	jmp	LBB0_5
LBB0_7:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_QCA8K_PORT_LOOKUP_CTRL
	movq	_QCA8K_PORT_LOOKUP_MEMBER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_qca8k_rmw
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QCA8K_CPU_PORT,4,2             ## @QCA8K_CPU_PORT
	.comm	_QCA8K_NUM_PORTS,4,2            ## @QCA8K_NUM_PORTS
	.comm	_QCA8K_PORT_LOOKUP_MEMBER,4,2   ## @QCA8K_PORT_LOOKUP_MEMBER
	.no_dead_strip	_qca8k_port_bridge_join
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qca8k_port_bridge_join
_qca8k_port_bridge_join:                ; @qca8k_port_bridge_join
	.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	x22, x2
	mov	x21, x1
	mov	x23, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _QCA8K_CPU_PORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QCA8K_CPU_PORT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_BIT
	mov	x20, x0
Lloh3:
	adrp	x26, _QCA8K_NUM_PORTS@GOTPAGE
Lloh4:
	ldr	x26, [x26, _QCA8K_NUM_PORTS@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.1:
	mov	w24, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, #1
	ldr	w8, [x26]
	cmp	w24, w8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_dsa_to_port
	ldr	x8, [x0]
	cmp	x8, x22
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	bl	_QCA8K_PORT_LOOKUP_CTRL
	mov	x25, x0
	mov	x0, x21
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x25
	bl	_qca8k_reg_set
	cmp	w21, w24
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	bl	_BIT
	orr	w20, w0, w20
	b	LBB0_2
LBB0_6:
	mov	x0, x21
	bl	_QCA8K_PORT_LOOKUP_CTRL
	mov	x1, x0
Lloh5:
	adrp	x8, _QCA8K_PORT_LOOKUP_MEMBER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QCA8K_PORT_LOOKUP_MEMBER@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_qca8k_rmw
	mov	w0, #0
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_QCA8K_CPU_PORT,4,2             ; @QCA8K_CPU_PORT
	.comm	_QCA8K_NUM_PORTS,4,2            ; @QCA8K_NUM_PORTS
	.comm	_QCA8K_PORT_LOOKUP_MEMBER,4,2   ; @QCA8K_PORT_LOOKUP_MEMBER
	.no_dead_strip	_qca8k_port_bridge_join
.subsections_via_symbols
