	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun4i_dclk_create              ## -- Begin function sun4i_dclk_create
	.p2align	4, 0x90
_sun4i_dclk_create:                     ## @sun4i_dclk_create
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	8(%rsi), %edi
	callq	___clk_get_name
	movq	%rax, -24(%rbp)
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rcx
	xorl	%edx, %edx
	callq	_of_property_read_string_index
	testl	%eax, %eax
	je	LBB0_1
LBB0_6:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%r14, 16(%rax)
	movq	-32(%rbp), %rcx
	movq	%rcx, -64(%rbp)
	movq	_sun4i_dclk_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, -40(%rbp)
	leaq	-24(%rbp), %rcx
	movq	%rcx, -56(%rbp)
	movl	$1, -48(%rbp)
	movq	_CLK_SET_RATE_PARENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)
	movl	4(%r14), %ecx
	movl	%ecx, 8(%rax)
	leaq	-64(%rbp), %rcx
	movq	%rcx, (%rax)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_clk_register
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%r14), %edi
	callq	_PTR_ERR
	jmp	LBB0_6
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clock-output-names"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sun4i_dclk_ops,4,2             ## @sun4i_dclk_ops
	.comm	_CLK_SET_RATE_PARENT,4,2        ## @CLK_SET_RATE_PARENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun4i_dclk_create              ; -- Begin function sun4i_dclk_create
	.p2align	2
_sun4i_dclk_create:                     ; @sun4i_dclk_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #8]
	bl	___clk_get_name
	str	x0, [sp, #32]
	ldr	w0, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	sub	x3, x29, #24
	mov	w2, #0
	bl	_of_property_read_string_index
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x1, x0
	str	x19, [x0, #16]
	ldur	x8, [x29, #-24]
Lloh5:
	adrp	x9, _sun4i_dclk_ops@GOTPAGE
Lloh6:
	ldr	x9, [x9, _sun4i_dclk_ops@GOTPAGEOFF]
	str	x9, [sp, #24]
	add	x9, sp, #32
	stp	x8, x9, [sp]
	mov	w8, #1
Lloh7:
	adrp	x9, _CLK_SET_RATE_PARENT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CLK_SET_RATE_PARENT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
	ldr	w8, [x19, #4]
	str	w8, [x0, #8]
	mov	x8, sp
	str	x8, [x0]
	mov	x0, x20
	bl	_clk_register
	str	w0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_1
; %bb.4:
	ldr	w0, [x19]
	bl	_PTR_ERR
	b	LBB0_1
LBB0_5:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clock-output-names"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sun4i_dclk_ops,4,2             ; @sun4i_dclk_ops
	.comm	_CLK_SET_RATE_PARENT,4,2        ; @CLK_SET_RATE_PARENT
.subsections_via_symbols
