	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b53_br_set_stp_state           ## -- Begin function b53_br_set_stp_state
	.p2align	4, 0x90
_b53_br_set_stp_state:                  ## @b53_br_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	leal	-128(%rdx), %eax
	cmpl	$5, %eax
	jae	LBB0_2
## %bb.1:
	movl	%esi, %ebx
	movq	8(%rdi), %r14
	cltq
	leaq	l_switch.table.b53_br_set_stp_state(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %r12d
	movq	_B53_CTRL_PAGE@GOTPCREL(%rip), %r13
	movl	(%r13), %r15d
	movl	%esi, %edi
	callq	_B53_PORT_CTRL
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_b53_read8
	movq	_PORT_CTRL_STP_STATE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	-44(%rbp), %eax
	orl	%r12d, %eax
	movl	%eax, -44(%rbp)
	movl	(%r13), %r15d
	movl	%ebx, %edi
	callq	_B53_PORT_CTRL
	movl	-44(%rbp), %ecx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_b53_write8
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_CTRL_DIS_STATE,4,2        ## @PORT_CTRL_DIS_STATE
	.comm	_PORT_CTRL_LISTEN_STATE,4,2     ## @PORT_CTRL_LISTEN_STATE
	.comm	_PORT_CTRL_LEARN_STATE,4,2      ## @PORT_CTRL_LEARN_STATE
	.comm	_PORT_CTRL_FWD_STATE,4,2        ## @PORT_CTRL_FWD_STATE
	.comm	_PORT_CTRL_BLOCK_STATE,4,2      ## @PORT_CTRL_BLOCK_STATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid STP state: %d\n"

	.comm	_B53_CTRL_PAGE,4,2              ## @B53_CTRL_PAGE
	.comm	_PORT_CTRL_STP_STATE_MASK,4,2   ## @PORT_CTRL_STP_STATE_MASK
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.b53_br_set_stp_state
l_switch.table.b53_br_set_stp_state:
	.quad	_PORT_CTRL_LISTEN_STATE
	.quad	_PORT_CTRL_LEARN_STATE
	.quad	_PORT_CTRL_FWD_STATE
	.quad	_PORT_CTRL_DIS_STATE
	.quad	_PORT_CTRL_BLOCK_STATE

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b53_br_set_stp_state           ; -- Begin function b53_br_set_stp_state
	.p2align	2
_b53_br_set_stp_state:                  ; @b53_br_set_stp_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	sub	w8, w2, #128
	cmp	w8, #5
	b.hs	LBB0_2
; %bb.1:
	mov	x19, x1
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x9, l_switch.table.b53_br_set_stp_state@PAGE
Lloh1:
	add	x9, x9, l_switch.table.b53_br_set_stp_state@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w22, [x8]
Lloh2:
	adrp	x23, _B53_CTRL_PAGE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _B53_CTRL_PAGE@GOTPAGEOFF]
	ldr	w21, [x23]
	mov	x0, x1
	bl	_B53_PORT_CTRL
	mov	x2, x0
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x21
	bl	_b53_read8
Lloh4:
	adrp	x8, _PORT_CTRL_STP_STATE_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PORT_CTRL_STP_STATE_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	orr	w8, w8, w22
	str	w8, [sp, #12]
	ldr	w21, [x23]
	mov	x0, x19
	bl	_B53_PORT_CTRL
	mov	x2, x0
	ldr	w3, [sp, #12]
	mov	x0, x20
	mov	x1, x21
	bl	_b53_write8
	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
	add	sp, sp, #80
	ret
LBB0_2:
	ldr	w0, [x0]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	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
	add	sp, sp, #80
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_CTRL_DIS_STATE,4,2        ; @PORT_CTRL_DIS_STATE
	.comm	_PORT_CTRL_LISTEN_STATE,4,2     ; @PORT_CTRL_LISTEN_STATE
	.comm	_PORT_CTRL_LEARN_STATE,4,2      ; @PORT_CTRL_LEARN_STATE
	.comm	_PORT_CTRL_FWD_STATE,4,2        ; @PORT_CTRL_FWD_STATE
	.comm	_PORT_CTRL_BLOCK_STATE,4,2      ; @PORT_CTRL_BLOCK_STATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid STP state: %d\n"

	.comm	_B53_CTRL_PAGE,4,2              ; @B53_CTRL_PAGE
	.comm	_PORT_CTRL_STP_STATE_MASK,4,2   ; @PORT_CTRL_STP_STATE_MASK
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.b53_br_set_stp_state
l_switch.table.b53_br_set_stp_state:
	.quad	_PORT_CTRL_LISTEN_STATE
	.quad	_PORT_CTRL_LEARN_STATE
	.quad	_PORT_CTRL_FWD_STATE
	.quad	_PORT_CTRL_DIS_STATE
	.quad	_PORT_CTRL_BLOCK_STATE

.subsections_via_symbols
