	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atom_asic_init                 ## -- Begin function atom_asic_init
	.p2align	4, 0x90
_atom_asic_init:                        ## @atom_asic_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r12
	movq	_ATOM_DATA_FWI_PTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_CU16
	movl	%eax, %ebx
	leaq	-112(%rbp), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movslq	%ebx, %rbx
	movq	_ATOM_FWI_DEFSCLK_PTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_CU32
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, -112(%rbp)
	movq	_ATOM_FWI_DEFMCLK_PTR@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_CU32
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, -108(%rbp)
	cmpl	$0, -112(%rbp)
	movl	$1, %r14d
	je	LBB0_7
## %bb.1:
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movq	(%r15), %rax
	movq	_ATOM_CMD_INIT@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rcx
	leaq	(%rax,%rcx,2), %rdi
	addq	$4, %rdi
	callq	_CU16
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movl	(%rbx), %esi
	leaq	-112(%rbp), %rdx
	movq	%r15, %rdi
	callq	_atom_execute_table
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	leaq	-112(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	(%r12), %rax
	movq	_CHIP_R600@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_7
## %bb.5:
	movq	(%r15), %rax
	movq	_ATOM_CMD_SPDFANCNTL@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rcx
	leaq	(%rax,%rcx,2), %rdi
	addq	$4, %rdi
	callq	_CU16
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	(%rbx), %esi
	leaq	-112(%rbp), %rdx
	movq	%r15, %rdi
	callq	_atom_execute_table
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%r14d, %eax
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ATOM_DATA_FWI_PTR,8,3          ## @ATOM_DATA_FWI_PTR
	.comm	_ATOM_FWI_DEFSCLK_PTR,8,3       ## @ATOM_FWI_DEFSCLK_PTR
	.comm	_ATOM_FWI_DEFMCLK_PTR,8,3       ## @ATOM_FWI_DEFMCLK_PTR
	.comm	_ATOM_CMD_INIT,4,2              ## @ATOM_CMD_INIT
	.comm	_CHIP_R600,8,3                  ## @CHIP_R600
	.comm	_ATOM_CMD_SPDFANCNTL,4,2        ## @ATOM_CMD_SPDFANCNTL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atom_asic_init                 ; -- Begin function atom_asic_init
	.p2align	2
_atom_asic_init:                        ; @atom_asic_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldp	x9, x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _ATOM_DATA_FWI_PTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATOM_DATA_FWI_PTR@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x0, x8, x9
	bl	_CU16
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	sxtw	x20, w20
Lloh6:
	adrp	x8, _ATOM_FWI_DEFSCLK_PTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATOM_FWI_DEFSCLK_PTR@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x0, x8, x20
	bl	_CU32
	bl	_cpu_to_le32
	str	w0, [sp, #8]
Lloh9:
	adrp	x8, _ATOM_FWI_DEFMCLK_PTR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATOM_FWI_DEFMCLK_PTR@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x0, x8, x20
	bl	_CU32
	bl	_cpu_to_le32
	mov	x8, x0
	str	w0, [sp, #12]
	ldr	w9, [sp, #8]
	mov	w0, #1
	cbz	w9, LBB0_8
; %bb.1:
	cbz	w8, LBB0_8
; %bb.2:
	ldr	x8, [x19]
Lloh12:
	adrp	x20, _ATOM_CMD_INIT@GOTPAGE
Lloh13:
	ldr	x20, [x20, _ATOM_CMD_INIT@GOTPAGEOFF]
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #1
	add	x0, x8, #4
	bl	_CU16
	cbz	w0, LBB0_7
; %bb.3:
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	x0, x19
	bl	_atom_execute_table
	cbnz	w0, LBB0_8
; %bb.4:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	mov	w0, #0
	ldr	x8, [x21]
Lloh14:
	adrp	x9, _CHIP_R600@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CHIP_R600@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_8
; %bb.5:
	ldr	x8, [x19]
Lloh17:
	adrp	x20, _ATOM_CMD_SPDFANCNTL@GOTPAGE
Lloh18:
	ldr	x20, [x20, _ATOM_CMD_SPDFANCNTL@GOTPAGEOFF]
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #1
	add	x0, x8, #4
	bl	_CU16
	cbz	w0, LBB0_8
; %bb.6:
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	x0, x19
	bl	_atom_execute_table
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	mov	w0, #1
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ATOM_DATA_FWI_PTR,8,3          ; @ATOM_DATA_FWI_PTR
	.comm	_ATOM_FWI_DEFSCLK_PTR,8,3       ; @ATOM_FWI_DEFSCLK_PTR
	.comm	_ATOM_FWI_DEFMCLK_PTR,8,3       ; @ATOM_FWI_DEFMCLK_PTR
	.comm	_ATOM_CMD_INIT,4,2              ; @ATOM_CMD_INIT
	.comm	_CHIP_R600,8,3                  ; @CHIP_R600
	.comm	_ATOM_CMD_SPDFANCNTL,4,2        ; @ATOM_CMD_SPDFANCNTL
.subsections_via_symbols
