	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_asic
_load_asic:                             ## @load_asic
	.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
	movl	$1, %ebx
	cmpq	$0, 8(%rdi)
	je	LBB0_1
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_DE_INIT
	movl	$10, %edi
	callq	_mdelay
	movq	_DSP_FNC_LOAD_LAYLA24_PCI_CARD_ASIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_card_fw@GOTPCREL(%rip), %r15
	movq	_FW_LAYLA24_1_ASIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	shlq	$2, %rdx
	addq	(%r15), %rdx
	movq	%r14, %rdi
	callq	_load_asic_generic
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	_FW_LAYLA24_2S_ASIC@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	shlq	$2, %rax
	addq	(%r15), %rax
	movq	%rax, (%r14)
	movl	$10, %edi
	callq	_mdelay
	movq	_DSP_FNC_LOAD_LAYLA24_EXTERNAL_ASIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	shlq	$2, %rdx
	addq	(%r15), %rdx
	movq	%r14, %rdi
	callq	_load_asic_generic
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	$10, %edi
	callq	_mdelay
	movq	%r14, %rdi
	callq	_check_asic_status
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_GML_CONVERTER_ENABLE@GOTPCREL(%rip), %rax
	movq	_GML_48KHZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_write_control_reg
	movl	%eax, %ebx
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	callq	_DE_INIT
	jmp	LBB0_8
LBB0_2:
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_4:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"load_asic\n"

	.comm	_DSP_FNC_LOAD_LAYLA24_PCI_CARD_ASIC,4,2 ## @DSP_FNC_LOAD_LAYLA24_PCI_CARD_ASIC
	.comm	_card_fw,8,3                    ## @card_fw
	.comm	_FW_LAYLA24_1_ASIC,8,3          ## @FW_LAYLA24_1_ASIC
	.comm	_FW_LAYLA24_2S_ASIC,8,3         ## @FW_LAYLA24_2S_ASIC
	.comm	_DSP_FNC_LOAD_LAYLA24_EXTERNAL_ASIC,4,2 ## @DSP_FNC_LOAD_LAYLA24_EXTERNAL_ASIC
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_GML_CONVERTER_ENABLE,4,2       ## @GML_CONVERTER_ENABLE
	.comm	_GML_48KHZ,4,2                  ## @GML_48KHZ
	.comm	_TRUE,4,2                       ## @TRUE
L_.str.1:                               ## @.str.1
	.asciz	"load_asic() done\n"

	.no_dead_strip	_load_asic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_asic
_load_asic:                             ; @load_asic
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	w20, #1
LBB0_2:
	mov	x0, x20
	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
LBB0_3:
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DE_INIT
	mov	w0, #10
	bl	_mdelay
Lloh2:
	adrp	x8, _DSP_FNC_LOAD_LAYLA24_PCI_CARD_ASIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DSP_FNC_LOAD_LAYLA24_PCI_CARD_ASIC@GOTPAGEOFF]
Lloh4:
	adrp	x21, _card_fw@GOTPAGE
Lloh5:
	ldr	x21, [x21, _card_fw@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	x8, [x21]
Lloh7:
	adrp	x9, _FW_LAYLA24_1_ASIC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FW_LAYLA24_1_ASIC@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x2, x8, x9, lsl #2
	mov	x0, x19
	bl	_load_asic_generic
	tbnz	w0, #31, LBB0_8
; %bb.4:
	ldr	x8, [x21]
Lloh10:
	adrp	x20, _FW_LAYLA24_2S_ASIC@GOTPAGE
Lloh11:
	ldr	x20, [x20, _FW_LAYLA24_2S_ASIC@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #2
	str	x8, [x19]
	mov	w0, #10
	bl	_mdelay
Lloh12:
	adrp	x8, _DSP_FNC_LOAD_LAYLA24_EXTERNAL_ASIC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DSP_FNC_LOAD_LAYLA24_EXTERNAL_ASIC@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	x8, [x21]
	ldr	x9, [x20]
	add	x2, x8, x9, lsl #2
	mov	x0, x19
	bl	_load_asic_generic
	tbnz	w0, #31, LBB0_9
; %bb.5:
	mov	w0, #10
	bl	_mdelay
	mov	x0, x19
	bl	_check_asic_status
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.6:
Lloh15:
	adrp	x8, _GML_CONVERTER_ENABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GML_CONVERTER_ENABLE@GOTPAGEOFF]
Lloh17:
	adrp	x9, _GML_48KHZ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _GML_48KHZ@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh21:
	adrp	x8, _TRUE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_write_control_reg
	mov	x20, x0
LBB0_7:
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DE_INIT
	b	LBB0_2
LBB0_8:
	mov	x20, x0
	b	LBB0_2
LBB0_9:
Lloh26:
	adrp	x8, _FALSE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh28:
	ldr	w20, [x8]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"load_asic\n"

	.comm	_DSP_FNC_LOAD_LAYLA24_PCI_CARD_ASIC,4,2 ; @DSP_FNC_LOAD_LAYLA24_PCI_CARD_ASIC
	.comm	_card_fw,8,3                    ; @card_fw
	.comm	_FW_LAYLA24_1_ASIC,8,3          ; @FW_LAYLA24_1_ASIC
	.comm	_FW_LAYLA24_2S_ASIC,8,3         ; @FW_LAYLA24_2S_ASIC
	.comm	_DSP_FNC_LOAD_LAYLA24_EXTERNAL_ASIC,4,2 ; @DSP_FNC_LOAD_LAYLA24_EXTERNAL_ASIC
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_GML_CONVERTER_ENABLE,4,2       ; @GML_CONVERTER_ENABLE
	.comm	_GML_48KHZ,4,2                  ; @GML_48KHZ
	.comm	_TRUE,4,2                       ; @TRUE
l_.str.1:                               ; @.str.1
	.asciz	"load_asic() done\n"

	.no_dead_strip	_load_asic
.subsections_via_symbols
