	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qca8k_port_stp_state_set
_qca8k_port_stp_state_set:              ## @qca8k_port_stp_state_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %r14
	addl	$-128, %edx
	cmpl	$4, %edx
	ja	LBB0_1
## %bb.2:
	movslq	%edx, %rax
	leaq	l_switch.table.qca8k_port_stp_state_set(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_QCA8K_PORT_LOOKUP_STATE_FORWARD@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	movl	%esi, %edi
	callq	_QCA8K_PORT_LOOKUP_CTRL
	movq	_QCA8K_PORT_LOOKUP_STATE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_qca8k_rmw                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QCA8K_PORT_LOOKUP_STATE_DISABLED,4,2 ## @QCA8K_PORT_LOOKUP_STATE_DISABLED
	.comm	_QCA8K_PORT_LOOKUP_STATE_BLOCKING,4,2 ## @QCA8K_PORT_LOOKUP_STATE_BLOCKING
	.comm	_QCA8K_PORT_LOOKUP_STATE_LISTENING,4,2 ## @QCA8K_PORT_LOOKUP_STATE_LISTENING
	.comm	_QCA8K_PORT_LOOKUP_STATE_LEARNING,4,2 ## @QCA8K_PORT_LOOKUP_STATE_LEARNING
	.comm	_QCA8K_PORT_LOOKUP_STATE_FORWARD,4,2 ## @QCA8K_PORT_LOOKUP_STATE_FORWARD
	.comm	_QCA8K_PORT_LOOKUP_STATE_MASK,4,2 ## @QCA8K_PORT_LOOKUP_STATE_MASK
	.no_dead_strip	_qca8k_port_stp_state_set
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.qca8k_port_stp_state_set
l_switch.table.qca8k_port_stp_state_set:
	.quad	_QCA8K_PORT_LOOKUP_STATE_LISTENING
	.quad	_QCA8K_PORT_LOOKUP_STATE_LEARNING
	.quad	_QCA8K_PORT_LOOKUP_STATE_FORWARD
	.quad	_QCA8K_PORT_LOOKUP_STATE_DISABLED
	.quad	_QCA8K_PORT_LOOKUP_STATE_BLOCKING

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qca8k_port_stp_state_set
_qca8k_port_stp_state_set:              ; @qca8k_port_stp_state_set
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	sub	w8, w2, #128
	cmp	w8, #4
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.qca8k_port_stp_state_set@PAGE
Lloh1:
	add	x9, x9, l_switch.table.qca8k_port_stp_state_set@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _QCA8K_PORT_LOOKUP_STATE_FORWARD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QCA8K_PORT_LOOKUP_STATE_FORWARD@GOTPAGEOFF]
LBB0_3:
	ldr	w20, [x8]
	mov	x0, x1
	bl	_QCA8K_PORT_LOOKUP_CTRL
	mov	x1, x0
Lloh4:
	adrp	x8, _QCA8K_PORT_LOOKUP_STATE_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _QCA8K_PORT_LOOKUP_STATE_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_qca8k_rmw
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_QCA8K_PORT_LOOKUP_STATE_DISABLED,4,2 ; @QCA8K_PORT_LOOKUP_STATE_DISABLED
	.comm	_QCA8K_PORT_LOOKUP_STATE_BLOCKING,4,2 ; @QCA8K_PORT_LOOKUP_STATE_BLOCKING
	.comm	_QCA8K_PORT_LOOKUP_STATE_LISTENING,4,2 ; @QCA8K_PORT_LOOKUP_STATE_LISTENING
	.comm	_QCA8K_PORT_LOOKUP_STATE_LEARNING,4,2 ; @QCA8K_PORT_LOOKUP_STATE_LEARNING
	.comm	_QCA8K_PORT_LOOKUP_STATE_FORWARD,4,2 ; @QCA8K_PORT_LOOKUP_STATE_FORWARD
	.comm	_QCA8K_PORT_LOOKUP_STATE_MASK,4,2 ; @QCA8K_PORT_LOOKUP_STATE_MASK
	.no_dead_strip	_qca8k_port_stp_state_set
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.qca8k_port_stp_state_set
l_switch.table.qca8k_port_stp_state_set:
	.quad	_QCA8K_PORT_LOOKUP_STATE_LISTENING
	.quad	_QCA8K_PORT_LOOKUP_STATE_LEARNING
	.quad	_QCA8K_PORT_LOOKUP_STATE_FORWARD
	.quad	_QCA8K_PORT_LOOKUP_STATE_DISABLED
	.quad	_QCA8K_PORT_LOOKUP_STATE_BLOCKING

.subsections_via_symbols
