	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bridge_change
_bridge_change:                         ## @bridge_change
	.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
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	cmpl	$0, (%r15)
	jne	LBB0_2
## %bb.1:
	movq	_SWITCH_PORT_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_STP_STATE_SIMPLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_port_set_stp_state
	movq	%rbx, %rdi
	callq	_sw_block_addr
LBB0_2:
	movq	_SWITCH_PORT_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.3:
	movl	$8, %r13d
	xorl	%ebx, %ebx
	movq	_STP_STATE_FORWARDING@GOTPCREL(%rip), %r12
	movq	_HOST_MASK@GOTPCREL(%rip), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	addq	$16, %r13
	cmpq	%rcx, %rbx
	jge	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	movq	8(%r15), %rcx
	movl	(%r14), %edx
	cmpq	-8(%rcx,%r13), %rsi
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	orl	(%r15), %edx
	cmpl	(%rcx,%r13), %edx
	je	LBB0_9
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	btsl	%ebx, %edx
	cmpl	(%rcx,%r13), %edx
	je	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_sw_cfg_port_base_vlan
	movq	_SWITCH_PORT_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SWITCH_PORT_NUM,4,2            ## @SWITCH_PORT_NUM
	.comm	_STP_STATE_SIMPLE,4,2           ## @STP_STATE_SIMPLE
	.comm	_STP_STATE_FORWARDING,8,3       ## @STP_STATE_FORWARDING
	.comm	_HOST_MASK,4,2                  ## @HOST_MASK
	.no_dead_strip	_bridge_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bridge_change
_bridge_change:                         ; @bridge_change
	.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, x0
	ldr	x21, [x0]
	ldr	w8, [x21]
Lloh0:
	adrp	x22, _SWITCH_PORT_NUM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SWITCH_PORT_NUM@GOTPAGEOFF]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _STP_STATE_SIMPLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STP_STATE_SIMPLE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_port_set_stp_state
	mov	x0, x19
	bl	_sw_block_addr
LBB0_2:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.3:
	mov	x23, #0
	mov	x20, #0
Lloh5:
	adrp	x24, _STP_STATE_FORWARDING@GOTPAGE
Lloh6:
	ldr	x24, [x24, _STP_STATE_FORWARDING@GOTPAGEOFF]
Lloh7:
	adrp	x25, _HOST_MASK@GOTPAGE
Lloh8:
	ldr	x25, [x25, _HOST_MASK@GOTPAGEOFF]
	mov	w26, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	add	x23, x23, #16
	cmp	x20, w8, sxtw
	b.ge	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x24]
	ldr	x9, [x21, #8]
	ldr	x12, [x9, x23]
	ldr	w10, [x25]
	cmp	x11, x12
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w11, [x21]
	orr	w2, w11, w10
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	lsl	w11, w26, w20
	orr	w2, w10, w11
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, x23
	ldr	w9, [x9, #8]
	cmp	w2, w9
	b.eq	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_sw_cfg_port_base_vlan
	ldr	w8, [x22]
	b	LBB0_4
LBB0_10:
	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
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SWITCH_PORT_NUM,4,2            ; @SWITCH_PORT_NUM
	.comm	_STP_STATE_SIMPLE,4,2           ; @STP_STATE_SIMPLE
	.comm	_STP_STATE_FORWARDING,8,3       ; @STP_STATE_FORWARDING
	.comm	_HOST_MASK,4,2                  ; @HOST_MASK
	.no_dead_strip	_bridge_change
.subsections_via_symbols
