	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ns2501_dpms
_ns2501_dpms:                           ## @ns2501_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, %ebx
	movq	%rdi, %r14
	movq	(%rdi), %r15
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.1:
	movq	_NS2501_REGC0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	(%r15), %rax
	movl	(%rax), %edx
	orl	$8, %edx
	movq	%r14, %rdi
	callq	_ns2501_writeb
	movq	_NS2501_REG41@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rax
	movl	4(%rax), %edx
	movq	%r14, %rdi
	callq	_ns2501_writeb
	movq	_NS2501_REG34@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NS2501_34_ENABLE_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ns2501_writeb
	movl	$15, %edi
	callq	_msleep
	movq	_NS2501_REG8@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	(%r15), %rax
	movq	_NS2501_8_BPAS@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	orl	8(%rax), %edx
	movq	%r14, %rdi
	callq	_ns2501_writeb
	movq	(%r15), %rax
	movl	8(%rax), %edx
	testl	%edx, (%r13)
	jne	LBB0_3
## %bb.2:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_ns2501_writeb
LBB0_3:
	movl	$200, %edi
	callq	_msleep
	movq	_NS2501_REG34@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NS2501_34_ENABLE_BACKLIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NS2501_34_ENABLE_OUTPUT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ns2501_writeb
	movq	(%r15), %rax
	movl	(%rax), %edx
	jmp	LBB0_5
LBB0_4:
	movq	_NS2501_REG34@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_NS2501_34_ENABLE_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ns2501_writeb
	movl	$200, %edi
	callq	_msleep
	movq	_NS2501_REG8@GOTPCREL(%rip), %rax
	movq	_NS2501_8_VEN@GOTPCREL(%rip), %rcx
	movq	_NS2501_8_HEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_NS2501_8_BPAS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ns2501_writeb
	movl	$15, %edi
	callq	_msleep
	xorl	%edx, %edx
LBB0_5:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ns2501_writeb                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Trying set the dpms of the DVO to %i\n"

	.comm	_NS2501_REGC0,4,2               ## @NS2501_REGC0
	.comm	_NS2501_REG41,4,2               ## @NS2501_REG41
	.comm	_NS2501_REG34,4,2               ## @NS2501_REG34
	.comm	_NS2501_34_ENABLE_OUTPUT,4,2    ## @NS2501_34_ENABLE_OUTPUT
	.comm	_NS2501_REG8,4,2                ## @NS2501_REG8
	.comm	_NS2501_8_BPAS,4,2              ## @NS2501_8_BPAS
	.comm	_NS2501_34_ENABLE_BACKLIGHT,4,2 ## @NS2501_34_ENABLE_BACKLIGHT
	.comm	_NS2501_8_VEN,4,2               ## @NS2501_8_VEN
	.comm	_NS2501_8_HEN,4,2               ## @NS2501_8_HEN
	.no_dead_strip	_ns2501_dpms
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ns2501_dpms
_ns2501_dpms:                           ; @ns2501_dpms
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	cbz	w20, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _NS2501_REGC0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NS2501_REGC0@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	x8, [x21]
	ldr	w8, [x8]
	orr	w2, w8, #0x8
	mov	x0, x19
	bl	_ns2501_writeb
Lloh5:
	adrp	x8, _NS2501_REG41@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NS2501_REG41@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x8, [x21]
	ldr	w2, [x8, #4]
	mov	x0, x19
	bl	_ns2501_writeb
Lloh8:
	adrp	x20, _NS2501_REG34@GOTPAGE
Lloh9:
	ldr	x20, [x20, _NS2501_REG34@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh10:
	adrp	x22, _NS2501_34_ENABLE_OUTPUT@GOTPAGE
Lloh11:
	ldr	x22, [x22, _NS2501_34_ENABLE_OUTPUT@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_ns2501_writeb
	mov	w0, #15
	bl	_msleep
Lloh12:
	adrp	x23, _NS2501_REG8@GOTPAGE
Lloh13:
	ldr	x23, [x23, _NS2501_REG8@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	x8, [x21]
	ldr	w8, [x8, #8]
Lloh14:
	adrp	x24, _NS2501_8_BPAS@GOTPAGE
Lloh15:
	ldr	x24, [x24, _NS2501_8_BPAS@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_ns2501_writeb
	ldr	x8, [x21]
	ldr	w2, [x8, #8]
	ldr	w8, [x24]
	tst	w8, w2
	b.ne	LBB0_3
; %bb.2:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ns2501_writeb
LBB0_3:
	mov	w0, #200
	bl	_msleep
	ldr	w1, [x20]
	ldr	w8, [x22]
Lloh16:
	adrp	x9, _NS2501_34_ENABLE_BACKLIGHT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NS2501_34_ENABLE_BACKLIGHT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_ns2501_writeb
	ldr	x8, [x21]
	ldr	w2, [x8]
Lloh19:
	adrp	x20, _NS2501_REGC0@GOTPAGE
Lloh20:
	ldr	x20, [x20, _NS2501_REGC0@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh21:
	adrp	x20, _NS2501_REG34@GOTPAGE
Lloh22:
	ldr	x20, [x20, _NS2501_REG34@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh23:
	adrp	x8, _NS2501_34_ENABLE_OUTPUT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NS2501_34_ENABLE_OUTPUT@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ns2501_writeb
	mov	w0, #200
	bl	_msleep
Lloh26:
	adrp	x8, _NS2501_REG8@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NS2501_REG8@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _NS2501_8_VEN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _NS2501_8_VEN@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _NS2501_8_HEN@GOTPAGE
Lloh33:
	ldr	x9, [x9, _NS2501_8_HEN@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh35:
	adrp	x9, _NS2501_8_BPAS@GOTPAGE
Lloh36:
	ldr	x9, [x9, _NS2501_8_BPAS@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_ns2501_writeb
	mov	w0, #15
	bl	_msleep
	mov	w2, #0
LBB0_5:
	ldr	w1, [x20]
	mov	x0, x19
	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	_ns2501_writeb
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Trying set the dpms of the DVO to %i\n"

	.comm	_NS2501_REGC0,4,2               ; @NS2501_REGC0
	.comm	_NS2501_REG41,4,2               ; @NS2501_REG41
	.comm	_NS2501_REG34,4,2               ; @NS2501_REG34
	.comm	_NS2501_34_ENABLE_OUTPUT,4,2    ; @NS2501_34_ENABLE_OUTPUT
	.comm	_NS2501_REG8,4,2                ; @NS2501_REG8
	.comm	_NS2501_8_BPAS,4,2              ; @NS2501_8_BPAS
	.comm	_NS2501_34_ENABLE_BACKLIGHT,4,2 ; @NS2501_34_ENABLE_BACKLIGHT
	.comm	_NS2501_8_VEN,4,2               ; @NS2501_8_VEN
	.comm	_NS2501_8_HEN,4,2               ; @NS2501_8_HEN
	.no_dead_strip	_ns2501_dpms
.subsections_via_symbols
