	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_arasan_register_sdclk
_sdhci_arasan_register_sdclk:           ## @sdhci_arasan_register_sdclk
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	(%rdx), %rbx
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_of_find_property
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	leaq	-52(%rbp), %rcx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_of_property_read_string_index
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_5
LBB0_3:
	movq	%r13, %rdi
	callq	___clk_get_name
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -80(%rbp)
	movl	$1, -72(%rbp)
	movq	_CLK_GET_RATE_NOCACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_arasan_sdcardclk_ops@GOTPCREL(%rip), %rax
	movq	%rax, -64(%rbp)
	leaq	8(%r12), %rsi
	leaq	-80(%rbp), %rax
	movq	%rax, 8(%r12)
	movq	%r14, %rdi
	callq	_devm_clk_register
	movl	%eax, (%r12)
	movq	$0, 8(%r12)
	movq	_of_clk_src_simple_get@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_of_clk_add_provider
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
LBB0_5:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_dev_err
LBB0_6:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"#clock-cells"

L_.str.1:                               ## @.str.1
	.asciz	"clock-output-names"

L_.str.2:                               ## @.str.2
	.asciz	"DT has #clock-cells but no clock-output-names\n"

	.comm	_CLK_GET_RATE_NOCACHE,4,2       ## @CLK_GET_RATE_NOCACHE
	.comm	_arasan_sdcardclk_ops,4,2       ## @arasan_sdcardclk_ops
	.comm	_of_clk_src_simple_get,4,2      ## @of_clk_src_simple_get
L_.str.3:                               ## @.str.3
	.asciz	"Failed to add clock provider\n"

	.no_dead_strip	_sdhci_arasan_register_sdclk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_arasan_register_sdclk
_sdhci_arasan_register_sdclk:           ; @sdhci_arasan_register_sdclk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x2
	mov	x23, x1
	mov	x21, x0
	ldr	x20, [x2]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, #0
	bl	_of_find_property
	cbz	w0, LBB0_3
; %bb.1:
	add	x24, sp, #16
	add	x3, x24, #28
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w2, #0
	bl	_of_property_read_string_index
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_3:
	mov	w22, #0
	b	LBB0_7
LBB0_4:
	mov	x0, x23
	bl	___clk_get_name
	add	x8, sp, #8
	stp	x0, x8, [sp, #8]
	mov	w8, #1
	str	w8, [sp, #24]
Lloh6:
	adrp	x8, _CLK_GET_RATE_NOCACHE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CLK_GET_RATE_NOCACHE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #40]
Lloh9:
	adrp	x8, _arasan_sdcardclk_ops@GOTPAGE
Lloh10:
	ldr	x8, [x8, _arasan_sdcardclk_ops@GOTPAGEOFF]
	str	x8, [sp, #32]
	mov	x22, x21
	str	x24, [x22, #8]!
	mov	x0, x19
	mov	x1, x22
	bl	_devm_clk_register
	mov	x2, x0
	str	w0, [x21]
	str	xzr, [x22]
Lloh11:
	adrp	x8, _of_clk_src_simple_get@GOTPAGE
Lloh12:
	ldr	x8, [x8, _of_clk_src_simple_get@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_of_clk_add_provider
	mov	x22, x0
	cbz	w0, LBB0_7
; %bb.5:
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_dev_err
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"#clock-cells"

l_.str.1:                               ; @.str.1
	.asciz	"clock-output-names"

l_.str.2:                               ; @.str.2
	.asciz	"DT has #clock-cells but no clock-output-names\n"

	.comm	_CLK_GET_RATE_NOCACHE,4,2       ; @CLK_GET_RATE_NOCACHE
	.comm	_arasan_sdcardclk_ops,4,2       ; @arasan_sdcardclk_ops
	.comm	_of_clk_src_simple_get,4,2      ; @of_clk_src_simple_get
l_.str.3:                               ; @.str.3
	.asciz	"Failed to add clock provider\n"

	.no_dead_strip	_sdhci_arasan_register_sdclk
.subsections_via_symbols
