	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun8i_phy_clk_create           ## -- Begin function sun8i_phy_clk_create
	.p2align	4, 0x90
_sun8i_phy_clk_create:                  ## @sun8i_phy_clk_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	8(%rdi), %edi
	callq	___clk_get_name
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:
	movl	4(%rbx), %edi
	callq	___clk_get_name
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_1
LBB0_5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	leaq	L_.str(%rip), %rcx
	movq	%rcx, -80(%rbp)
	movq	_sun8i_phy_clk_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, -56(%rbp)
	leaq	-48(%rbp), %rcx
	cmpl	$1, %r15d
	movl	$2, %edx
	sbbl	$0, %edx
	movq	%rcx, -72(%rbp)
	movl	%edx, -64(%rbp)
	movq	_CLK_SET_RATE_PARENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -60(%rbp)
	movq	%rbx, 8(%rax)
	leaq	-80(%rbp), %rcx
	movq	%rcx, (%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_clk_register
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movl	(%rbx), %edi
	callq	_PTR_ERR
	jmp	LBB0_10
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hdmi-phy-clk"

	.comm	_sun8i_phy_clk_ops,4,2          ## @sun8i_phy_clk_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	_sun8i_phy_clk_create           ; -- Begin function sun8i_phy_clk_create
	.p2align	2
_sun8i_phy_clk_create:                  ; @sun8i_phy_clk_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	w0, [x0, #8]
	bl	___clk_get_name
	str	x0, [sp, #40]
	cbz	x0, LBB0_6
; %bb.1:
	cbz	w21, LBB0_3
; %bb.2:
	ldr	w0, [x19, #4]
	bl	___clk_get_name
	str	x0, [sp, #48]
	cbz	x0, LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.4:
	mov	x1, x0
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
Lloh8:
	adrp	x9, _sun8i_phy_clk_ops@GOTPAGE
Lloh9:
	ldr	x9, [x9, _sun8i_phy_clk_ops@GOTPAGEOFF]
	str	x9, [sp, #32]
	add	x9, sp, #40
	stp	x8, x9, [sp, #8]
	cmp	w21, #0
	mov	w8, #1
	cinc	w8, w8, ne
Lloh10:
	adrp	x9, _CLK_SET_RATE_PARENT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CLK_SET_RATE_PARENT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #24]
	add	x8, sp, #8
	stp	x8, x19, [x0]
	mov	x0, x20
	bl	_devm_clk_register
	str	w0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.5:
	ldr	w0, [x19]
	bl	_PTR_ERR
	b	LBB0_9
LBB0_6:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldur	x8, [x29, #-40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	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
	add	sp, sp, #112
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hdmi-phy-clk"

	.comm	_sun8i_phy_clk_ops,4,2          ; @sun8i_phy_clk_ops
	.comm	_CLK_SET_RATE_PARENT,4,2        ; @CLK_SET_RATE_PARENT
.subsections_via_symbols
