	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_tcon_channel_set_status
_sun4i_tcon_channel_set_status:         ## @sun4i_tcon_channel_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movq	%rdi, %rbx
	cmpl	$1, %esi
	je	LBB0_4
## %bb.1:
	testl	%esi, %esi
	jne	LBB0_3
## %bb.2:
	movq	16(%rbx), %rax
	xorl	%edi, %edi
	cmpl	$0, 4(%rax)
	sete	%dil
	callq	_WARN_ON
	movl	8(%rbx), %edi
	movq	_SUN4I_TCON0_CTL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SUN4I_TCON0_CTL_TCON_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%r14d, %r14d
	movl	%edx, %ecx
	cmovel	%r14d, %ecx
	callq	_regmap_update_bits
	addq	$24, %rbx
	jmp	LBB0_5
LBB0_4:
	movq	16(%rbx), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_WARN_ON
	movl	8(%rbx), %edi
	movq	_SUN4I_TCON1_CTL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SUN4I_TCON1_CTL_TCON_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%r14d, %r14d
	movl	%edx, %ecx
	cmovel	%r14d, %ecx
	callq	_regmap_update_bits
LBB0_5:
	movq	(%rbx), %rbx
	movq	%rbx, %rdi
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.6:
	callq	_clk_prepare_enable
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_clk_rate_exclusive_get         ## TAILCALL
LBB0_3:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DRM_WARN                       ## TAILCALL
LBB0_7:
	callq	_clk_rate_exclusive_put
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_clk_disable_unprepare          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SUN4I_TCON0_CTL_REG,4,2        ## @SUN4I_TCON0_CTL_REG
	.comm	_SUN4I_TCON0_CTL_TCON_ENABLE,4,2 ## @SUN4I_TCON0_CTL_TCON_ENABLE
	.comm	_SUN4I_TCON1_CTL_REG,4,2        ## @SUN4I_TCON1_CTL_REG
	.comm	_SUN4I_TCON1_CTL_TCON_ENABLE,4,2 ## @SUN4I_TCON1_CTL_TCON_ENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown channel... doing nothing\n"

	.no_dead_strip	_sun4i_tcon_channel_set_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_tcon_channel_set_status
_sun4i_tcon_channel_set_status:         ; @sun4i_tcon_channel_set_status
	.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, x2
	mov	x20, x0
	cmp	w1, #1
	b.eq	LBB0_3
; %bb.1:
	cbnz	w1, LBB0_6
; %bb.2:
	ldr	x8, [x20, #16]
	ldr	w8, [x8, #4]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	w0, [x20, #8]
Lloh0:
	adrp	x8, _SUN4I_TCON0_CTL_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUN4I_TCON0_CTL_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SUN4I_TCON0_CTL_TCON_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SUN4I_TCON0_CTL_TCON_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	cmp	w19, #0
	csel	w3, wzr, w2, eq
	bl	_regmap_update_bits
	add	x20, x20, #24
	b	LBB0_4
LBB0_3:
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	w0, [x20, #8]
Lloh6:
	adrp	x8, _SUN4I_TCON1_CTL_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SUN4I_TCON1_CTL_REG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _SUN4I_TCON1_CTL_TCON_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SUN4I_TCON1_CTL_TCON_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	cmp	w19, #0
	csel	w3, wzr, w2, eq
	bl	_regmap_update_bits
LBB0_4:
	ldr	x20, [x20]
	mov	x0, x20
	cbz	w19, LBB0_7
; %bb.5:
	bl	_clk_prepare_enable
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_clk_rate_exclusive_get
LBB0_6:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_WARN
LBB0_7:
	bl	_clk_rate_exclusive_put
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_clk_disable_unprepare
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SUN4I_TCON0_CTL_REG,4,2        ; @SUN4I_TCON0_CTL_REG
	.comm	_SUN4I_TCON0_CTL_TCON_ENABLE,4,2 ; @SUN4I_TCON0_CTL_TCON_ENABLE
	.comm	_SUN4I_TCON1_CTL_REG,4,2        ; @SUN4I_TCON1_CTL_REG
	.comm	_SUN4I_TCON1_CTL_TCON_ENABLE,4,2 ; @SUN4I_TCON1_CTL_TCON_ENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown channel... doing nothing\n"

	.no_dead_strip	_sun4i_tcon_channel_set_status
.subsections_via_symbols
