	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun4i_tcon_set_status          ## -- Begin function sun4i_tcon_set_status
	.p2align	4, 0x90
_sun4i_tcon_set_status:                 ## @sun4i_tcon_set_status
	.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
	movl	(%rsi), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_5
## %bb.1:
	movl	%edx, %r14d
	movq	%rdi, %r15
	xorl	%r12d, %r12d
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movl	$1, %r12d
LBB0_3:
	movl	(%r15), %edi
	movq	_SUN4I_TCON_GCTL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SUN4I_TCON_GCTL_TCON_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.4:
	movl	%edx, %ecx
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_DRIVER               ## TAILCALL
LBB0_6:
	movq	%rsi, %rbx
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.7:
	movl	(%r15), %edi
	movq	_SUN4I_TCON_GCTL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SUN4I_TCON_GCTL_TCON_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_sun4i_tcon_lvds_set_status
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_8:
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sun4i_tcon_lvds_set_status
	movl	(%r15), %edi
	movq	_SUN4I_TCON_GCTL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SUN4I_TCON_GCTL_TCON_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_9:
	xorl	%ecx, %ecx
LBB0_10:
	callq	_regmap_update_bits
LBB0_11:
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sun4i_tcon_channel_set_status  ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown encoder type, doing nothing...\n"

	.comm	_SUN4I_TCON_GCTL_REG,4,2        ## @SUN4I_TCON_GCTL_REG
	.comm	_SUN4I_TCON_GCTL_TCON_ENABLE,4,2 ## @SUN4I_TCON_GCTL_TCON_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun4i_tcon_set_status          ; -- Begin function sun4i_tcon_set_status
	.p2align	2
_sun4i_tcon_set_status:                 ; @sun4i_tcon_set_status
	.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
	ldr	w8, [x1]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_5
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	mov	w21, #0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w21, #1
LBB0_3:
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _SUN4I_TCON_GCTL_REG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SUN4I_TCON_GCTL_REG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _SUN4I_TCON_GCTL_TCON_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SUN4I_TCON_GCTL_TCON_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	cbz	w19, LBB0_9
; %bb.4:
	mov	x3, x2
	b	LBB0_10
LBB0_5:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_DRM_DEBUG_DRIVER
LBB0_6:
	mov	x22, x1
	cbz	w19, LBB0_8
; %bb.7:
	ldr	w0, [x20]
Lloh10:
	adrp	x8, _SUN4I_TCON_GCTL_REG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SUN4I_TCON_GCTL_REG@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _SUN4I_TCON_GCTL_TCON_ENABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SUN4I_TCON_GCTL_TCON_ENABLE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
	mov	x0, x20
	mov	x1, x22
	mov	w2, #1
	bl	_sun4i_tcon_lvds_set_status
	mov	w21, #0
	b	LBB0_11
LBB0_8:
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	bl	_sun4i_tcon_lvds_set_status
	mov	w21, #0
	ldr	w0, [x20]
Lloh16:
	adrp	x8, _SUN4I_TCON_GCTL_REG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SUN4I_TCON_GCTL_REG@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _SUN4I_TCON_GCTL_TCON_ENABLE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SUN4I_TCON_GCTL_TCON_ENABLE@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
LBB0_9:
	mov	w3, #0
LBB0_10:
	bl	_regmap_update_bits
LBB0_11:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	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
	b	_sun4i_tcon_channel_set_status
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown encoder type, doing nothing...\n"

	.comm	_SUN4I_TCON_GCTL_REG,4,2        ; @SUN4I_TCON_GCTL_REG
	.comm	_SUN4I_TCON_GCTL_TCON_ENABLE,4,2 ; @SUN4I_TCON_GCTL_TCON_ENABLE
.subsections_via_symbols
