	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function port_set_stp_state
_port_set_stp_state:                    ## @port_set_stp_state
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_KS8842_PORT_CTRL_2_OFFSET@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	-36(%rbp), %rcx
	callq	_port_r16
	leal	-128(%r14), %eax
	cmpl	$5, %eax
	ja	LBB0_2
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movq	_PORT_TX_ENABLE@GOTPCREL(%rip), %rax
	movq	_PORT_RX_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	-36(%rbp), %ecx
	jmp	LBB0_8
LBB0_2:
	movl	-36(%rbp), %ecx
	jmp	LBB0_10
LBB0_7:
	movq	_PORT_TX_ENABLE@GOTPCREL(%rip), %rax
	movq	_PORT_RX_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	-36(%rbp), %ecx
	jmp	LBB0_8
LBB0_3:
	movq	_PORT_TX_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	andl	-36(%rbp), %ecx
	movq	_PORT_RX_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
LBB0_8:
	movq	_PORT_LEARN_DISABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	jmp	LBB0_9
LBB0_4:
	movq	_PORT_TX_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	-36(%rbp), %eax
	movq	_PORT_RX_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_PORT_LEARN_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	jmp	LBB0_9
LBB0_5:
	movq	_PORT_TX_ENABLE@GOTPCREL(%rip), %rax
	movq	_PORT_RX_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	orl	-36(%rbp), %edx
	movq	_PORT_LEARN_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	andl	%edx, %ecx
LBB0_9:
	movl	%ecx, -36(%rbp)
LBB0_10:
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_port_w16
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movslq	%r15d, %rcx
	movl	%r14d, (%rax,%rcx,4)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_KS8842_PORT_CTRL_2_OFFSET,4,2  ## @KS8842_PORT_CTRL_2_OFFSET
	.comm	_PORT_TX_ENABLE,4,2             ## @PORT_TX_ENABLE
	.comm	_PORT_RX_ENABLE,4,2             ## @PORT_RX_ENABLE
	.comm	_PORT_LEARN_DISABLE,4,2         ## @PORT_LEARN_DISABLE
	.no_dead_strip	_port_set_stp_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function port_set_stp_state
_port_set_stp_state:                    ; @port_set_stp_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _KS8842_PORT_CTRL_2_OFFSET@GOTPAGE
Lloh1:
	ldr	x22, [x22, _KS8842_PORT_CTRL_2_OFFSET@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x3, sp, #12
	bl	_port_r16
	sub	w8, w19, #128
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.1:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh4:
	adrp	x8, _PORT_TX_ENABLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PORT_TX_ENABLE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _PORT_RX_ENABLE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PORT_RX_ENABLE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	b	LBB0_6
LBB0_3:
	ldr	w3, [sp, #12]
	b	LBB0_11
LBB0_4:
Lloh10:
	adrp	x8, _PORT_TX_ENABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PORT_TX_ENABLE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _PORT_RX_ENABLE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PORT_RX_ENABLE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	orr	w8, w8, w9
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x8, _PORT_TX_ENABLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PORT_TX_ENABLE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
Lloh19:
	adrp	x9, _PORT_RX_ENABLE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _PORT_RX_ENABLE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_6:
Lloh22:
	adrp	x9, _PORT_LEARN_DISABLE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PORT_LEARN_DISABLE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w3, w9, w8
	b	LBB0_10
LBB0_7:
Lloh25:
	adrp	x8, _PORT_TX_ENABLE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PORT_TX_ENABLE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
Lloh28:
	adrp	x9, _PORT_RX_ENABLE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _PORT_RX_ENABLE@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_9
LBB0_8:
Lloh31:
	adrp	x8, _PORT_TX_ENABLE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PORT_TX_ENABLE@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _PORT_RX_ENABLE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _PORT_RX_ENABLE@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	orr	w8, w8, w9
LBB0_9:
Lloh37:
	adrp	x9, _PORT_LEARN_DISABLE@GOTPAGE
Lloh38:
	ldr	x9, [x9, _PORT_LEARN_DISABLE@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	bic	w3, w8, w9
LBB0_10:
	str	w3, [sp, #12]
LBB0_11:
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x20
	bl	_port_w16
	ldr	x8, [x21]
	ldr	x8, [x8]
	str	w19, [x8, w20, sxtw #2]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_KS8842_PORT_CTRL_2_OFFSET,4,2  ; @KS8842_PORT_CTRL_2_OFFSET
	.comm	_PORT_TX_ENABLE,4,2             ; @PORT_TX_ENABLE
	.comm	_PORT_RX_ENABLE,4,2             ; @PORT_RX_ENABLE
	.comm	_PORT_LEARN_DISABLE,4,2         ; @PORT_LEARN_DISABLE
	.no_dead_strip	_port_set_stp_state
.subsections_via_symbols
