	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssc_probe
_ssc_probe:                             ## @ssc_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, 32(%rax)
	movq	%r14, %rdi
	callq	_atmel_ssc_get_driver_data
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, 24(%r15)
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	callq	_of_property_read_bool
	movl	%eax, 20(%r15)
LBB0_7:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 4(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.16:
	movl	4(%r15), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_8:
	movl	(%rbx), %eax
	movl	%eax, 16(%r15)
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movl	%eax, 12(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
LBB0_10:
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	12(%r15), %edi
	callq	_clk_prepare_enable
	movl	4(%r15), %edi
	movq	_IDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$-1, %edx
	callq	_ssc_writel
	movl	4(%r15), %edi
	movq	_SR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ssc_readl
	movl	12(%r15), %edi
	callq	_clk_disable_unprepare
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movq	_user_lock@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	movq	%r15, %rdi
	addq	$8, %rdi
	movq	_ssc_list@GOTPCREL(%rip), %rsi
	callq	_list_add_tail
	movq	%r12, %rdi
	callq	_spin_unlock
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	%r15, %rdi
	callq	_ssc_sound_dai_probe
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_15
LBB0_12:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"atmel,clk-from-rk-pin"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.2:                               ## @.str.2
	.asciz	"pclk"

L_.str.3:                               ## @.str.3
	.asciz	"no pclk clock defined\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_IDR,4,2                        ## @IDR
	.comm	_SR,4,2                         ## @SR
L_.str.4:                               ## @.str.4
	.asciz	"could not get irq\n"

	.comm	_user_lock,4,2                  ## @user_lock
	.comm	_ssc_list,4,2                   ## @ssc_list
L_.str.5:                               ## @.str.5
	.asciz	"Atmel SSC device at 0x%p (irq %d)\n"

L_.str.6:                               ## @.str.6
	.asciz	"failed to auto-setup ssc for audio\n"

	.no_dead_strip	_ssc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssc_probe
_ssc_probe:                             ; @ssc_probe
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #32]
	mov	x0, x19
	bl	_atmel_ssc_get_driver_data
	cbz	x0, LBB0_7
; %bb.2:
	str	x0, [x20, #24]
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_of_property_read_bool
	str	w0, [x20, #20]
LBB0_4:
Lloh5:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_devm_ioremap_resource
	str	w0, [x20, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.5:
	ldr	w0, [x20, #4]
	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
	b	_PTR_ERR
LBB0_6:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	ldr	w8, [x21]
	str	w8, [x20, #16]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	w0, [x20, #12]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.9:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_dev_dbg
Lloh18:
	adrp	x8, _ENXIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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_13:
	ldr	w0, [x20, #12]
	bl	_clk_prepare_enable
	ldr	w0, [x20, #4]
Lloh20:
	adrp	x8, _IDR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IDR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	w2, #-1
	bl	_ssc_writel
	ldr	w0, [x20, #4]
Lloh23:
	adrp	x8, _SR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_ssc_readl
	ldr	w0, [x20, #12]
	bl	_clk_disable_unprepare
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	str	w0, [x20]
	cbz	w0, LBB0_16
; %bb.14:
Lloh26:
	adrp	x21, _user_lock@GOTPAGE
Lloh27:
	ldr	x21, [x21, _user_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_lock
	add	x0, x20, #8
Lloh28:
	adrp	x1, _ssc_list@GOTPAGE
Lloh29:
	ldr	x1, [x1, _ssc_list@GOTPAGEOFF]
	bl	_list_add_tail
	mov	x0, x21
	bl	_spin_unlock
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldp	w3, w2, [x20]
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x20
	bl	_ssc_sound_dai_probe
	cbz	x0, LBB0_12
; %bb.15:
Lloh32:
	adrp	x1, l_.str.6@PAGE
Lloh33:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	w0, #0
	b	LBB0_12
LBB0_16:
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"atmel,clk-from-rk-pin"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.2:                               ; @.str.2
	.asciz	"pclk"

l_.str.3:                               ; @.str.3
	.asciz	"no pclk clock defined\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_IDR,4,2                        ; @IDR
	.comm	_SR,4,2                         ; @SR
l_.str.4:                               ; @.str.4
	.asciz	"could not get irq\n"

	.comm	_user_lock,4,2                  ; @user_lock
	.comm	_ssc_list,4,2                   ; @ssc_list
l_.str.5:                               ; @.str.5
	.asciz	"Atmel SSC device at 0x%p (irq %d)\n"

l_.str.6:                               ; @.str.6
	.asciz	"failed to auto-setup ssc for audio\n"

	.no_dead_strip	_ssc_probe
.subsections_via_symbols
