	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gswip_port_stp_state_set
_gswip_port_stp_state_set:              ## @gswip_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	(%rdi), %r14
	leal	-128(%rdx), %ecx
	cmpl	$4, %ecx
	ja	LBB0_5
## %bb.1:
	movl	%esi, %r12d
	movq	_GSWIP_PCE_PCTRL_0_PSTATE_LISTEN@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_6:
	movq	_GSWIP_PCE_PCTRL_0_PSTATE_LEARNING@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_4:
	movq	_GSWIP_PCE_PCTRL_0_PSTATE_FORWARDING@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r15d
	movq	_GSWIP_SDMA_PCTRL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_GSWIP_SDMA_PCTRLp
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_gswip_switch_mask
	movq	_GSWIP_PCE_PCTRL_0_PSTATE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_GSWIP_PCE_PCTRL_0p
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	jmp	LBB0_3
LBB0_2:
	movq	_GSWIP_SDMA_PCTRL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r12d, %edi
	callq	_GSWIP_SDMA_PCTRLp
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
LBB0_3:
	movl	%eax, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gswip_switch_mask              ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_GSWIP_SDMA_PCTRL_EN,4,2        ## @GSWIP_SDMA_PCTRL_EN
	.comm	_GSWIP_PCE_PCTRL_0_PSTATE_LISTEN,4,2 ## @GSWIP_PCE_PCTRL_0_PSTATE_LISTEN
	.comm	_GSWIP_PCE_PCTRL_0_PSTATE_LEARNING,4,2 ## @GSWIP_PCE_PCTRL_0_PSTATE_LEARNING
	.comm	_GSWIP_PCE_PCTRL_0_PSTATE_FORWARDING,4,2 ## @GSWIP_PCE_PCTRL_0_PSTATE_FORWARDING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid STP state: %d\n"

	.comm	_GSWIP_PCE_PCTRL_0_PSTATE_MASK,4,2 ## @GSWIP_PCE_PCTRL_0_PSTATE_MASK
	.no_dead_strip	_gswip_port_stp_state_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gswip_port_stp_state_set
_gswip_port_stp_state_set:              ; @gswip_port_stp_state_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x19, [x0]
	sub	w9, w2, #128
	cmp	w9, #4
	b.hi	LBB0_3
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x8, _GSWIP_PCE_PCTRL_0_PSTATE_LISTEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GSWIP_PCE_PCTRL_0_PSTATE_LISTEN@GOTPAGEOFF]
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh4:
	adrp	x8, _GSWIP_PCE_PCTRL_0_PSTATE_LEARNING@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GSWIP_PCE_PCTRL_0_PSTATE_LEARNING@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dev_err
LBB0_4:
Lloh8:
	adrp	x8, _GSWIP_PCE_PCTRL_0_PSTATE_FORWARDING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GSWIP_PCE_PCTRL_0_PSTATE_FORWARDING@GOTPAGEOFF]
LBB0_5:
	ldr	w21, [x8]
Lloh10:
	adrp	x8, _GSWIP_SDMA_PCTRL_EN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GSWIP_SDMA_PCTRL_EN@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_GSWIP_SDMA_PCTRLp
	mov	x3, x0
	mov	x0, x19
	mov	w1, #0
	mov	x2, x22
	bl	_gswip_switch_mask
Lloh13:
	adrp	x8, _GSWIP_PCE_PCTRL_0_PSTATE_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GSWIP_PCE_PCTRL_0_PSTATE_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_GSWIP_PCE_PCTRL_0p
	mov	x3, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	b	LBB0_7
LBB0_6:
Lloh16:
	adrp	x8, _GSWIP_SDMA_PCTRL_EN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GSWIP_SDMA_PCTRL_EN@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_GSWIP_SDMA_PCTRLp
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_gswip_switch_mask
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_GSWIP_SDMA_PCTRL_EN,4,2        ; @GSWIP_SDMA_PCTRL_EN
	.comm	_GSWIP_PCE_PCTRL_0_PSTATE_LISTEN,4,2 ; @GSWIP_PCE_PCTRL_0_PSTATE_LISTEN
	.comm	_GSWIP_PCE_PCTRL_0_PSTATE_LEARNING,4,2 ; @GSWIP_PCE_PCTRL_0_PSTATE_LEARNING
	.comm	_GSWIP_PCE_PCTRL_0_PSTATE_FORWARDING,4,2 ; @GSWIP_PCE_PCTRL_0_PSTATE_FORWARDING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid STP state: %d\n"

	.comm	_GSWIP_PCE_PCTRL_0_PSTATE_MASK,4,2 ; @GSWIP_PCE_PCTRL_0_PSTATE_MASK
	.no_dead_strip	_gswip_port_stp_state_set
.subsections_via_symbols
