	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivch_dpms
_ivch_dpms:                             ## @ivch_dpms
	.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
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_ivch_reset
	movq	_VR01@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_ivch_read
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	xorl	%edx, %edx
	testl	%r14d, %r14d
	setne	%dl
	movq	_VR80@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ivch_write
	movq	_VR01_LCD_ENABLE@GOTPCREL(%rip), %rax
	movq	_VR01_DVO_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	orl	-44(%rbp), %edx
	jmp	LBB0_4
LBB0_3:
	notl	%edx
	andl	-44(%rbp), %edx
LBB0_4:
	movl	%edx, -44(%rbp)
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_ivch_write
	movl	$100, %ebx
	leaq	-48(%rbp), %r15
	movq	_VR30_PANEL_ON@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_VR30@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_ivch_read
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %eax
	xorl	%ecx, %ecx
	testl	%eax, -48(%rbp)
	setne	%cl
	cmpl	%r14d, %ecx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_udelay
	decl	%ebx
	jne	LBB0_5
LBB0_8:
	movl	$16000, %edi                    ## imm = 0x3E80
	callq	_udelay
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VR01,4,2                       ## @VR01
	.comm	_VR80,4,2                       ## @VR80
	.comm	_VR01_LCD_ENABLE,4,2            ## @VR01_LCD_ENABLE
	.comm	_VR01_DVO_ENABLE,4,2            ## @VR01_DVO_ENABLE
	.comm	_VR30,4,2                       ## @VR30
	.comm	_VR30_PANEL_ON,4,2              ## @VR30_PANEL_ON
	.no_dead_strip	_ivch_dpms
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivch_dpms
_ivch_dpms:                             ; @ivch_dpms
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
	bl	_ivch_reset
Lloh0:
	adrp	x21, _VR01@GOTPAGE
Lloh1:
	ldr	x21, [x21, _VR01@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x20
	bl	_ivch_read
	cbz	w0, LBB0_9
; %bb.1:
	cmp	w19, #0
	cset	w2, ne
Lloh2:
	adrp	x8, _VR80@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VR80@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ivch_write
Lloh5:
	adrp	x8, _VR01_LCD_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VR01_LCD_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _VR01_DVO_ENABLE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VR01_DVO_ENABLE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cbz	w19, LBB0_3
; %bb.2:
	ldr	w9, [sp, #12]
	orr	w2, w8, w9
	b	LBB0_4
LBB0_3:
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
LBB0_4:
	str	w2, [sp, #12]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_ivch_write
	mov	w21, #100
Lloh11:
	adrp	x22, _VR30@GOTPAGE
Lloh12:
	ldr	x22, [x22, _VR30@GOTPAGEOFF]
Lloh13:
	adrp	x23, _VR30_PANEL_ON@GOTPAGE
Lloh14:
	ldr	x23, [x23, _VR30_PANEL_ON@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	add	x2, sp, #8
	mov	x0, x20
	bl	_ivch_read
	cbz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #8]
	ldr	w9, [x23]
	tst	w9, w8
	cset	w8, ne
	cmp	w8, w19
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1000
	bl	_udelay
	subs	w21, w21, #1
	b.ne	LBB0_5
LBB0_8:
	mov	w0, #16000
	bl	_udelay
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_VR01,4,2                       ; @VR01
	.comm	_VR80,4,2                       ; @VR80
	.comm	_VR01_LCD_ENABLE,4,2            ; @VR01_LCD_ENABLE
	.comm	_VR01_DVO_ENABLE,4,2            ; @VR01_DVO_ENABLE
	.comm	_VR30,4,2                       ; @VR30
	.comm	_VR30_PANEL_ON,4,2              ; @VR30_PANEL_ON
	.no_dead_strip	_ivch_dpms
.subsections_via_symbols
