	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_ao_cec_g12a_setup_clk
_meson_ao_cec_g12a_setup_clk:           ## @meson_ao_cec_g12a_setup_clk
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	(%r12), %r12d
	movq	%r15, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movl	%eax, %edx
	callq	_kasprintf
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movl	12(%r14), %edi
	callq	___clk_get_name
	movq	%rax, -40(%rbp)
	movq	%r12, -80(%rbp)
	movq	_meson_ao_cec_g12a_dualdiv_clk_ops@GOTPCREL(%rip), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -56(%rbp)
	leaq	-40(%rbp), %rax
	movq	%rax, -72(%rbp)
	movl	$1, -64(%rbp)
	movl	8(%r14), %eax
	movl	%eax, 8(%rbx)
	leaq	-80(%rbp), %rax
	movq	%rax, (%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_devm_clk_register
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_PTR_ERR
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, (%r14)
	xorl	%eax, %eax
LBB0_6:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s#dualdiv_clk"

	.comm	_meson_ao_cec_g12a_dualdiv_clk_ops,4,2 ## @meson_ao_cec_g12a_dualdiv_clk_ops
L_.str.1:                               ## @.str.1
	.asciz	"failed to register clock\n"

	.no_dead_strip	_meson_ao_cec_g12a_setup_clk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_ao_cec_g12a_setup_clk
_meson_ao_cec_g12a_setup_clk:           ; @meson_ao_cec_g12a_setup_clk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x0
	ldr	x19, [x0, #16]
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	w22, [x22]
	mov	x0, x19
	bl	_dev_name
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_kasprintf
	cbz	x0, LBB0_4
; %bb.2:
	mov	x22, x0
	ldr	w0, [x20, #12]
	bl	___clk_get_name
Lloh4:
	adrp	x8, _meson_ao_cec_g12a_dualdiv_clk_ops@GOTPAGE
Lloh5:
	ldr	x8, [x8, _meson_ao_cec_g12a_dualdiv_clk_ops@GOTPAGEOFF]
	stp	x0, x22, [sp]
	stp	xzr, x8, [sp, #32]
	mov	x8, sp
	str	x8, [sp, #16]
	mov	w8, #1
	str	w8, [sp, #24]
	ldr	w8, [x20, #8]
	str	w8, [x21, #8]
	add	x8, sp, #8
	str	x8, [x21]
	mov	x0, x19
	mov	x1, x21
	bl	_devm_clk_register
	mov	x21, x0
	mov	x0, x22
	bl	_kfree
	mov	x0, x21
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.3:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
	bl	_PTR_ERR
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	str	x21, [x20]
LBB0_6:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s#dualdiv_clk"

	.comm	_meson_ao_cec_g12a_dualdiv_clk_ops,4,2 ; @meson_ao_cec_g12a_dualdiv_clk_ops
l_.str.1:                               ; @.str.1
	.asciz	"failed to register clock\n"

	.no_dead_strip	_meson_ao_cec_g12a_setup_clk
.subsections_via_symbols
