	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b53_vlan_set_ports
_b53_vlan_set_ports:                    ## @b53_vlan_set_ports
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_sw_to_b53
	movq	%rax, %r14
	movq	24(%rax), %rbx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	(%r15), %r13
	movq	%r13, %rax
	testq	%r13, %r13
	je	LBB0_1
## %bb.5:
	cmpq	$4095, %rax                     ## imm = 0xFFF
	je	LBB0_6
	jmp	LBB0_7
LBB0_1:
	movq	%r14, %rdi
	callq	_is5325
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	_is5365
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpq	$4095, %rax                     ## imm = 0xFFF
	jne	LBB0_7
LBB0_6:
	cmpl	$0, 16(%r14)
	je	LBB0_3
LBB0_7:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %r15
	movq	$0, (%rbx,%r13,8)
	xorl	%eax, %eax
	cmpl	$0, 8(%rcx)
	movl	$0, %esi
	movl	$0, %ecx
	jle	LBB0_13
## %bb.8:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	%r14d
	addq	$16, %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	8(%rax), %r14d
	jge	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	callq	_BIT
	orl	%eax, (%rbx,%r13,8)
	movl	8(%r15), %r12d
	movq	_SWITCH_PORT_FLAG_TAGGED@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_BIT
	testl	%r12d, %eax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r15), %rdi
	callq	_BIT
	orl	%eax, 4(%rbx,%r13,8)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	(%r15), %rdx
	movl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_11
LBB0_12:
	movl	(%rbx,%r13,8), %ecx
	movl	4(%rbx,%r13,8), %esi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	xorl	%eax, %eax
LBB0_13:
	movl	(%r14), %edx
	andl	%edx, %ecx
	movl	%ecx, (%rbx,%r13,8)
	andl	%edx, %esi
	movl	%esi, 4(%rbx,%r13,8)
	jmp	LBB0_14
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SWITCH_PORT_FLAG_TAGGED,8,3    ## @SWITCH_PORT_FLAG_TAGGED
	.no_dead_strip	_b53_vlan_set_ports
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b53_vlan_set_ports
_b53_vlan_set_ports:                    ; @b53_vlan_set_ports
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	bl	_sw_to_b53
	mov	x20, x0
	ldr	x21, [x0, #24]
	ldr	x23, [x19]
	mov	x8, x23
	cbz	x23, LBB0_2
; %bb.1:
	cmp	x8, #4095
	b.eq	LBB0_5
	b	LBB0_6
LBB0_2:
	mov	x0, x20
	bl	_is5325
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_is5365
	cbz	w0, LBB0_13
LBB0_4:
	ldr	x8, [x19]
	cmp	x8, #4095
	b.ne	LBB0_6
LBB0_5:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_13
LBB0_6:
	ldr	x22, [x19, #16]
	add	x21, x21, x23, lsl #3
	movi.2d	v0, #0000000000000000
	mov	x23, x21
	str	d0, [x23], #4
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.7:
	mov	w24, #0
Lloh0:
	adrp	x25, _SWITCH_PORT_FLAG_TAGGED@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SWITCH_PORT_FLAG_TAGGED@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w24, w24, #1
	add	x22, x22, #16
	ldr	w8, [x19, #8]
	cmp	w24, w8
	b.ge	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	bl	_BIT
	ldr	w8, [x21]
	orr	w8, w8, w0
	str	w8, [x21]
	ldr	w26, [x22, #8]
	ldr	x0, [x25]
	bl	_BIT
	tst	w0, w26
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x22]
	bl	_BIT
	ldr	w8, [x23]
	orr	w8, w8, w0
	str	w8, [x23]
	ldr	x8, [x19]
	ldr	x9, [x20, #8]
	ldr	x10, [x22]
	str	w8, [x9, x10, lsl #2]
	b	LBB0_8
LBB0_11:
	ldr	d0, [x21]
LBB0_12:
	mov	w0, #0
	ld1r.2s	{ v1 }, [x20]
	and.8b	v0, v0, v1
	str	d0, [x21]
	b	LBB0_14
LBB0_13:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SWITCH_PORT_FLAG_TAGGED,8,3    ; @SWITCH_PORT_FLAG_TAGGED
	.no_dead_strip	_b53_vlan_set_ports
.subsections_via_symbols
