	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdn_dp_clk_enable
_cdn_dp_clk_enable:                     ## @cdn_dp_clk_enable
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	4(%r14), %edi
	callq	_clk_prepare_enable
	movl	8(%r14), %edi
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	20(%r14), %edi
	callq	_reset_control_assert
	movl	16(%r14), %edi
	callq	_reset_control_assert
	movl	12(%r14), %edi
	callq	_reset_control_assert
	movl	20(%r14), %edi
	callq	_reset_control_deassert
	movl	16(%r14), %edi
	callq	_reset_control_deassert
	movl	12(%r14), %edi
	callq	_reset_control_deassert
	movl	4(%r14), %edi
	callq	_clk_get_rate
	testq	%rax, %rax
	je	LBB0_7
## %bb.11:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_cdn_dp_set_fw_clk
	movq	%r14, %rdi
	callq	_cdn_dp_clock_reset
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_1:
	movl	%eax, %ebx
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	jmp	LBB0_9
LBB0_5:
	movl	%eax, %ebx
	movl	8(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	jmp	LBB0_8
LBB0_7:
	movl	8(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	8(%r14), %edi
	callq	_pm_runtime_put
LBB0_8:
	movl	4(%r14), %edi
	callq	_clk_disable_unprepare
LBB0_9:
	movl	(%r14), %edi
	callq	_clk_disable_unprepare
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot enable dp pclk %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"cannot enable core_clk %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"cannot get pm runtime %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"get clk rate failed\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cdn_dp_clk_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdn_dp_clk_enable
_cdn_dp_clk_enable:                     ; @cdn_dp_clk_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x0]
	bl	_clk_prepare_enable
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_clk_prepare_enable
	mov	x20, x0
	ldr	w0, [x19, #8]
	tbnz	w20, #31, LBB0_6
; %bb.2:
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	w0, [x19, #20]
	bl	_reset_control_assert
	ldr	w0, [x19, #16]
	bl	_reset_control_assert
	ldr	w0, [x19, #12]
	bl	_reset_control_assert
	ldr	w0, [x19, #20]
	bl	_reset_control_deassert
	ldr	w0, [x19, #16]
	bl	_reset_control_deassert
	ldr	w0, [x19, #12]
	bl	_reset_control_deassert
	ldr	w0, [x19, #4]
	bl	_clk_get_rate
	cbz	x0, LBB0_8
; %bb.4:
	mov	x1, x0
	mov	x0, x19
	bl	_cdn_dp_set_fw_clk
	mov	x0, x19
	bl	_cdn_dp_clock_reset
	mov	w20, #0
	b	LBB0_11
LBB0_5:
	mov	x20, x0
	ldr	w0, [x19, #8]
	str	x20, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DRM_DEV_ERROR
	b	LBB0_11
LBB0_6:
	str	x20, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DRM_DEV_ERROR
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_10
LBB0_7:
	mov	x20, x0
	ldr	w0, [x19, #8]
	str	x20, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DRM_DEV_ERROR
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_9
LBB0_8:
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DRM_DEV_ERROR
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	w0, [x19, #8]
	bl	_pm_runtime_put
LBB0_9:
	ldr	w0, [x19, #4]
	bl	_clk_disable_unprepare
LBB0_10:
	ldr	w0, [x19]
	bl	_clk_disable_unprepare
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot enable dp pclk %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"cannot enable core_clk %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"cannot get pm runtime %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"get clk rate failed\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cdn_dp_clk_enable
.subsections_via_symbols
