	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimd_clear_channels
_fimd_clear_channels:                   ## @fimd_clear_channels
	.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	4(%r14), %edi
	callq	_pm_runtime_get_sync
	movl	8(%r14), %edi
	callq	_clk_prepare_enable
	movl	12(%r14), %edi
	callq	_clk_prepare_enable
	movq	_WINDOWS_NR@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.1:
	xorl	%r15d, %r15d
	movq	_WINCONx_ENWIN@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	movq	_WINDOWS_NR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jae	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rbx
	movl	%r15d, %edi
	callq	_WINCON
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl
	testl	%eax, (%r13)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_fimd_enable_video_output
	movq	24(%r14), %rax
	movl	$1, %r12d
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_fimd_enable_shadow_channel_path
	jmp	LBB0_5
LBB0_6:
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.7:
	movl	$0, (%r14)
	movl	16(%r14), %edi
	callq	_fimd_enable_vblank
	movl	16(%r14), %edi
	callq	_fimd_wait_for_vblank
	movl	16(%r14), %edi
	callq	_fimd_disable_vblank
	movl	$1, (%r14)
LBB0_8:
	movl	12(%r14), %edi
	callq	_clk_disable_unprepare
	movl	8(%r14), %edi
	callq	_clk_disable_unprepare
	movl	4(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pm_runtime_put                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WINDOWS_NR,4,2                 ## @WINDOWS_NR
	.comm	_WINCONx_ENWIN,4,2              ## @WINCONx_ENWIN
	.no_dead_strip	_fimd_clear_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimd_clear_channels
_fimd_clear_channels:                   ; @fimd_clear_channels
	.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
	ldr	x19, [x0]
	ldr	w0, [x19, #4]
	bl	_pm_runtime_get_sync
	ldr	w0, [x19, #8]
	bl	_clk_prepare_enable
	ldr	w0, [x19, #12]
	bl	_clk_prepare_enable
Lloh0:
	adrp	x21, _WINDOWS_NR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WINDOWS_NR@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_9
; %bb.1:
	mov	w20, #0
	mov	w23, #0
Lloh2:
	adrp	x22, _WINCONx_ENWIN@GOTPAGE
Lloh3:
	ldr	x22, [x22, _WINCONx_ENWIN@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.hs	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x19, #32]
	mov	x0, x20
	bl	_WINCON
	add	x0, x0, x24
	bl	_readl
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_fimd_enable_video_output
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_fimd_enable_shadow_channel_path
	b	LBB0_2
LBB0_7:
	cbz	w23, LBB0_9
; %bb.8:
	str	wzr, [x19]
	ldr	w0, [x19, #16]
	bl	_fimd_enable_vblank
	ldr	w0, [x19, #16]
	bl	_fimd_wait_for_vblank
	ldr	w0, [x19, #16]
	bl	_fimd_disable_vblank
	mov	w8, #1
	str	w8, [x19]
LBB0_9:
	ldr	w0, [x19, #12]
	bl	_clk_disable_unprepare
	ldr	w0, [x19, #8]
	bl	_clk_disable_unprepare
	ldr	w0, [x19, #4]
	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
	b	_pm_runtime_put
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_WINDOWS_NR,4,2                 ; @WINDOWS_NR
	.comm	_WINCONx_ENWIN,4,2              ; @WINCONx_ENWIN
	.no_dead_strip	_fimd_clear_channels
.subsections_via_symbols
