	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dss_probe_hardware
_dss_probe_hardware:                    ## @dss_probe_hardware
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_dss_runtime_get
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	24(%rbx), %edi
	callq	_clk_get_rate
	movl	%eax, 28(%rbx)
	movq	_DSS_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_REG_FLD_MOD
	movq	_DSS_CLK_SRC_FCK@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_dss_select_dispc_clk_source
	movq	(%r15), %rax
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%r15), %rax
	movq	16(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%r15), %rax
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	_DSS_REVISION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dss_read_reg
	movl	%eax, %r15d
	movl	%eax, %edi
	movl	$7, %esi
	movl	$4, %edx
	callq	_FLD_GET
	movl	%eax, %r12d
	movl	%r15d, %edi
	movl	$3, %esi
	xorl	%edx, %edx
	callq	_FLD_GET
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_pr_info
	movq	%rbx, %rdi
	callq	_dss_runtime_put
LBB0_2:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSS_CONTROL,4,2                ## @DSS_CONTROL
	.comm	_DSS_CLK_SRC_FCK,8,3            ## @DSS_CLK_SRC_FCK
	.comm	_DSS_REVISION,4,2               ## @DSS_REVISION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OMAP DSS rev %d.%d\n"

	.no_dead_strip	_dss_probe_hardware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dss_probe_hardware
_dss_probe_hardware:                    ; @dss_probe_hardware
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_dss_runtime_get
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #24]
	bl	_clk_get_rate
	str	w0, [x19, #28]
Lloh0:
	adrp	x8, _DSS_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSS_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_REG_FLD_MOD
Lloh3:
	adrp	x21, _DSS_CLK_SRC_FCK@GOTPAGE
Lloh4:
	ldr	x21, [x21, _DSS_CLK_SRC_FCK@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	x0, x19
	bl	_dss_select_dispc_clk_source
	ldr	x8, [x21]
	ldr	x9, [x19, #16]
	str	x8, [x9]
	ldr	x8, [x21]
	ldr	x9, [x19, #16]
	str	x8, [x9, #8]
	str	x8, [x19, #8]
	ldr	x9, [x19]
	str	x8, [x9]
	ldr	x8, [x21]
	ldr	x9, [x19]
	str	x8, [x9, #8]
Lloh5:
	adrp	x8, _DSS_REVISION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DSS_REVISION@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dss_read_reg
	mov	x21, x0
	mov	w1, #7
	mov	w2, #4
	bl	_FLD_GET
	mov	x22, x0
	mov	x0, x21
	mov	w1, #3
	mov	w2, #0
	bl	_FLD_GET
	mov	x2, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_pr_info
	mov	x0, x19
	bl	_dss_runtime_put
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DSS_CONTROL,4,2                ; @DSS_CONTROL
	.comm	_DSS_CLK_SRC_FCK,8,3            ; @DSS_CLK_SRC_FCK
	.comm	_DSS_REVISION,4,2               ; @DSS_REVISION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OMAP DSS rev %d.%d\n"

	.no_dead_strip	_dss_probe_hardware
.subsections_via_symbols
