	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dss_sdi_enable                 ## -- Begin function dss_sdi_enable
	.p2align	4, 0x90
_dss_sdi_enable:                        ## @dss_sdi_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movl	$1, %esi
	callq	_dispc_pck_free_enable
	movq	_DSS_PLL_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	movl	$18, %ecx
	movl	$18, %r8d
	callq	_REG_FLD_MOD
	movl	$1, %edi
	callq	_udelay
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	movl	$28, %ecx
	movl	$28, %r8d
	callq	_REG_FLD_MOD
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	(%r12), %r13
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	addq	%r13, %rbx
	movq	_DSS_SDI_STATUS@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_dss_read_reg
	testb	$64, %al
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	callq	_time_after_eq
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_DSSERR
	jmp	LBB0_13
LBB0_4:
	movl	(%r15), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$28, %ecx
	movl	$28, %r8d
	callq	_REG_FLD_MOD
	movq	(%r12), %r15
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	addq	%r15, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_dss_read_reg
	testb	$32, %al
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	callq	_time_after_eq
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	callq	_DSSERR
	movq	_DSS_PLL_CONTROL@GOTPCREL(%rip), %r15
	jmp	LBB0_13
LBB0_8:
	movl	(%r14), %edi
	movl	$1, %esi
	callq	_dispc_lcd_enable_signal
	movq	(%r12), %r15
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	addq	%r15, %rbx
	movq	_DSS_PLL_CONTROL@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_dss_read_reg
	testb	$4, %al
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	callq	_time_after_eq
	testq	%rax, %rax
	je	LBB0_9
## %bb.12:
	leaq	L_.str.2(%rip), %rdi
	callq	_DSSERR
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_dispc_lcd_enable_signal
LBB0_13:
	movl	(%r15), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$18, %ecx
	movl	$18, %r8d
	callq	_REG_FLD_MOD
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_dispc_pck_free_enable
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_DSS_PLL_CONTROL,4,2            ## @DSS_PLL_CONTROL
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_DSS_SDI_STATUS,4,2             ## @DSS_SDI_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PLL lock request timed out\n"

L_.str.1:                               ## @.str.1
	.asciz	"PLL lock timed out\n"

L_.str.2:                               ## @.str.2
	.asciz	"SDI reset timed out\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dss_sdi_enable                 ; -- Begin function dss_sdi_enable
	.p2align	2
_dss_sdi_enable:                        ; @dss_sdi_enable
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x0]
	mov	w1, #1
	bl	_dispc_pck_free_enable
Lloh0:
	adrp	x21, _DSS_PLL_CONTROL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DSS_PLL_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #18
	mov	w4, #18
	bl	_REG_FLD_MOD
	mov	w0, #1
	bl	_udelay
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #28
	mov	w4, #28
	bl	_REG_FLD_MOD
Lloh2:
	adrp	x22, _jiffies@GOTPAGE
Lloh3:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x20, [x22]
	mov	w0, #500
	bl	_msecs_to_jiffies
	add	x20, x0, x20
Lloh4:
	adrp	x23, _DSS_SDI_STATUS@GOTPAGE
Lloh5:
	ldr	x23, [x23, _DSS_SDI_STATUS@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_dss_read_reg
	tbz	w0, #6, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x22]
	mov	x1, x20
	bl	_time_after_eq
	cbz	x0, LBB0_1
; %bb.3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DSSERR
	b	LBB0_12
LBB0_4:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #28
	mov	w4, #28
	bl	_REG_FLD_MOD
	ldr	x20, [x22]
	mov	w0, #500
	bl	_msecs_to_jiffies
	add	x20, x0, x20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_dss_read_reg
	tbnz	w0, #5, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x22]
	mov	x1, x20
	bl	_time_after_eq
	cbz	x0, LBB0_5
; %bb.7:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DSSERR
	b	LBB0_12
LBB0_8:
	ldr	w0, [x19]
	mov	w1, #1
	bl	_dispc_lcd_enable_signal
	ldr	x20, [x22]
	mov	w0, #500
	bl	_msecs_to_jiffies
	add	x20, x0, x20
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_dss_read_reg
	tbnz	w0, #2, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x22]
	mov	x1, x20
	bl	_time_after_eq
	cbz	x0, LBB0_9
; %bb.11:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DSSERR
	ldr	w0, [x19]
	mov	w1, #0
	bl	_dispc_lcd_enable_signal
LBB0_12:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #18
	mov	w4, #18
	bl	_REG_FLD_MOD
	ldr	w0, [x19]
	mov	w1, #0
	bl	_dispc_pck_free_enable
Lloh12:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	w0, #0
	b	LBB0_13
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DSS_PLL_CONTROL,4,2            ; @DSS_PLL_CONTROL
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_DSS_SDI_STATUS,4,2             ; @DSS_SDI_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PLL lock request timed out\n"

l_.str.1:                               ; @.str.1
	.asciz	"PLL lock timed out\n"

l_.str.2:                               ; @.str.2
	.asciz	"SDI reset timed out\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
.subsections_via_symbols
