	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function switch_asic
_switch_asic:                           ## @switch_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
	testb	%sil, %sil
	movq	_FW_MONA_361_1_ASIC96@GOTPCREL(%rip), %rax
	cmoveq	_FW_MONA_361_1_ASIC48@GOTPCREL(%rip), %rax
	movq	_FW_MONA_301_1_ASIC96@GOTPCREL(%rip), %rcx
	cmoveq	_FW_MONA_301_1_ASIC48@GOTPCREL(%rip), %rcx
	movq	(%rdi), %rdx
	movq	_DEVICE_ID_56361@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	movq	_card_fw@GOTPCREL(%rip), %rdx
	cmoveq	%rax, %rcx
	movq	(%rcx), %rbx
	shlq	$2, %rbx
	addq	(%rdx), %rbx
	xorl	%r14d, %r14d
	cmpq	8(%rdi), %rbx
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r15
	movq	_DSP_FNC_LOAD_MONA_PCI_CARD_ASIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_load_asic_generic
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	%rbx, 8(%r15)
	jmp	LBB0_4
LBB0_2:
	movl	%eax, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEVICE_ID_56361,8,3            ## @DEVICE_ID_56361
	.comm	_card_fw,8,3                    ## @card_fw
	.comm	_FW_MONA_361_1_ASIC96,8,3       ## @FW_MONA_361_1_ASIC96
	.comm	_FW_MONA_361_1_ASIC48,8,3       ## @FW_MONA_361_1_ASIC48
	.comm	_FW_MONA_301_1_ASIC96,8,3       ## @FW_MONA_301_1_ASIC96
	.comm	_FW_MONA_301_1_ASIC48,8,3       ## @FW_MONA_301_1_ASIC48
	.comm	_DSP_FNC_LOAD_MONA_PCI_CARD_ASIC,4,2 ## @DSP_FNC_LOAD_MONA_PCI_CARD_ASIC
	.no_dead_strip	_switch_asic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function switch_asic
_switch_asic:                           ; @switch_asic
	.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
Lloh0:
	adrp	x8, _DEVICE_ID_56361@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEVICE_ID_56361@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _card_fw@GOTPAGE
Lloh4:
	ldr	x9, [x9, _card_fw@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _FW_MONA_361_1_ASIC48@GOTPAGE
Lloh7:
	ldr	x10, [x10, _FW_MONA_361_1_ASIC48@GOTPAGEOFF]
Lloh8:
	adrp	x11, _FW_MONA_361_1_ASIC96@GOTPAGE
Lloh9:
	ldr	x11, [x11, _FW_MONA_361_1_ASIC96@GOTPAGEOFF]
	cmp	w1, #0
	csel	x10, x10, x11, eq
Lloh10:
	adrp	x11, _FW_MONA_301_1_ASIC48@GOTPAGE
Lloh11:
	ldr	x11, [x11, _FW_MONA_301_1_ASIC48@GOTPAGEOFF]
Lloh12:
	adrp	x12, _FW_MONA_301_1_ASIC96@GOTPAGE
Lloh13:
	ldr	x12, [x12, _FW_MONA_301_1_ASIC96@GOTPAGEOFF]
	csel	x11, x11, x12, eq
	ldp	x12, x13, [x0]
	cmp	x12, x8
	csel	x8, x10, x11, eq
	ldr	x8, [x8]
	add	x20, x9, x8, lsl #2
	cmp	x20, x13
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh14:
	adrp	x8, _DSP_FNC_LOAD_MONA_PCI_CARD_ASIC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DSP_FNC_LOAD_MONA_PCI_CARD_ASIC@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_load_asic_generic
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	w0, #0
	str	x20, [x19, #8]
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DEVICE_ID_56361,8,3            ; @DEVICE_ID_56361
	.comm	_card_fw,8,3                    ; @card_fw
	.comm	_FW_MONA_361_1_ASIC96,8,3       ; @FW_MONA_361_1_ASIC96
	.comm	_FW_MONA_361_1_ASIC48,8,3       ; @FW_MONA_361_1_ASIC48
	.comm	_FW_MONA_301_1_ASIC96,8,3       ; @FW_MONA_301_1_ASIC96
	.comm	_FW_MONA_301_1_ASIC48,8,3       ; @FW_MONA_301_1_ASIC48
	.comm	_DSP_FNC_LOAD_MONA_PCI_CARD_ASIC,4,2 ; @DSP_FNC_LOAD_MONA_PCI_CARD_ASIC
	.no_dead_strip	_switch_asic
.subsections_via_symbols
