	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsi_probe
_fsi_probe:                             ## @fsi_probe
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %rbx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
	movq	_master@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%rbx), %r15d
	movq	%rbx, %rdi
	callq	_resource_size
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ioremap_nocache
	movq	(%r12), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	movq	%r12, %rbx
	je	LBB0_6
## %bb.7:
	movl	%r14d, (%rcx)
	leaq	4(%r13), %r15
	movl	4(%r13), %edx
	movl	%edx, 56(%rcx)
	movq	%rax, 48(%rcx)
	addq	$64, %rax
	movq	%rax, 32(%rcx)
	movl	$-1, 40(%rcx)
	movl	$-1, 24(%rcx)
	xorl	%eax, %eax
	callq	_fsi_get_dma_chan
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movl	(%r13), %ecx
	leaq	L_.str.4(%rip), %rdx
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_snprintf
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movq	_master@GOTPCREL(%rip), %rbx
	callq	_clk_get
	movq	(%rbx), %rcx
	movl	%eax, 16(%rcx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.5(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_15
LBB0_2:
	addq	$4, %r13
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_18
LBB0_4:
	addq	$4, %r13
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_18
LBB0_6:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	addq	$4, %r13
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_17
LBB0_8:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_16
LBB0_11:
	movq	_fsi_soc_dai@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%r15, (%rax)
	movq	(%r13), %rax
	movq	%r15, 8(%rax)
	xorl	%eax, %eax
	callq	_fsi_soft_all_reset
	movq	_IRQF_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%rbx), %r8
	movq	_fsi_interrupt@GOTPCREL(%rip), %rsi
	leaq	L_.str.6(%rip), %rcx
	movl	%r14d, %edi
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r12d
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_master@GOTPCREL(%rip), %rbx
LBB0_15:
	xorl	%eax, %eax
	callq	_fsi_free_dma_chan
LBB0_16:
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_iounmap
LBB0_17:
	movq	(%rbx), %rdi
	callq	_kfree
	movq	$0, (%rbx)
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.19:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_fsi_soc_platform@GOTPCREL(%rip), %rdi
	callq	_snd_soc_register_platform
	testl	%eax, %eax
	js	LBB0_14
## %bb.20:
	movq	(%r13), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_snd_soc_register_dais
	movl	%eax, %r12d
	jmp	LBB0_18
LBB0_14:
	movl	%eax, %r12d
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_master@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movl	%r14d, %edi
	callq	_free_irq
	jmp	LBB0_15
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not enough FSI platform resources.\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_master,8,3                     ## @master
L_.str.1:                               ## @.str.1
	.asciz	"Could not allocate master\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.2:                               ## @.str.2
	.asciz	"Unable to ioremap FSI registers.\n"

L_.str.3:                               ## @.str.3
	.asciz	"cannot get dma api\n"

L_.str.4:                               ## @.str.4
	.asciz	"spu%d"

L_.str.5:                               ## @.str.5
	.asciz	"cannot get %s mstp\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_fsi_soc_dai,8,3                ## @fsi_soc_dai
	.comm	_fsi_interrupt,4,2              ## @fsi_interrupt
	.comm	_IRQF_DISABLED,4,2              ## @IRQF_DISABLED
L_.str.6:                               ## @.str.6
	.asciz	"fsi"

L_.str.7:                               ## @.str.7
	.asciz	"irq request err\n"

	.comm	_fsi_soc_platform,4,2           ## @fsi_soc_platform
L_.str.8:                               ## @.str.8
	.asciz	"cannot snd soc register\n"

	.no_dead_strip	_fsi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsi_probe
_fsi_probe:                             ; @fsi_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_platform_get_resource
	mov	x20, x0
	mov	x0, x22
	mov	w1, #0
	bl	_platform_get_irq
	cmp	x20, #0
	ccmp	w0, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	add	x0, x22, #4
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	mov	x19, x0
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kzalloc
Lloh13:
	adrp	x23, _master@GOTPAGE
Lloh14:
	ldr	x23, [x23, _master@GOTPAGEOFF]
	str	x0, [x23]
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w21, [x20]
	mov	x0, x20
	bl	_resource_size
	mov	x1, x0
	mov	x0, x21
	bl	_ioremap_nocache
	ldr	x8, [x23]
	str	x0, [x8, #8]
	cbz	x0, LBB0_9
; %bb.4:
	str	w19, [x8]
	mov	x21, x22
	ldr	w9, [x21, #4]!
	str	w9, [x8, #56]
	str	x0, [x8, #48]
	add	x9, x0, #64
	str	x9, [x8, #32]
	mov	w9, #-1
	str	w9, [x8, #40]
	str	w9, [x8, #24]
	bl	_fsi_get_dma_chan
	tbnz	w0, #31, LBB0_10
; %bb.5:
	ldr	w3, [x22]
Lloh15:
	adrp	x2, l_.str.4@PAGE
Lloh16:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x20, sp, #16
	add	x0, sp, #16
	mov	w1, #8
	bl	_snprintf
	add	x1, sp, #16
	mov	x0, #0
	bl	_clk_get
	ldr	x8, [x23]
	str	w0, [x8, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.6:
	str	x20, [sp]
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh19:
	adrp	x8, _EIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_7:
	add	x0, x22, #4
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_16
LBB0_9:
Lloh26:
	adrp	x8, _ENXIO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w20, w8
	add	x0, x22, #4
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_15
LBB0_10:
	mov	x20, x0
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_14
LBB0_11:
Lloh33:
	adrp	x22, _fsi_soc_dai@GOTPAGE
Lloh34:
	ldr	x22, [x22, _fsi_soc_dai@GOTPAGEOFF]
	ldr	x8, [x22]
	str	x21, [x8]
	ldr	x8, [x22]
	str	x21, [x8, #8]
	bl	_fsi_soft_all_reset
Lloh35:
	adrp	x8, _IRQF_DISABLED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _IRQF_DISABLED@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	ldr	x4, [x23]
Lloh38:
	adrp	x1, _fsi_interrupt@GOTPAGE
Lloh39:
	ldr	x1, [x1, _fsi_interrupt@GOTPAGEOFF]
Lloh40:
	adrp	x3, l_.str.6@PAGE
Lloh41:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_request_irq
	cbz	w0, LBB0_18
; %bb.12:
	mov	x20, x0
Lloh42:
	adrp	x1, l_.str.7@PAGE
Lloh43:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_dev_err
LBB0_13:
	bl	_fsi_free_dma_chan
LBB0_14:
	ldr	x8, [x23]
	ldr	x0, [x8, #8]
	bl	_iounmap
LBB0_15:
	ldr	x0, [x23]
	bl	_kfree
	str	xzr, [x23]
LBB0_16:
	ldr	x8, [sp, #24]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.17:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_18:
Lloh47:
	adrp	x0, _fsi_soc_platform@GOTPAGE
Lloh48:
	ldr	x0, [x0, _fsi_soc_platform@GOTPAGEOFF]
	bl	_snd_soc_register_platform
	tbnz	w0, #31, LBB0_20
; %bb.19:
	ldr	x19, [x22]
	mov	x0, x19
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x0, x19
	bl	_snd_soc_register_dais
	mov	x20, x0
	b	LBB0_16
LBB0_20:
	mov	x20, x0
Lloh49:
	adrp	x1, l_.str.8@PAGE
Lloh50:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	x1, [x23]
	mov	x0, x19
	bl	_free_irq
	b	LBB0_13
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not enough FSI platform resources.\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_master,8,3                     ; @master
l_.str.1:                               ; @.str.1
	.asciz	"Could not allocate master\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.2:                               ; @.str.2
	.asciz	"Unable to ioremap FSI registers.\n"

l_.str.3:                               ; @.str.3
	.asciz	"cannot get dma api\n"

l_.str.4:                               ; @.str.4
	.asciz	"spu%d"

l_.str.5:                               ; @.str.5
	.asciz	"cannot get %s mstp\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_fsi_soc_dai,8,3                ; @fsi_soc_dai
	.comm	_fsi_interrupt,4,2              ; @fsi_interrupt
	.comm	_IRQF_DISABLED,4,2              ; @IRQF_DISABLED
l_.str.6:                               ; @.str.6
	.asciz	"fsi"

l_.str.7:                               ; @.str.7
	.asciz	"irq request err\n"

	.comm	_fsi_soc_platform,4,2           ; @fsi_soc_platform
l_.str.8:                               ; @.str.8
	.asciz	"cannot snd soc register\n"

	.no_dead_strip	_fsi_probe
.subsections_via_symbols
