	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _omap_dispc_initial_config
__omap_dispc_initial_config:            ## @_omap_dispc_initial_config
	.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, %rbx
	movq	_FEAT_CORE_CLK_DIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dispc_has_feature
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_DISPC_DIVISOR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_dispc_read_reg
	movl	%eax, %edi
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_FLD_MOD
	movl	%eax, %edi
	movl	$1, %esi
	movl	$23, %edx
	movl	$16, %ecx
	callq	_FLD_MOD
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dispc_write_reg
	movq	%rbx, %rdi
	callq	_dispc_fclk_rate
	movl	%eax, 8(%rbx)
LBB0_2:
	movq	(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_4
## %bb.3:
	movq	_DISPC_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$3, %ecx
	movl	$3, %r8d
	callq	_REG_FLD_MOD
LBB0_4:
	movq	_FEAT_FUNCGATED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dispc_has_feature
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_7
LBB0_6:
	movq	_DISPC_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$9, %ecx
	movl	$9, %r8d
	callq	_REG_FLD_MOD
LBB0_7:
	movq	%rbx, %rdi
	callq	_dispc_setup_color_conv_coef
	movq	_OMAP_DSS_LOAD_FRAME_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dispc_set_loadmode
	movq	%rbx, %rdi
	callq	_dispc_init_fifos
	movq	%rbx, %rdi
	callq	_dispc_configure_burst_sizes
	movq	%rbx, %rdi
	callq	_dispc_ovl_enable_zorder_planes
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	movq	_DISPC_MSTANDBY_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_REG_FLD_MOD
LBB0_9:
	movq	_FEAT_MFLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dispc_has_feature
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dispc_init_mflag               ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FEAT_CORE_CLK_DIV,4,2          ## @FEAT_CORE_CLK_DIV
	.comm	_DISPC_DIVISOR,4,2              ## @DISPC_DIVISOR
	.comm	_DISPC_CONFIG,4,2               ## @DISPC_CONFIG
	.comm	_FEAT_FUNCGATED,4,2             ## @FEAT_FUNCGATED
	.comm	_OMAP_DSS_LOAD_FRAME_ONLY,4,2   ## @OMAP_DSS_LOAD_FRAME_ONLY
	.comm	_DISPC_MSTANDBY_CTRL,4,2        ## @DISPC_MSTANDBY_CTRL
	.comm	_FEAT_MFLAG,4,2                 ## @FEAT_MFLAG
	.no_dead_strip	__omap_dispc_initial_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _omap_dispc_initial_config
__omap_dispc_initial_config:            ; @_omap_dispc_initial_config
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _FEAT_CORE_CLK_DIV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FEAT_CORE_CLK_DIV@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_dispc_has_feature
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x20, _DISPC_DIVISOR@GOTPAGE
Lloh4:
	ldr	x20, [x20, _DISPC_DIVISOR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_dispc_read_reg
	mov	w1, #1
	mov	w2, #0
	mov	w3, #0
	bl	_FLD_MOD
	mov	w1, #1
	mov	w2, #23
	mov	w3, #16
	bl	_FLD_MOD
	mov	x2, x0
	ldr	w1, [x20]
	mov	x0, x19
	bl	_dispc_write_reg
	mov	x0, x19
	bl	_dispc_fclk_rate
	str	w0, [x19, #8]
LBB0_2:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
Lloh5:
	adrp	x20, _DISPC_CONFIG@GOTPAGE
Lloh6:
	ldr	x20, [x20, _DISPC_CONFIG@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #3
	mov	w4, #3
	bl	_REG_FLD_MOD
LBB0_4:
Lloh7:
	adrp	x8, _FEAT_FUNCGATED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FEAT_FUNCGATED@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dispc_has_feature
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_7
LBB0_6:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #9
	mov	w4, #9
	bl	_REG_FLD_MOD
LBB0_7:
	mov	x0, x19
	bl	_dispc_setup_color_conv_coef
Lloh10:
	adrp	x8, _OMAP_DSS_LOAD_FRAME_ONLY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OMAP_DSS_LOAD_FRAME_ONLY@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dispc_set_loadmode
	mov	x0, x19
	bl	_dispc_init_fifos
	mov	x0, x19
	bl	_dispc_configure_burst_sizes
	mov	x0, x19
	bl	_dispc_ovl_enable_zorder_planes
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
Lloh13:
	adrp	x8, _DISPC_MSTANDBY_CTRL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DISPC_MSTANDBY_CTRL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	mov	w4, #0
	bl	_REG_FLD_MOD
LBB0_9:
Lloh16:
	adrp	x8, _FEAT_MFLAG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FEAT_MFLAG@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dispc_has_feature
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dispc_init_mflag
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_FEAT_CORE_CLK_DIV,4,2          ; @FEAT_CORE_CLK_DIV
	.comm	_DISPC_DIVISOR,4,2              ; @DISPC_DIVISOR
	.comm	_DISPC_CONFIG,4,2               ; @DISPC_CONFIG
	.comm	_FEAT_FUNCGATED,4,2             ; @FEAT_FUNCGATED
	.comm	_OMAP_DSS_LOAD_FRAME_ONLY,4,2   ; @OMAP_DSS_LOAD_FRAME_ONLY
	.comm	_DISPC_MSTANDBY_CTRL,4,2        ; @DISPC_MSTANDBY_CTRL
	.comm	_FEAT_MFLAG,4,2                 ; @FEAT_MFLAG
	.no_dead_strip	__omap_dispc_initial_config
.subsections_via_symbols
