	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssi_hw_init
_ssi_hw_init:                           ## @ssi_hw_init
	.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
	movq	%rdi, %r15
	callq	_hsi_controller_drvdata
	movq	%rax, %r14
	movl	(%r15), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_SSI_SWRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SSI_GDD_GRST_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r14), %rsi
	callq	_writel_relaxed
	movq	%r15, %rdi
	callq	_ssi_get_clk_rate
	movl	%eax, %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_DIV_ROUND_CLOSEST
	movl	%eax, 16(%r14)
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_dbg
	movq	_SSI_CLK_AUTOGATING_ON@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_SSI_GDD_GCR_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel_relaxed
	movl	(%rbx), %eax
	movl	%eax, (%r14)
	movl	(%r15), %edi
	callq	_pm_runtime_put_sync
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"runtime PM failed %d\n"

	.comm	_SSI_SWRESET,4,2                ## @SSI_SWRESET
	.comm	_SSI_GDD_GRST_REG,8,3           ## @SSI_GDD_GRST_REG
L_.str.1:                               ## @.str.1
	.asciz	"SSI fck rate %lu kHz\n"

	.comm	_SSI_CLK_AUTOGATING_ON,4,2      ## @SSI_CLK_AUTOGATING_ON
	.comm	_SSI_GDD_GCR_REG,8,3            ## @SSI_GDD_GCR_REG
	.no_dead_strip	_ssi_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssi_hw_init
_ssi_hw_init:                           ; @ssi_hw_init
	.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
	bl	_hsi_controller_drvdata
	mov	x20, x0
	ldr	w0, [x19]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SSI_SWRESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSI_SWRESET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x20, #24]
Lloh3:
	adrp	x9, _SSI_GDD_GRST_REG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SSI_GDD_GRST_REG@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	mov	x0, x19
	bl	_ssi_get_clk_rate
	mov	w1, #1000
	bl	_DIV_ROUND_CLOSEST
	mov	x2, x0
	str	w0, [x20, #16]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh8:
	adrp	x21, _SSI_CLK_AUTOGATING_ON@GOTPAGE
Lloh9:
	ldr	x21, [x21, _SSI_CLK_AUTOGATING_ON@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	x8, [x20, #8]
Lloh10:
	adrp	x9, _SSI_GDD_GCR_REG@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SSI_GDD_GCR_REG@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	w8, [x21]
	str	w8, [x20]
	ldr	w0, [x19]
	bl	_pm_runtime_put_sync
	mov	w21, #0
	b	LBB0_3
LBB0_2:
	mov	x21, x0
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
LBB0_3:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"runtime PM failed %d\n"

	.comm	_SSI_SWRESET,4,2                ; @SSI_SWRESET
	.comm	_SSI_GDD_GRST_REG,8,3           ; @SSI_GDD_GRST_REG
l_.str.1:                               ; @.str.1
	.asciz	"SSI fck rate %lu kHz\n"

	.comm	_SSI_CLK_AUTOGATING_ON,4,2      ; @SSI_CLK_AUTOGATING_ON
	.comm	_SSI_GDD_GCR_REG,8,3            ; @SSI_GDD_GCR_REG
	.no_dead_strip	_ssi_hw_init
.subsections_via_symbols
