	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar8229_init_globals
_ar8229_init_globals:                   ## @ar8229_init_globals
	.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	%rdi, %r15
	movq	_AR8216_REG_GLOBAL_CPUPORT@GOTPCREL(%rip), %rax
	movq	_AR8216_GLOBAL_CPUPORT_MIRROR_PORT_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$15, %edx
	shll	%cl, %edx
	movl	(%rax), %esi
	movq	_AR8216_GLOBAL_CPUPORT_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	callq	_ar8xxx_write
	movq	_AR8216_REG_TAG_PRIORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$64080, %edx                    ## imm = 0xFA50
	callq	_ar8xxx_write
	movq	_AR8216_REG_ATU_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR8216_ATU_CTRL_AGE_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AR8216_ATU_CTRL_LEARN_CHANGE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	$43, %edx
	movq	%r15, %rdi
	callq	_ar8xxx_write
	movq	_AR8229_REG_QM_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR8229_QM_CTRL_ARP_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ar8xxx_reg_set
	movq	_AR8216_REG_FLOOD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%edi, %edi
	callq	_AR8229_FLOOD_MASK_BC_DP
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_AR8229_FLOOD_MASK_MC_DP
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_ar8xxx_reg_set
	movq	_AR8216_REG_GLOBAL_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR8236_GCTRL_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%ecx, %edx
	callq	_ar8xxx_rmw
	movq	_AR8216_REG_MIB_FUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR8236_MIB_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ar8xxx_reg_set
	movq	_AR8216_REG_SERVICE_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR8216_SERVICE_TAG_M@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ar8xxx_rmw                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR8216_REG_GLOBAL_CPUPORT,4,2  ## @AR8216_REG_GLOBAL_CPUPORT
	.comm	_AR8216_GLOBAL_CPUPORT_EN,4,2   ## @AR8216_GLOBAL_CPUPORT_EN
	.comm	_AR8216_GLOBAL_CPUPORT_MIRROR_PORT_S,4,2 ## @AR8216_GLOBAL_CPUPORT_MIRROR_PORT_S
	.comm	_AR8216_REG_TAG_PRIORITY,4,2    ## @AR8216_REG_TAG_PRIORITY
	.comm	_AR8216_REG_ATU_CTRL,4,2        ## @AR8216_REG_ATU_CTRL
	.comm	_AR8216_ATU_CTRL_AGE_EN,4,2     ## @AR8216_ATU_CTRL_AGE_EN
	.comm	_AR8216_ATU_CTRL_LEARN_CHANGE,4,2 ## @AR8216_ATU_CTRL_LEARN_CHANGE
	.comm	_AR8229_REG_QM_CTRL,4,2         ## @AR8229_REG_QM_CTRL
	.comm	_AR8229_QM_CTRL_ARP_EN,4,2      ## @AR8229_QM_CTRL_ARP_EN
	.comm	_AR8216_REG_FLOOD_MASK,4,2      ## @AR8216_REG_FLOOD_MASK
	.comm	_AR8216_REG_GLOBAL_CTRL,4,2     ## @AR8216_REG_GLOBAL_CTRL
	.comm	_AR8236_GCTRL_MTU,4,2           ## @AR8236_GCTRL_MTU
	.comm	_AR8216_REG_MIB_FUNC,4,2        ## @AR8216_REG_MIB_FUNC
	.comm	_AR8236_MIB_EN,4,2              ## @AR8236_MIB_EN
	.comm	_AR8216_REG_SERVICE_TAG,4,2     ## @AR8216_REG_SERVICE_TAG
	.comm	_AR8216_SERVICE_TAG_M,4,2       ## @AR8216_SERVICE_TAG_M
	.no_dead_strip	_ar8229_init_globals
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar8229_init_globals
_ar8229_init_globals:                   ; @ar8229_init_globals
	.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	x8, _AR8216_REG_GLOBAL_CPUPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR8216_REG_GLOBAL_CPUPORT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _AR8216_GLOBAL_CPUPORT_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR8216_GLOBAL_CPUPORT_EN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _AR8216_GLOBAL_CPUPORT_MIRROR_PORT_S@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AR8216_GLOBAL_CPUPORT_MIRROR_PORT_S@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mov	w10, #15
	lsl	w9, w10, w9
	orr	w2, w9, w8
	bl	_ar8xxx_write
Lloh9:
	adrp	x8, _AR8216_REG_TAG_PRIORITY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AR8216_REG_TAG_PRIORITY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #64080
	bl	_ar8xxx_write
Lloh12:
	adrp	x8, _AR8216_REG_ATU_CTRL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AR8216_REG_ATU_CTRL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _AR8216_ATU_CTRL_AGE_EN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AR8216_ATU_CTRL_AGE_EN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _AR8216_ATU_CTRL_LEARN_CHANGE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AR8216_ATU_CTRL_LEARN_CHANGE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
	mov	w9, #43
	orr	w2, w8, w9
	mov	x0, x19
	bl	_ar8xxx_write
Lloh21:
	adrp	x8, _AR8229_REG_QM_CTRL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AR8229_REG_QM_CTRL@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _AR8229_QM_CTRL_ARP_EN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AR8229_QM_CTRL_ARP_EN@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ar8xxx_reg_set
Lloh27:
	adrp	x8, _AR8216_REG_FLOOD_MASK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AR8216_REG_FLOOD_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w20, [x8]
	mov	w0, #0
	bl	_AR8229_FLOOD_MASK_BC_DP
	mov	x21, x0
	mov	w0, #0
	bl	_AR8229_FLOOD_MASK_MC_DP
	orr	w2, w0, w21
	mov	x0, x19
	mov	x1, x20
	bl	_ar8xxx_reg_set
Lloh30:
	adrp	x8, _AR8216_REG_GLOBAL_CTRL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AR8216_REG_GLOBAL_CTRL@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x8, _AR8236_GCTRL_MTU@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AR8236_GCTRL_MTU@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
	bl	_ar8xxx_rmw
Lloh36:
	adrp	x8, _AR8216_REG_MIB_FUNC@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AR8216_REG_MIB_FUNC@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x8, _AR8236_MIB_EN@GOTPAGE
Lloh40:
	ldr	x8, [x8, _AR8236_MIB_EN@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ar8xxx_reg_set
Lloh42:
	adrp	x8, _AR8216_REG_SERVICE_TAG@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AR8216_REG_SERVICE_TAG@GOTPAGEOFF]
Lloh44:
	adrp	x9, _AR8216_SERVICE_TAG_M@GOTPAGE
Lloh45:
	ldr	x9, [x9, _AR8216_SERVICE_TAG_M@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
Lloh47:
	ldr	w2, [x9]
	mov	x0, x19
	mov	w3, #0
	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
	b	_ar8xxx_rmw
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh46
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AR8216_REG_GLOBAL_CPUPORT,4,2  ; @AR8216_REG_GLOBAL_CPUPORT
	.comm	_AR8216_GLOBAL_CPUPORT_EN,4,2   ; @AR8216_GLOBAL_CPUPORT_EN
	.comm	_AR8216_GLOBAL_CPUPORT_MIRROR_PORT_S,4,2 ; @AR8216_GLOBAL_CPUPORT_MIRROR_PORT_S
	.comm	_AR8216_REG_TAG_PRIORITY,4,2    ; @AR8216_REG_TAG_PRIORITY
	.comm	_AR8216_REG_ATU_CTRL,4,2        ; @AR8216_REG_ATU_CTRL
	.comm	_AR8216_ATU_CTRL_AGE_EN,4,2     ; @AR8216_ATU_CTRL_AGE_EN
	.comm	_AR8216_ATU_CTRL_LEARN_CHANGE,4,2 ; @AR8216_ATU_CTRL_LEARN_CHANGE
	.comm	_AR8229_REG_QM_CTRL,4,2         ; @AR8229_REG_QM_CTRL
	.comm	_AR8229_QM_CTRL_ARP_EN,4,2      ; @AR8229_QM_CTRL_ARP_EN
	.comm	_AR8216_REG_FLOOD_MASK,4,2      ; @AR8216_REG_FLOOD_MASK
	.comm	_AR8216_REG_GLOBAL_CTRL,4,2     ; @AR8216_REG_GLOBAL_CTRL
	.comm	_AR8236_GCTRL_MTU,4,2           ; @AR8236_GCTRL_MTU
	.comm	_AR8216_REG_MIB_FUNC,4,2        ; @AR8216_REG_MIB_FUNC
	.comm	_AR8236_MIB_EN,4,2              ; @AR8236_MIB_EN
	.comm	_AR8216_REG_SERVICE_TAG,4,2     ; @AR8216_REG_SERVICE_TAG
	.comm	_AR8216_SERVICE_TAG_M,4,2       ; @AR8216_SERVICE_TAG_M
	.no_dead_strip	_ar8229_init_globals
.subsections_via_symbols
