	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function bstp_decode_bpdu
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_bstp_decode_bpdu:                      ## @bstp_decode_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, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	64(%rsi), %edi
	callq	_ntohs
	movl	48(%rbx), %edi
	callq	_ntohs
	movl	32(%rbx), %edi
	callq	_ntohl
	movl	%eax, 64(%r14)
	movl	28(%rbx), %edi
	callq	_ntohs
	movq	%rax, 96(%r14)
	movl	24(%rbx), %edi
	callq	_ntohs
	movq	%rax, 88(%r14)
	movl	20(%rbx), %edi
	callq	_ntohs
	movq	%rax, 80(%r14)
	movl	16(%rbx), %edi
	callq	_ntohs
	movq	%rax, 72(%r14)
	movl	12(%rbx), %edi
	callq	_ntohs
	movq	%rax, 56(%r14)
	movl	(%r15), %eax
	movl	%eax, 48(%r14)
	movl	8(%rbx), %eax
	movl	%eax, 32(%r14)
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	cmpl	$129, %ecx
	je	LBB0_3
## %bb.1:
	cmpl	$128, %ecx
	jne	LBB0_4
## %bb.2:
	movq	_BSTP_PDU_STPMASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_BSTP_ROLE_DESIGNATED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 24(%r14)
	jmp	LBB0_4
LBB0_3:
	movq	_BSTP_PDU_RSTPMASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
LBB0_4:
	movq	_BSTP_PDU_F_TCA@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movl	%edx, (%r14)
	movq	_BSTP_PDU_F_P@GOTPCREL(%rip), %rcx
	movq	_BSTP_PDU_F_A@GOTPCREL(%rip), %rdx
	movq	_BSTP_PDU_F_L@GOTPCREL(%rip), %rsi
	movq	_BSTP_PDU_F_F@GOTPCREL(%rip), %rdi
	movd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pinsrd	$1, (%rdx), %xmm0
	pinsrd	$2, (%rsi), %xmm0
	pinsrd	$3, (%rdi), %xmm0
	movd	%eax, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	pand	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm1, %xmm0
	pandn	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, 4(%r14)
	movq	_BSTP_PDU_F_TC@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movl	%edx, 20(%r14)
	movq	_BSTP_PDU_PRMASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_BSTP_PDU_PRSHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	addl	$-130, %eax
	cmpl	$2, %eax
	ja	LBB0_6
## %bb.5:
	cltq
	leaq	l_switch.table.bstp_decode_bpdu(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r14)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BSTP_PDU_STPMASK,4,2           ## @BSTP_PDU_STPMASK
	.comm	_BSTP_ROLE_DESIGNATED,8,3       ## @BSTP_ROLE_DESIGNATED
	.comm	_BSTP_PDU_RSTPMASK,4,2          ## @BSTP_PDU_RSTPMASK
	.comm	_BSTP_PDU_F_TCA,4,2             ## @BSTP_PDU_F_TCA
	.comm	_BSTP_PDU_F_P,4,2               ## @BSTP_PDU_F_P
	.comm	_BSTP_PDU_F_A,4,2               ## @BSTP_PDU_F_A
	.comm	_BSTP_PDU_F_L,4,2               ## @BSTP_PDU_F_L
	.comm	_BSTP_PDU_F_F,4,2               ## @BSTP_PDU_F_F
	.comm	_BSTP_PDU_F_TC,4,2              ## @BSTP_PDU_F_TC
	.comm	_BSTP_PDU_PRMASK,4,2            ## @BSTP_PDU_PRMASK
	.comm	_BSTP_PDU_PRSHIFT,4,2           ## @BSTP_PDU_PRSHIFT
	.comm	_BSTP_ROLE_ROOT,8,3             ## @BSTP_ROLE_ROOT
	.comm	_BSTP_ROLE_ALTERNATE,8,3        ## @BSTP_ROLE_ALTERNATE
	.no_dead_strip	_bstp_decode_bpdu
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.bstp_decode_bpdu
l_switch.table.bstp_decode_bpdu:
	.quad	_BSTP_ROLE_ROOT
	.quad	_BSTP_ROLE_DESIGNATED
	.quad	_BSTP_ROLE_ALTERNATE

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bstp_decode_bpdu
_bstp_decode_bpdu:                      ; @bstp_decode_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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x1, #64]
	bl	_ntohs
	ldr	w0, [x20, #48]
	bl	_ntohs
	ldr	w0, [x20, #32]
	bl	_ntohl
	str	w0, [x19, #64]
	ldr	w0, [x20, #28]
	bl	_ntohs
	str	x0, [x19, #96]
	ldr	w0, [x20, #24]
	bl	_ntohs
	str	x0, [x19, #88]
	ldr	w0, [x20, #20]
	bl	_ntohs
	str	x0, [x19, #80]
	ldr	w0, [x20, #16]
	bl	_ntohs
	str	x0, [x19, #72]
	ldr	w0, [x20, #12]
	bl	_ntohs
	str	x0, [x19, #56]
	ldr	w8, [x21]
	str	w8, [x19, #48]
	ldr	w8, [x20, #8]
	str	w8, [x19, #32]
	ldp	w8, w9, [x20]
	cmp	w9, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w9, #128
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, _BSTP_PDU_STPMASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BSTP_PDU_STPMASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh3:
	adrp	x9, _BSTP_ROLE_DESIGNATED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BSTP_ROLE_DESIGNATED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	str	x9, [x19, #24]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x9, _BSTP_PDU_RSTPMASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BSTP_PDU_RSTPMASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w9, w8
LBB0_4:
Lloh9:
	adrp	x9, _BSTP_PDU_F_TCA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BSTP_PDU_F_TCA@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w9, ne
Lloh12:
	adrp	x10, _BSTP_PDU_F_P@GOTPAGE
Lloh13:
	ldr	x10, [x10, _BSTP_PDU_F_P@GOTPAGEOFF]
Lloh14:
	adrp	x11, _BSTP_PDU_F_A@GOTPAGE
Lloh15:
	ldr	x11, [x11, _BSTP_PDU_F_A@GOTPAGEOFF]
	str	w9, [x19]
Lloh16:
	adrp	x9, _BSTP_PDU_F_L@GOTPAGE
Lloh17:
	ldr	x9, [x9, _BSTP_PDU_F_L@GOTPAGEOFF]
Lloh18:
	adrp	x12, _BSTP_PDU_F_F@GOTPAGE
Lloh19:
	ldr	x12, [x12, _BSTP_PDU_F_F@GOTPAGEOFF]
Lloh20:
	ldr	s0, [x10]
	ld1.s	{ v0 }[1], [x11]
	ld1.s	{ v0 }[2], [x9]
	ld1.s	{ v0 }[3], [x12]
	dup.4s	v1, w8
	and.16b	v0, v0, v1
	cmeq.4s	v0, v0, #0
	movi.4s	v1, #1
	bic.16b	v0, v1, v0
	stur	q0, [x19, #4]
Lloh21:
	adrp	x9, _BSTP_PDU_F_TC@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BSTP_PDU_F_TC@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w9, ne
	str	w9, [x19, #20]
Lloh24:
	adrp	x9, _BSTP_PDU_PRMASK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _BSTP_PDU_PRMASK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh27:
	adrp	x9, _BSTP_PDU_PRSHIFT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _BSTP_PDU_PRSHIFT@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	asr	w8, w8, w9
	sub	w8, w8, #130
	cmp	w8, #2
	b.hi	LBB0_6
; %bb.5:
Lloh30:
	adrp	x9, l_switch.table.bstp_decode_bpdu@PAGE
Lloh31:
	add	x9, x9, l_switch.table.bstp_decode_bpdu@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	x8, [x8]
	str	x8, [x19, #24]
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh20
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_BSTP_PDU_STPMASK,4,2           ; @BSTP_PDU_STPMASK
	.comm	_BSTP_ROLE_DESIGNATED,8,3       ; @BSTP_ROLE_DESIGNATED
	.comm	_BSTP_PDU_RSTPMASK,4,2          ; @BSTP_PDU_RSTPMASK
	.comm	_BSTP_PDU_F_TCA,4,2             ; @BSTP_PDU_F_TCA
	.comm	_BSTP_PDU_F_P,4,2               ; @BSTP_PDU_F_P
	.comm	_BSTP_PDU_F_A,4,2               ; @BSTP_PDU_F_A
	.comm	_BSTP_PDU_F_L,4,2               ; @BSTP_PDU_F_L
	.comm	_BSTP_PDU_F_F,4,2               ; @BSTP_PDU_F_F
	.comm	_BSTP_PDU_F_TC,4,2              ; @BSTP_PDU_F_TC
	.comm	_BSTP_PDU_PRMASK,4,2            ; @BSTP_PDU_PRMASK
	.comm	_BSTP_PDU_PRSHIFT,4,2           ; @BSTP_PDU_PRSHIFT
	.comm	_BSTP_ROLE_ROOT,8,3             ; @BSTP_ROLE_ROOT
	.comm	_BSTP_ROLE_ALTERNATE,8,3        ; @BSTP_ROLE_ALTERNATE
	.no_dead_strip	_bstp_decode_bpdu
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.bstp_decode_bpdu
l_switch.table.bstp_decode_bpdu:
	.quad	_BSTP_ROLE_ROOT
	.quad	_BSTP_ROLE_DESIGNATED
	.quad	_BSTP_ROLE_ALTERNATE

.subsections_via_symbols
