	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocelot_chip_init               ## -- Begin function ocelot_chip_init
	.p2align	4, 0x90
_ocelot_chip_init:                      ## @ocelot_chip_init
	.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	_ocelot_regmap@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rdi)
	movq	_ocelot_stats_layout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 20(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, 16(%rbx)
	movl	$229376, (%rbx)                 ## imm = 0x38000
	movq	_ocelot_regfields@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ocelot_regfields_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_ocelot_pll5_init
	movq	8(%rbx), %rdi
	callq	_eth_random_addr
	movq	8(%rbx), %rax
	andl	$240, 20(%rax)
LBB0_2:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ocelot_regmap,4,2              ## @ocelot_regmap
	.comm	_ocelot_stats_layout,4,2        ## @ocelot_stats_layout
	.comm	_ocelot_regfields,4,2           ## @ocelot_regfields
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocelot_chip_init               ; -- Begin function ocelot_chip_init
	.p2align	2
_ocelot_chip_init:                      ; @ocelot_chip_init
	.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
Lloh0:
	adrp	x8, _ocelot_regmap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ocelot_regmap@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ocelot_stats_layout@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ocelot_stats_layout@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
	stp	w0, w8, [x19, #20]
	bl	_ARRAY_SIZE
	str	w0, [x19, #16]
	mov	w8, #229376
	str	w8, [x19]
Lloh6:
	adrp	x8, _ocelot_regfields@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ocelot_regfields@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ocelot_regfields_init
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ocelot_pll5_init
	ldr	x0, [x19, #8]
	bl	_eth_random_addr
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #20]
	and	w9, w9, #0xf0
	str	w9, [x8, #20]
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ocelot_regmap,4,2              ; @ocelot_regmap
	.comm	_ocelot_stats_layout,4,2        ; @ocelot_stats_layout
	.comm	_ocelot_regfields,4,2           ; @ocelot_regfields
.subsections_via_symbols
