	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bstp_received_bpdu
_bstp_received_bpdu:                    ## @bstp_received_bpdu
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_BSTP_LOCK_ASSERT
	movl	$-133, %eax
	addl	(%rbx), %eax
	cmpl	$2, %eax
	jae	LBB0_1
LBB0_33:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_bstp_pdu_rcvtype
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_32
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movl	$0, (%r14)
	movl	$0, 4(%rbx)
	movl	$0, 20(%rbx)
	cmpl	$0, 20(%r15)
	je	LBB0_6
## %bb.4:
	cmpl	$0, 16(%r15)
	jne	LBB0_6
## %bb.5:
	movl	$1, 8(%rbx)
LBB0_6:
	cmpl	$0, 4(%r15)
	je	LBB0_8
## %bb.7:
	movl	$1, 12(%rbx)
LBB0_8:
	cmpl	$0, (%r15)
	je	LBB0_10
## %bb.9:
	movl	$1, 16(%rbx)
LBB0_10:
	cmpl	$0, 48(%rbx)
	je	LBB0_13
## %bb.11:
	movq	_BSTP_INFO_RECEIVED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bstp_pdu_bettersame
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movl	$0, 48(%rbx)
LBB0_13:
	movups	28(%r15), %xmm0
	movups	%xmm0, 32(%rbx)
	movl	24(%r15), %eax
	movq	_BSTP_MIN_HELLO_TIME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovgl	%eax, %ecx
	movl	%ecx, 28(%rbx)
	movq	%rbx, %rdi
	callq	_bstp_set_timer_msgage
	movq	_BSTP_INFO_RECEIVED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_bstp_assign_roles
	jmp	LBB0_32
LBB0_14:
	cmpl	$0, 20(%r15)
	je	LBB0_17
## %bb.15:
	cmpl	$0, 16(%r15)
	jne	LBB0_17
## %bb.16:
	movl	$1, 8(%rbx)
LBB0_17:
	cmpl	$0, 4(%r15)
	je	LBB0_19
## %bb.18:
	movl	$1, 12(%rbx)
LBB0_19:
	cmpl	$0, (%r15)
	je	LBB0_21
## %bb.20:
	movl	$1, 16(%rbx)
LBB0_21:
	movq	%rbx, %rdi
	callq	_bstp_set_timer_msgage
	jmp	LBB0_32
LBB0_24:
	cmpl	$0, 8(%r15)
	je	LBB0_27
## %bb.25:
	cmpl	$0, 24(%rbx)
	je	LBB0_27
## %bb.26:
	movl	$1, 4(%rbx)
	leaq	20(%rbx), %rax
	jmp	LBB0_28
LBB0_22:
	cmpl	$0, 12(%r15)
	je	LBB0_32
## %bb.23:
	movl	$1, 4(%rbx)
	movl	$0, 20(%rbx)
	jmp	LBB0_32
LBB0_27:
	leaq	4(%rbx), %rax
LBB0_28:
	movl	$0, (%rax)
	cmpl	$0, 4(%r15)
	je	LBB0_30
## %bb.29:
	movl	$1, 12(%rbx)
LBB0_30:
	cmpl	$0, (%r15)
	je	LBB0_32
## %bb.31:
	movl	$1, 16(%rbx)
LBB0_32:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bstp_update_state              ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_14
	.long	L0_0_set_33
	.long	L0_0_set_24
	.long	L0_0_set_22
	.end_data_region
                                        ## -- End function
	.comm	_BSTP_INFO_RECEIVED,4,2         ## @BSTP_INFO_RECEIVED
	.comm	_BSTP_MIN_HELLO_TIME,4,2        ## @BSTP_MIN_HELLO_TIME
	.no_dead_strip	_bstp_received_bpdu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bstp_received_bpdu
_bstp_received_bpdu:                    ; @bstp_received_bpdu
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_BSTP_LOCK_ASSERT
	ldr	w8, [x19]
	sub	w8, w8, #133
	cmp	w8, #2
	b.hs	LBB0_2
LBB0_1:
	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
	ret
LBB0_2:
	mov	x0, x19
	mov	x1, x21
	bl	_bstp_pdu_rcvtype
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_33
; %bb.3:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_1
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	str	wzr, [x20]
	str	wzr, [x19, #4]
	str	wzr, [x19, #20]
	ldr	w8, [x21, #20]
	cbz	w8, LBB0_7
; %bb.5:
	ldr	w8, [x21, #16]
	cbnz	w8, LBB0_7
; %bb.6:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_7:
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_9:
	ldr	w8, [x21]
	cbz	w8, LBB0_11
; %bb.10:
	mov	w8, #1
	str	w8, [x19, #16]
LBB0_11:
	ldr	w8, [x19, #48]
Lloh2:
	adrp	x22, _BSTP_INFO_RECEIVED@GOTPAGE
Lloh3:
	ldr	x22, [x22, _BSTP_INFO_RECEIVED@GOTPAGEOFF]
	cbz	w8, LBB0_14
; %bb.12:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_bstp_pdu_bettersame
	cbnz	w0, LBB0_14
; %bb.13:
	str	wzr, [x19, #48]
LBB0_14:
	ldur	q0, [x21, #28]
	str	q0, [x19, #32]
	ldr	w8, [x21, #24]
Lloh4:
	adrp	x9, _BSTP_MIN_HELLO_TIME@GOTPAGE
Lloh5:
	ldr	x9, [x9, _BSTP_MIN_HELLO_TIME@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w8, w8, w9, gt
	str	w8, [x19, #28]
	mov	x0, x19
	bl	_bstp_set_timer_msgage
	ldr	w8, [x22]
	str	w8, [x19]
	mov	x0, x20
	bl	_bstp_assign_roles
	b	LBB0_33
LBB0_15:
	ldr	w8, [x21, #20]
	cbz	w8, LBB0_18
; %bb.16:
	ldr	w8, [x21, #16]
	cbnz	w8, LBB0_18
; %bb.17:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_18:
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_20
; %bb.19:
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_20:
	ldr	w8, [x21]
	cbz	w8, LBB0_22
; %bb.21:
	mov	w8, #1
	str	w8, [x19, #16]
LBB0_22:
	mov	x0, x19
	bl	_bstp_set_timer_msgage
	b	LBB0_33
LBB0_23:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_28
; %bb.24:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_28
; %bb.25:
	mov	w8, #1
	str	w8, [x19, #4]
	add	x8, x19, #20
	b	LBB0_29
LBB0_26:
	ldr	w8, [x21, #12]
	cbz	w8, LBB0_33
; %bb.27:
	mov	w8, #1
	str	w8, [x19, #4]
	str	wzr, [x19, #20]
	b	LBB0_33
LBB0_28:
	add	x8, x19, #4
LBB0_29:
	str	wzr, [x8]
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_31
; %bb.30:
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_31:
	ldr	w8, [x21]
	cbz	w8, LBB0_33
; %bb.32:
	mov	w8, #1
	str	w8, [x19, #16]
LBB0_33:
	mov	x0, x20
	mov	x1, x19
	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	_bstp_update_state
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_15-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_23-LBB0_1)>>2
	.byte	(LBB0_26-LBB0_1)>>2
                                        ; -- End function
	.comm	_BSTP_INFO_RECEIVED,4,2         ; @BSTP_INFO_RECEIVED
	.comm	_BSTP_MIN_HELLO_TIME,4,2        ; @BSTP_MIN_HELLO_TIME
	.no_dead_strip	_bstp_received_bpdu
.subsections_via_symbols
