	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6xxx_bridge_map
_mv88e6xxx_bridge_map:                  ## @mv88e6xxx_bridge_map
	.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	%rsi, %r14
	movq	%rdi, %r13
	callq	_mv88e6xxx_num_ports
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	%r13, %rdi
	callq	_mv88e6xxx_num_ports
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	8(%rax), %rax
	cmpq	%r14, (%rax,%rbx,8)
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_mv88e6xxx_port_vlan_map
	testl	%eax, %eax
	je	LBB0_2
LBB0_5:
	movl	%eax, %ecx
	jmp	LBB0_20
LBB0_6:
	movq	%r13, %rdi
	callq	_mv88e6xxx_has_pvt
	xorl	%ecx, %ecx
	testl	%eax, %eax
	je	LBB0_20
## %bb.7:
	movq	_DSA_MAX_SWITCHES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_20
## %bb.8:
	xorl	%r12d, %r12d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_11 Depth=1
	movq	_DSA_MAX_SWITCHES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	cmpq	%rcx, %r12
	jge	LBB0_19
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movq	(%r13), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r12,8), %r15
	testq	%r15, %r15
	je	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=2
	incq	%rbx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_15:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rax
	cmpq	%r14, (%rax,%rbx,8)
	jne	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_mv88e6xxx_pvt_map
	testl	%eax, %eax
	jne	LBB0_5
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=2
	movl	(%r15), %ecx
	jmp	LBB0_14
LBB0_19:
	xorl	%ecx, %ecx
LBB0_20:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSA_MAX_SWITCHES,4,2           ## @DSA_MAX_SWITCHES
	.no_dead_strip	_mv88e6xxx_bridge_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6xxx_bridge_map
_mv88e6xxx_bridge_map:                  ; @mv88e6xxx_bridge_map
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_mv88e6xxx_num_ports
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x21, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	mov	x0, x20
	bl	_mv88e6xxx_num_ports
	cmp	x21, w0, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, x21, lsl #3]
	cmp	x8, x19
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_mv88e6xxx_port_vlan_map
	cbz	w0, LBB0_2
	b	LBB0_18
LBB0_5:
	mov	x0, x20
	bl	_mv88e6xxx_has_pvt
	mov	x8, x0
	mov	w0, #0
	cbz	w8, LBB0_18
; %bb.6:
Lloh0:
	adrp	x23, _DSA_MAX_SWITCHES@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DSA_MAX_SWITCHES@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.7:
	mov	x21, #0
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x23]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_17
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldr	x9, [x20]
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	x24, [x9, x21, lsl #3]
	cbz	x24, LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w9, [x24]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x22, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	add	x22, x22, #1
	cmp	x22, w9, sxtw
	b.ge	LBB0_8
LBB0_14:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24, #8]
	ldr	x8, [x8, x22, lsl #3]
	cmp	x8, x19
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_mv88e6xxx_pvt_map
	cbnz	w0, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	w9, [x24]
	b	LBB0_13
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DSA_MAX_SWITCHES,4,2           ; @DSA_MAX_SWITCHES
	.no_dead_strip	_mv88e6xxx_bridge_map
.subsections_via_symbols
