	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _mic_start
__mic_start:                            ## @_mic_start
	.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	%esi, %r15d
	callq	_cosmdev_to_mdev
	movq	%rax, %rbx
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mic_bootparam_init
	movq	48(%rbx), %rdi
	movq	_MBUS_DEV_DMA_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	64(%rbx), %r9d
	movq	_mic_dma_ops@GOTPCREL(%rip), %rdx
	movq	_mbus_hw_ops@GOTPCREL(%rip), %rcx
	movl	%r15d, %r8d
	callq	_mbus_register_device
	movl	%eax, 4(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.14:
	movl	4(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%r14, %rdi
	callq	_mic_request_dma_chans
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	leaq	64(%rbx), %r10
	movq	48(%r14), %rdi
	movq	_MIC_SCIF_DEV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	incl	%r15d
	addq	$40, %rbx
	movl	60(%r14), %r11d
	movl	56(%r14), %eax
	subq	$8, %rsp
	movq	___mic_dma_ops@GOTPCREL(%rip), %rdx
	movq	_scif_hw_ops@GOTPCREL(%rip), %rcx
	movl	%r15d, %r8d
	xorl	%r9d, %r9d
	pushq	$1
	pushq	%rax
	pushq	32(%r14)
	pushq	$0
	pushq	%r11
	pushq	%rbx
	pushq	%r10
	callq	_scif_register_device
	addq	$64, %rsp
	movl	%eax, 8(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	8(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_5:
	movq	32(%r14), %rax
	movq	48(%r14), %rdi
	movq	_VOP_DEV_TRNSP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %eax
	subq	$8, %rsp
	movq	__mic_dma_ops@GOTPCREL(%rip), %rdx
	movq	_vop_hw_ops@GOTPCREL(%rip), %rcx
	movl	%r15d, %r8d
	movq	%rbx, %r9
	pushq	%rax
	callq	_vop_register_device
	addq	$16, %rsp
	movl	%eax, 12(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	12(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_7:
	movq	16(%r14), %rax
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %r15d
	movl	12(%r14), %edi
	callq	_vop_unregister_device
	movl	%r15d, %ebx
LBB0_10:
	movl	8(%r14), %edi
	callq	_scif_unregister_device
LBB0_11:
	movq	%r14, %rdi
	callq	_mic_free_dma_chans
LBB0_12:
	movl	4(%r14), %edi
	callq	_mbus_unregister_device
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	callq	_mic_smpt_restore
	movq	%r14, %rdi
	callq	_mic_intr_restore
	movq	24(%r14), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	movq	16(%r14), %rax
	movq	_MIC_DPLO_SPAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r14), %edx
	movq	%r14, %rdi
	callq	*16(%rax)
	movq	16(%r14), %rax
	movq	_MIC_DPHI_SPAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	callq	*16(%rax)
	movq	16(%r14), %rax
	movq	%r14, %rdi
	callq	*8(%rax)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_MBUS_DEV_DMA_HOST,4,2          ## @MBUS_DEV_DMA_HOST
	.comm	_mic_dma_ops,4,2                ## @mic_dma_ops
	.comm	_mbus_hw_ops,4,2                ## @mbus_hw_ops
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_MIC_SCIF_DEV,4,2               ## @MIC_SCIF_DEV
	.comm	___mic_dma_ops,4,2              ## @__mic_dma_ops
	.comm	_scif_hw_ops,4,2                ## @scif_hw_ops
	.comm	_VOP_DEV_TRNSP,4,2              ## @VOP_DEV_TRNSP
	.comm	__mic_dma_ops,4,2               ## @_mic_dma_ops
	.comm	_vop_hw_ops,4,2                 ## @vop_hw_ops
	.comm	_MIC_DPLO_SPAD,4,2              ## @MIC_DPLO_SPAD
	.comm	_MIC_DPHI_SPAD,4,2              ## @MIC_DPHI_SPAD
	.no_dead_strip	__mic_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _mic_start
__mic_start:                            ; @_mic_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	bl	_cosmdev_to_mdev
	mov	x19, x0
	bl	_mic_bootparam_init
	ldr	x0, [x19, #48]
Lloh0:
	adrp	x8, _MBUS_DEV_DMA_HOST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBUS_DEV_DMA_HOST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x20, x19
	ldr	w5, [x20, #64]!
Lloh3:
	adrp	x2, _mic_dma_ops@GOTPAGE
Lloh4:
	ldr	x2, [x2, _mic_dma_ops@GOTPAGEOFF]
Lloh5:
	adrp	x3, _mbus_hw_ops@GOTPAGE
Lloh6:
	ldr	x3, [x3, _mbus_hw_ops@GOTPAGEOFF]
	mov	x4, x21
	bl	_mbus_register_device
	str	w0, [x19, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_2:
	mov	x0, x19
	bl	_mic_request_dma_chans
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x0, [x19, #48]
Lloh7:
	adrp	x8, _MIC_SCIF_DEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MIC_SCIF_DEV@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	w21, w21, #1
	add	x22, x19, #40
	ldr	x8, [x19, #32]
	ldp	w10, w9, [x19, #56]
	mov	w11, #1
	stp	w10, w11, [sp, #24]
	stp	xzr, x8, [sp, #8]
	str	w9, [sp]
Lloh10:
	adrp	x2, ___mic_dma_ops@GOTPAGE
Lloh11:
	ldr	x2, [x2, ___mic_dma_ops@GOTPAGEOFF]
Lloh12:
	adrp	x3, _scif_hw_ops@GOTPAGE
Lloh13:
	ldr	x3, [x3, _scif_hw_ops@GOTPAGEOFF]
	mov	x4, x21
	mov	w5, #0
	mov	x6, x20
	mov	x7, x22
	bl	_scif_register_device
	str	w0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w0, [x19, #8]
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_11
LBB0_5:
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_6:
	ldr	x0, [x19, #48]
Lloh17:
	adrp	x8, _VOP_DEV_TRNSP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VOP_DEV_TRNSP@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	x8, [x19, #32]
	ldr	w6, [x8]
Lloh20:
	adrp	x2, __mic_dma_ops@GOTPAGE
Lloh21:
	ldr	x2, [x2, __mic_dma_ops@GOTPAGEOFF]
Lloh22:
	adrp	x3, _vop_hw_ops@GOTPAGE
Lloh23:
	ldr	x3, [x3, _vop_hw_ops@GOTPAGEOFF]
	mov	x4, x21
	mov	x5, x22
	bl	_vop_register_device
	str	w0, [x19, #12]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w0, [x19, #12]
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_10
LBB0_8:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, #0
	blr	x8
	mov	x20, x0
	cbz	w0, LBB0_14
; %bb.9:
	ldr	w0, [x19, #12]
	bl	_vop_unregister_device
LBB0_10:
	ldr	w0, [x19, #8]
	bl	_scif_unregister_device
LBB0_11:
	mov	x0, x19
	bl	_mic_free_dma_chans
LBB0_12:
	ldr	w0, [x19, #4]
	bl	_mbus_unregister_device
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_14:
	mov	x0, x19
	bl	_mic_smpt_restore
	mov	x0, x19
	bl	_mic_intr_restore
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #16]
Lloh24:
	adrp	x9, _MIC_DPLO_SPAD@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MIC_DPLO_SPAD@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x9]
	ldr	w2, [x19]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #16]
Lloh27:
	adrp	x9, _MIC_DPHI_SPAD@GOTPAGE
Lloh28:
	ldr	x9, [x9, _MIC_DPHI_SPAD@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	b	LBB0_13
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MBUS_DEV_DMA_HOST,4,2          ; @MBUS_DEV_DMA_HOST
	.comm	_mic_dma_ops,4,2                ; @mic_dma_ops
	.comm	_mbus_hw_ops,4,2                ; @mbus_hw_ops
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_MIC_SCIF_DEV,4,2               ; @MIC_SCIF_DEV
	.comm	___mic_dma_ops,4,2              ; @__mic_dma_ops
	.comm	_scif_hw_ops,4,2                ; @scif_hw_ops
	.comm	_VOP_DEV_TRNSP,4,2              ; @VOP_DEV_TRNSP
	.comm	__mic_dma_ops,4,2               ; @_mic_dma_ops
	.comm	_vop_hw_ops,4,2                 ; @vop_hw_ops
	.comm	_MIC_DPLO_SPAD,4,2              ; @MIC_DPLO_SPAD
	.comm	_MIC_DPHI_SPAD,4,2              ; @MIC_DPHI_SPAD
	.no_dead_strip	__mic_start
.subsections_via_symbols
