	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bstp_set_port_state
_bstp_set_port_state:                   ## @bstp_set_port_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	%esi, (%rdi)
	jne	LBB0_1
## %bb.8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movl	%esi, (%rdi)
	cmpl	$128, %esi
	je	LBB0_5
## %bb.2:
	cmpl	$129, %esi
	je	LBB0_6
## %bb.3:
	cmpl	$130, %esi
	jne	LBB0_7
## %bb.4:
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DPRINTF
	jmp	LBB0_7
LBB0_5:
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_DPRINTF
	leaq	12(%rbx), %rdi
	movl	32(%rbx), %eax
	movq	_BSTP_PROTO_RSTP@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	sete	%dl
	movl	24(%rbx,%rdx,4), %esi
	callq	_bstp_timer_start
	jmp	LBB0_7
LBB0_6:
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_DPRINTF
	leaq	12(%rbx), %rdi
	callq	_bstp_timer_stop
	incl	8(%rbx)
LBB0_7:
	movq	_taskqueue_swi@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %rbx
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_taskqueue_enqueue              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"state changed to DISCARDING on %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"state changed to LEARNING on %s\n"

	.comm	_BSTP_PROTO_RSTP,4,2            ## @BSTP_PROTO_RSTP
L_.str.2:                               ## @.str.2
	.asciz	"state changed to FORWARDING on %s\n"

	.comm	_taskqueue_swi,4,2              ## @taskqueue_swi
	.no_dead_strip	_bstp_set_port_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bstp_set_port_state
_bstp_set_port_state:                   ; @bstp_set_port_state
	.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	w8, [x0]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	str	w1, [x0]
	cmp	w1, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w1, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w1, #130
	b.ne	LBB0_8
; %bb.5:
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTF
	b	LBB0_8
LBB0_6:
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINTF
	add	x0, x19, #12
	ldr	w8, [x19, #32]
Lloh4:
	adrp	x9, _BSTP_PROTO_RSTP@GOTPAGE
Lloh5:
	ldr	x9, [x9, _BSTP_PROTO_RSTP@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	mov	w8, #24
	mov	w9, #28
	csel	x8, x9, x8, eq
	ldr	w1, [x19, x8]
	bl	_bstp_timer_start
	b	LBB0_8
LBB0_7:
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DPRINTF
	add	x0, x19, #12
	bl	_bstp_timer_stop
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_8:
Lloh9:
	adrp	x8, _taskqueue_swi@GOTPAGE
Lloh10:
	ldr	x8, [x8, _taskqueue_swi@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, x19, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_taskqueue_enqueue
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"state changed to DISCARDING on %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"state changed to LEARNING on %s\n"

	.comm	_BSTP_PROTO_RSTP,4,2            ; @BSTP_PROTO_RSTP
l_.str.2:                               ; @.str.2
	.asciz	"state changed to FORWARDING on %s\n"

	.comm	_taskqueue_swi,4,2              ; @taskqueue_swi
	.no_dead_strip	_bstp_set_port_state
.subsections_via_symbols
