	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_dss_parse_clock            ## -- Begin function msm_dss_parse_clock
	.p2align	4, 0x90
_msm_dss_parse_clock:                   ## @msm_dss_parse_clock
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r13
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.4:
	movq	%rdi, %r15
	movl	$0, (%r13)
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_of_property_count_strings
	testl	%eax, %eax
	jle	LBB0_5
## %bb.6:
	movl	%eax, %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_22
## %bb.7:
	movl	$12, %r12d
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %r14
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movq	%r14, %rcx
	callq	_of_property_read_string_index
	testl	%eax, %eax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%r12), %edi
	movq	-56(%rbp), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_DSS_CLK_AHB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r13), %rsi
	movl	%eax, -8(%rsi,%r12)
	incq	%rbx
	addq	$16, %r12
	cmpq	%rbx, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_8
	jmp	LBB0_11
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_21
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_debug
LBB0_20:
	xorl	%r12d, %r12d
	jmp	LBB0_21
LBB0_22:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_DRM_DEV_ERROR
	movq	8(%r13), %rsi
LBB0_11:
	movq	%r15, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_msm_dss_get_clk
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_13
LBB0_14:
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_of_clk_set_defaults
	testl	%eax, %eax
	je	LBB0_15
## %bb.23:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
LBB0_13:
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_DRM_DEV_ERROR
	movq	8(%r13), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_msm_dss_put_clk
LBB0_21:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	xorl	%ebx, %ebx
	movq	_DSS_CLK_PCLK@GOTPCREL(%rip), %r14
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	addq	$16, %rbx
	decq	%r15
	je	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movl	8(%rax,%rbx), %edi
	callq	_clk_get_rate
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	8(%r13), %rcx
	movl	%eax, (%rcx,%rbx)
	movl	(%r14), %eax
	movl	%eax, 4(%rcx,%rbx)
	jmp	LBB0_18
LBB0_19:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, (%r13)
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clock-names"

L_.str.1:                               ## @.str.1
	.asciz	"clocks are not defined\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"Failed to get clock name for %d\n"

	.comm	_DSS_CLK_AHB,4,2                ## @DSS_CLK_AHB
L_.str.3:                               ## @.str.3
	.asciz	"Failed to get clock refs %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to set clock defaults %d\n"

	.comm	_DSS_CLK_PCLK,4,2               ## @DSS_CLK_PCLK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_dss_parse_clock            ; -- Begin function msm_dss_parse_clock
	.p2align	2
_msm_dss_parse_clock:                   ; @msm_dss_parse_clock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_7
; %bb.2:
	mov	x21, x0
	str	wzr, [x19]
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_property_count_strings
	cmp	w0, #0
	b.le	LBB0_9
; %bb.3:
	mov	w20, w0
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #4
	bl	_devm_kcalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_10
; %bb.4:
	mov	x22, #0
	mov	w24, #12
Lloh5:
	adrp	x25, _DSS_CLK_AHB@GOTPAGE
Lloh6:
	ldr	x25, [x25, _DSS_CLK_AHB@GOTPAGEOFF]
Lloh7:
	adrp	x23, l_.str@PAGE
Lloh8:
	add	x23, x23, l_.str@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	add	x3, sp, #8
	mov	x1, x23
	mov	x2, x22
	bl	_of_property_read_string_index
	cbnz	w0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x24]
	ldr	x1, [sp, #8]
	mov	w2, #4
	bl	_strlcpy
	ldr	w8, [x25]
	ldr	x1, [x19, #8]
	add	x9, x1, x24
	stur	w8, [x9, #-8]
	add	x22, x22, #1
	add	x24, x24, #16
	cmp	x20, x22
	b.ne	LBB0_5
	b	LBB0_12
LBB0_7:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_17
LBB0_9:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	mov	w22, #0
	b	LBB0_17
LBB0_10:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_11:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_DRM_DEV_ERROR
	ldr	x1, [x19, #8]
LBB0_12:
	mov	x0, x21
	mov	x2, x20
	bl	_msm_dss_get_clk
	cbz	w0, LBB0_14
; %bb.13:
	mov	x22, x0
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_16
LBB0_14:
	ldr	w0, [x21]
	mov	w1, #0
	bl	_of_clk_set_defaults
	cbz	w0, LBB0_18
; %bb.15:
	mov	x22, x0
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_16:
	mov	x0, x21
	mov	x2, x22
	bl	_DRM_DEV_ERROR
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_msm_dss_put_clk
LBB0_17:
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_18:
	mov	x21, #0
Lloh21:
	adrp	x22, _DSS_CLK_PCLK@GOTPAGE
Lloh22:
	ldr	x22, [x22, _DSS_CLK_PCLK@GOTPAGEOFF]
	mov	x23, x20
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x21, x21, #16
	subs	x23, x23, #1
	b.eq	LBB0_22
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x21
	ldr	w0, [x8, #8]
	bl	_clk_get_rate
	cbz	w0, LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x21
	str	w0, [x8]
	ldr	w9, [x22]
	str	w9, [x8, #4]
	b	LBB0_19
LBB0_22:
	mov	w22, #0
	str	w20, [x19]
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clock-names"

l_.str.1:                               ; @.str.1
	.asciz	"clocks are not defined\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"Failed to get clock name for %d\n"

	.comm	_DSS_CLK_AHB,4,2                ; @DSS_CLK_AHB
l_.str.3:                               ; @.str.3
	.asciz	"Failed to get clock refs %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to set clock defaults %d\n"

	.comm	_DSS_CLK_PCLK,4,2               ; @DSS_CLK_PCLK
.subsections_via_symbols
