	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6131_setup_global
_mv88e6131_setup_global:                ## @mv88e6131_setup_global
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_REG_GLOBAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$4, %esi
	movl	$17408, %edx                    ## imm = 0x4400
	callq	_REG_WRITE
	movl	(%rbx), %edi
	movl	$10, %esi
	movl	$328, %edx                      ## imm = 0x148
	callq	_REG_WRITE
	movq	%r15, %rdi
	callq	_mv88e6xxx_config_prio
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movl	(%rbx), %edi
	movl	$25, %esi
	movl	$33024, %edx                    ## imm = 0x8100
	callq	_REG_WRITE
	movl	(%rbx), %r14d
	movq	%r15, %rdi
	callq	_dsa_upstream_port
	imull	$4352, %eax, %edx               ## imm = 0x1100
	orl	$240, %edx
	movl	%r14d, %edi
	movl	$26, %esi
	callq	_REG_WRITE
	movl	(%rbx), %edi
	movl	(%r15), %edx
	andl	$31, %edx
	orl	$57344, %edx                    ## imm = 0xE000
	movl	$28, %esi
	callq	_REG_WRITE
	movq	_REG_GLOBAL2@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	$3, %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$5, %esi
	movl	$255, %edx
	callq	_REG_WRITE
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edi
	orl	%r12d, %edx
	orl	$32768, %edx                    ## imm = 0x8000
	movl	$6, %esi
	callq	_REG_WRITE
	incq	%rbx
	addl	$256, %r12d                     ## imm = 0x100
	cmpq	$32, %rbx
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	movl	$31, %edx
	cmpq	%rax, %rbx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %rax
	movq	(%rax), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	andl	$31, %edx
	jmp	LBB0_5
LBB0_6:
	movl	(%r14), %edi
	movl	$7, %esi
	movl	$34815, %edx                    ## imm = 0x87FF
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$7, %esi
	movl	$38911, %edx                    ## imm = 0x97FF
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$7, %esi
	movl	$43007, %edx                    ## imm = 0xA7FF
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$7, %esi
	movl	$47103, %edx                    ## imm = 0xB7FF
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$7, %esi
	movl	$51199, %edx                    ## imm = 0xC7FF
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$7, %esi
	movl	$55295, %edx                    ## imm = 0xD7FF
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$7, %esi
	movl	$59391, %edx                    ## imm = 0xE7FF
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$7, %esi
	movl	$63487, %edx                    ## imm = 0xF7FF
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$8, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$8, %esi
	movl	$34816, %edx                    ## imm = 0x8800
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$8, %esi
	movl	$36864, %edx                    ## imm = 0x9000
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$8, %esi
	movl	$38912, %edx                    ## imm = 0x9800
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$8, %esi
	movl	$40960, %edx                    ## imm = 0xA000
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$8, %esi
	movl	$43008, %edx                    ## imm = 0xA800
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$8, %esi
	movl	$45056, %edx                    ## imm = 0xB000
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$8, %esi
	movl	$47104, %edx                    ## imm = 0xB800
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$8, %esi
	movl	$49152, %edx                    ## imm = 0xC000
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$8, %esi
	movl	$51200, %edx                    ## imm = 0xC800
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$8, %esi
	movl	$53248, %edx                    ## imm = 0xD000
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$8, %esi
	movl	$55296, %edx                    ## imm = 0xD800
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$8, %esi
	movl	$57344, %edx                    ## imm = 0xE000
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$8, %esi
	movl	$59392, %edx                    ## imm = 0xE800
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$8, %esi
	movl	$61440, %edx                    ## imm = 0xF000
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$8, %esi
	movl	$63488, %edx                    ## imm = 0xF800
	callq	_REG_WRITE
	movl	(%r14), %edi
	movl	$15, %esi
	movl	$255, %edx
	callq	_REG_WRITE
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_GLOBAL,4,2                 ## @REG_GLOBAL
	.comm	_REG_GLOBAL2,4,2                ## @REG_GLOBAL2
	.no_dead_strip	_mv88e6131_setup_global
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6131_setup_global
_mv88e6131_setup_global:                ; @mv88e6131_setup_global
	.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, x0
Lloh0:
	adrp	x21, _REG_GLOBAL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _REG_GLOBAL@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #4
	mov	w2, #17408
	bl	_REG_WRITE
	ldr	w0, [x21]
	mov	w1, #10
	mov	w2, #328
	bl	_REG_WRITE
	mov	x0, x19
	bl	_mv88e6xxx_config_prio
	tbnz	w0, #31, LBB0_8
; %bb.1:
	ldr	w0, [x21]
	mov	w1, #25
	mov	w2, #33024
	bl	_REG_WRITE
	ldr	w20, [x21]
	mov	x0, x19
	bl	_dsa_upstream_port
	add	w8, w0, w0, lsl #4
	mov	w2, #240
	bfi	w2, w8, #8, #24
	mov	x0, x20
	mov	w1, #26
	bl	_REG_WRITE
	ldr	w0, [x21]
	ldr	w8, [x19]
	mov	w2, #57344
	bfxil	w2, w8, #0, #5
	mov	w1, #28
	bl	_REG_WRITE
Lloh2:
	adrp	x20, _REG_GLOBAL2@GOTPAGE
Lloh3:
	ldr	x20, [x20, _REG_GLOBAL2@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w1, #3
	mov	w2, #65535
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #5
	mov	w2, #255
	bl	_REG_WRITE
	mov	w21, #0
	mov	x22, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #31
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
	orr	w8, w8, w21
	orr	w2, w8, #0x8000
	mov	w1, #6
	bl	_REG_WRITE
	add	x22, x22, #1
	add	w21, w21, #256
	cmp	x22, #32
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	x22, x8
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldrsw	x8, [x8]
	cmp	x22, x8
	b.ge	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w8, [x8, x22, lsl #2]
	and	w8, w8, #0x1f
	b	LBB0_3
LBB0_7:
	ldr	w0, [x20]
	mov	w1, #7
	mov	w2, #34815
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #7
	mov	w2, #38911
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #7
	mov	w2, #43007
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #7
	mov	w2, #47103
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #7
	mov	w2, #51199
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #7
	mov	w2, #55295
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #7
	mov	w2, #59391
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #7
	mov	w2, #63487
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #8
	mov	w2, #32768
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #8
	mov	w2, #34816
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #8
	mov	w2, #36864
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #8
	mov	w2, #38912
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #8
	mov	w2, #40960
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #8
	mov	w2, #43008
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #8
	mov	w2, #45056
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #8
	mov	w2, #47104
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #8
	mov	w2, #49152
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #8
	mov	w2, #51200
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #8
	mov	w2, #53248
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #8
	mov	w2, #55296
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #8
	mov	w2, #57344
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #8
	mov	w2, #59392
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #8
	mov	w2, #61440
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #8
	mov	w2, #63488
	bl	_REG_WRITE
	ldr	w0, [x20]
	mov	w1, #15
	mov	w2, #255
	bl	_REG_WRITE
	mov	w0, #0
LBB0_8:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_GLOBAL,4,2                 ; @REG_GLOBAL
	.comm	_REG_GLOBAL2,4,2                ; @REG_GLOBAL2
	.no_dead_strip	_mv88e6131_setup_global
.subsections_via_symbols
