	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sja1105_bridge_stp_state_set
_sja1105_bridge_stp_state_set:          ## @sja1105_bridge_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
                                        ## kill: def $edx killed $edx def $rdx
	leal	-128(%rdx), %ecx
	cmpl	$5, %ecx
	jae	LBB0_1
## %bb.2:
	movq	8(%rdi), %rdi
	movq	(%rdi), %rdx
	movq	_BLK_IDX_MAC_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	(%rdx,%r8,8), %rax
	movslq	%ecx, %rcx
	leaq	l_switch.table.sja1105_bridge_stp_state_set(%rip), %rdx
	movl	(%rdx,%rcx,4), %r9d
	leaq	l_switch.table.sja1105_bridge_stp_state_set.1(%rip), %rdx
	movl	(%rdx,%rcx,4), %r10d
	leaq	l_switch.table.sja1105_bridge_stp_state_set.2(%rip), %rdx
	movl	(%rdx,%rcx,4), %r11d
	movslq	%esi, %rdx
	leaq	(%rdx,%rdx,2), %rsi
	leaq	(%rax,%rsi,4), %rcx
	movl	%r9d, (%rax,%rsi,4)
	movl	%r10d, 4(%rax,%rsi,4)
	movl	%r11d, 8(%rax,%rsi,4)
	movq	%r8, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$1, %r8d
	popq	%rbp
	jmp	_sja1105_dynamic_config_write   ## TAILCALL
LBB0_1:
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BLK_IDX_MAC_CONFIG,8,3         ## @BLK_IDX_MAC_CONFIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid STP state: %d\n"

	.no_dead_strip	_sja1105_bridge_stp_state_set
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.sja1105_bridge_stp_state_set
l_switch.table.sja1105_bridge_stp_state_set:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.p2align	2                               ## @switch.table.sja1105_bridge_stp_state_set.1
l_switch.table.sja1105_bridge_stp_state_set.1:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.p2align	2                               ## @switch.table.sja1105_bridge_stp_state_set.2
l_switch.table.sja1105_bridge_stp_state_set.2:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sja1105_bridge_stp_state_set
_sja1105_bridge_stp_state_set:          ; @sja1105_bridge_stp_state_set
	.cfi_startproc
; %bb.0:
	sub	w9, w2, #128
	cmp	w9, #5
	b.hs	LBB0_2
; %bb.1:
	mov	x8, x1
	ldr	x0, [x0, #8]
	ldr	x10, [x0]
Lloh0:
	adrp	x11, _BLK_IDX_MAC_CONFIG@GOTPAGE
Lloh1:
	ldr	x11, [x11, _BLK_IDX_MAC_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x11]
	ldr	x10, [x10, x1, lsl #3]
	sbfiz	x9, x9, #2, #32
Lloh3:
	adrp	x11, l_switch.table.sja1105_bridge_stp_state_set@PAGE
Lloh4:
	add	x11, x11, l_switch.table.sja1105_bridge_stp_state_set@PAGEOFF
	ldr	w11, [x11, x9]
Lloh5:
	adrp	x12, l_switch.table.sja1105_bridge_stp_state_set.1@PAGE
Lloh6:
	add	x12, x12, l_switch.table.sja1105_bridge_stp_state_set.1@PAGEOFF
	ldr	w12, [x12, x9]
Lloh7:
	adrp	x13, l_switch.table.sja1105_bridge_stp_state_set.2@PAGE
Lloh8:
	add	x13, x13, l_switch.table.sja1105_bridge_stp_state_set.2@PAGEOFF
	ldr	w9, [x13, x9]
	mov	w13, #12
	smaddl	x3, w8, w13, x10
	stp	w11, w12, [x3]
	str	w9, [x3, #8]
	mov	x2, x8
	mov	w4, #1
	b	_sja1105_dynamic_config_write
LBB0_2:
	ldr	w0, [x0]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	_dev_err
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BLK_IDX_MAC_CONFIG,8,3         ; @BLK_IDX_MAC_CONFIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid STP state: %d\n"

	.no_dead_strip	_sja1105_bridge_stp_state_set
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.sja1105_bridge_stp_state_set
l_switch.table.sja1105_bridge_stp_state_set:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.p2align	2                               ; @switch.table.sja1105_bridge_stp_state_set.1
l_switch.table.sja1105_bridge_stp_state_set.1:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.p2align	2                               ; @switch.table.sja1105_bridge_stp_state_set.2
l_switch.table.sja1105_bridge_stp_state_set.2:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0

.subsections_via_symbols
