	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar8327_init_globals
_ar8327_init_globals:                   ## @ar8327_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	_AR8327_FWD_CTRL0_CPU_PORT_EN@GOTPCREL(%rip), %rax
	movq	_AR8327_FWD_CTRL0_MIRROR_PORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_AR8327_REG_FWD_CTRL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ar8xxx_write
	movq	_AR8327_PORTS_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AR8327_FWD_CTRL1_UC_FLOOD_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%edx, %eax
	shll	%cl, %eax
	movq	_AR8327_FWD_CTRL1_MC_FLOOD_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%edx, %esi
	shll	%cl, %esi
	movq	_AR8327_FWD_CTRL1_BC_FLOOD_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%eax, %esi
	orl	%esi, %edx
	movq	_AR8327_REG_FWD_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ar8xxx_write
	movq	_AR8327_REG_MAX_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR8327_MAX_FRAME_SIZE_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$9028, %ecx                     ## imm = 0x2344
	callq	_ar8xxx_rmw
	movq	_AR8327_REG_MODULE_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR8327_MODULE_EN_MIB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ar8xxx_reg_set
	movq	_AR8XXX_NUM_PHYS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	movq	(%r14), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, (%rcx,%rdx,4)
	incq	%rdx
	movslq	(%rax), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR8327_FWD_CTRL0_CPU_PORT_EN,4,2 ## @AR8327_FWD_CTRL0_CPU_PORT_EN
	.comm	_AR8327_FWD_CTRL0_MIRROR_PORT,4,2 ## @AR8327_FWD_CTRL0_MIRROR_PORT
	.comm	_AR8327_REG_FWD_CTRL0,4,2       ## @AR8327_REG_FWD_CTRL0
	.comm	_AR8327_PORTS_ALL,4,2           ## @AR8327_PORTS_ALL
	.comm	_AR8327_FWD_CTRL1_UC_FLOOD_S,4,2 ## @AR8327_FWD_CTRL1_UC_FLOOD_S
	.comm	_AR8327_FWD_CTRL1_MC_FLOOD_S,4,2 ## @AR8327_FWD_CTRL1_MC_FLOOD_S
	.comm	_AR8327_FWD_CTRL1_BC_FLOOD_S,4,2 ## @AR8327_FWD_CTRL1_BC_FLOOD_S
	.comm	_AR8327_REG_FWD_CTRL1,4,2       ## @AR8327_REG_FWD_CTRL1
	.comm	_AR8327_REG_MAX_FRAME_SIZE,4,2  ## @AR8327_REG_MAX_FRAME_SIZE
	.comm	_AR8327_MAX_FRAME_SIZE_MTU,4,2  ## @AR8327_MAX_FRAME_SIZE_MTU
	.comm	_AR8327_REG_MODULE_EN,4,2       ## @AR8327_REG_MODULE_EN
	.comm	_AR8327_MODULE_EN_MIB,4,2       ## @AR8327_MODULE_EN_MIB
	.comm	_AR8XXX_NUM_PHYS,4,2            ## @AR8XXX_NUM_PHYS
	.no_dead_strip	_ar8327_init_globals
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar8327_init_globals
_ar8327_init_globals:                   ; @ar8327_init_globals
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _AR8327_FWD_CTRL0_CPU_PORT_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR8327_FWD_CTRL0_CPU_PORT_EN@GOTPAGEOFF]
Lloh2:
	adrp	x9, _AR8327_FWD_CTRL0_MIRROR_PORT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AR8327_FWD_CTRL0_MIRROR_PORT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh6:
	adrp	x8, _AR8327_REG_FWD_CTRL0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR8327_REG_FWD_CTRL0@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_ar8xxx_write
Lloh9:
	adrp	x8, _AR8327_PORTS_ALL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AR8327_PORTS_ALL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _AR8327_FWD_CTRL1_UC_FLOOD_S@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AR8327_FWD_CTRL1_UC_FLOOD_S@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _AR8327_FWD_CTRL1_MC_FLOOD_S@GOTPAGE
Lloh16:
	ldr	x10, [x10, _AR8327_FWD_CTRL1_MC_FLOOD_S@GOTPAGEOFF]
	lsl	w9, w8, w9
Lloh17:
	ldr	w10, [x10]
	lsl	w10, w8, w10
	orr	w9, w10, w9
Lloh18:
	adrp	x10, _AR8327_FWD_CTRL1_BC_FLOOD_S@GOTPAGE
Lloh19:
	ldr	x10, [x10, _AR8327_FWD_CTRL1_BC_FLOOD_S@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	orr	w2, w9, w8
Lloh21:
	adrp	x8, _AR8327_REG_FWD_CTRL1@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AR8327_REG_FWD_CTRL1@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ar8xxx_write
Lloh24:
	adrp	x8, _AR8327_REG_MAX_FRAME_SIZE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AR8327_REG_MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _AR8327_MAX_FRAME_SIZE_MTU@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AR8327_MAX_FRAME_SIZE_MTU@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #9028
	bl	_ar8xxx_rmw
Lloh30:
	adrp	x8, _AR8327_REG_MODULE_EN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AR8327_REG_MODULE_EN@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x8, _AR8327_MODULE_EN_MIB@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AR8327_MODULE_EN_MIB@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ar8xxx_reg_set
Lloh36:
	adrp	x8, _AR8XXX_NUM_PHYS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AR8XXX_NUM_PHYS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
	ldr	x10, [x20]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldrsw	x11, [x8]
	cmp	x9, x11
	b.lt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh36, Lloh37
	.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	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AR8327_FWD_CTRL0_CPU_PORT_EN,4,2 ; @AR8327_FWD_CTRL0_CPU_PORT_EN
	.comm	_AR8327_FWD_CTRL0_MIRROR_PORT,4,2 ; @AR8327_FWD_CTRL0_MIRROR_PORT
	.comm	_AR8327_REG_FWD_CTRL0,4,2       ; @AR8327_REG_FWD_CTRL0
	.comm	_AR8327_PORTS_ALL,4,2           ; @AR8327_PORTS_ALL
	.comm	_AR8327_FWD_CTRL1_UC_FLOOD_S,4,2 ; @AR8327_FWD_CTRL1_UC_FLOOD_S
	.comm	_AR8327_FWD_CTRL1_MC_FLOOD_S,4,2 ; @AR8327_FWD_CTRL1_MC_FLOOD_S
	.comm	_AR8327_FWD_CTRL1_BC_FLOOD_S,4,2 ; @AR8327_FWD_CTRL1_BC_FLOOD_S
	.comm	_AR8327_REG_FWD_CTRL1,4,2       ; @AR8327_REG_FWD_CTRL1
	.comm	_AR8327_REG_MAX_FRAME_SIZE,4,2  ; @AR8327_REG_MAX_FRAME_SIZE
	.comm	_AR8327_MAX_FRAME_SIZE_MTU,4,2  ; @AR8327_MAX_FRAME_SIZE_MTU
	.comm	_AR8327_REG_MODULE_EN,4,2       ; @AR8327_REG_MODULE_EN
	.comm	_AR8327_MODULE_EN_MIB,4,2       ; @AR8327_MODULE_EN_MIB
	.comm	_AR8XXX_NUM_PHYS,4,2            ; @AR8XXX_NUM_PHYS
	.no_dead_strip	_ar8327_init_globals
.subsections_via_symbols
