	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function repaper_pipe_disable
_repaper_pipe_disable:                  ## @repaper_pipe_disable
	.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	(%rdi), %edi
	callq	_drm_to_epd
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.1:
	movq	%rax, %r15
	movq	16(%rax), %r14
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movl	$0, (%r15)
	cmpl	$0, 4(%r15)
	je	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	movq	_REPAPER_COMPENSATE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %r9d
	movq	%r15, %rdi
	movl	$32767, %esi                    ## imm = 0x7FFF
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_repaper_one_line
	incl	%ebx
	cmpl	4(%r15), %ebx
	jb	LBB0_3
LBB0_4:
	cmpq	$0, 8(%r15)
	je	LBB0_6
## %bb.5:
	movq	_REPAPER_COMPENSATE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r15, %rdi
	movl	$32767, %esi                    ## imm = 0x7FFF
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_repaper_one_line
	movl	$25, %edi
	callq	_msleep
	movq	8(%r15), %rdi
	xorl	%esi, %esi
	callq	_gpiod_set_value_cansleep
	movl	$200, %edi
	callq	_msleep
	movq	8(%r15), %rdi
	movl	$1, %esi
	callq	_gpiod_set_value_cansleep
	jmp	LBB0_7
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_REPAPER_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r15, %rdi
	movl	$32767, %esi                    ## imm = 0x7FFF
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_repaper_one_line
	movl	$200, %edi
	callq	_msleep
LBB0_7:
	movq	%r14, %rdi
	movl	$11, %esi
	xorl	%edx, %edx
	callq	_repaper_write_val
	movq	%r14, %rdi
	movl	$3, %esi
	movl	$1, %edx
	callq	_repaper_write_val
	movq	%r14, %rdi
	movl	$5, %esi
	movl	$3, %edx
	callq	_repaper_write_val
	movq	%r14, %rdi
	movl	$5, %esi
	movl	$1, %edx
	callq	_repaper_write_val
	movl	$120, %edi
	callq	_msleep
	movq	%r14, %rdi
	movl	$4, %esi
	movl	$128, %edx
	callq	_repaper_write_val
	movq	%r14, %rdi
	movl	$5, %esi
	xorl	%edx, %edx
	callq	_repaper_write_val
	movq	%r14, %rdi
	movl	$7, %esi
	movl	$1, %edx
	callq	_repaper_write_val
	movl	$50, %edi
	callq	_msleep
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_power_off                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_REPAPER_COMPENSATE,4,2         ## @REPAPER_COMPENSATE
	.comm	_REPAPER_NORMAL,4,2             ## @REPAPER_NORMAL
	.no_dead_strip	_repaper_pipe_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function repaper_pipe_disable
_repaper_pipe_disable:                  ; @repaper_pipe_disable
	.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	w0, [x0]
	bl	_drm_to_epd
	ldr	w8, [x0]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	str	wzr, [x19]
	ldr	w8, [x19, #4]
Lloh2:
	adrp	x21, _REPAPER_COMPENSATE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _REPAPER_COMPENSATE@GOTPAGEOFF]
	cbz	w8, LBB0_4
; %bb.2:
	mov	w22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w5, [x21]
	mov	x0, x19
	mov	w1, #32767
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	bl	_repaper_one_line
	add	w22, w22, #1
	ldr	w8, [x19, #4]
	cmp	w22, w8
	b.lo	LBB0_3
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	w5, [x21]
	mov	x0, x19
	mov	w1, #32767
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	bl	_repaper_one_line
	mov	w0, #25
	bl	_msleep
	ldr	x0, [x19, #8]
	mov	w1, #0
	bl	_gpiod_set_value_cansleep
	mov	w0, #200
	bl	_msleep
	ldr	x0, [x19, #8]
	mov	w1, #1
	bl	_gpiod_set_value_cansleep
	b	LBB0_8
LBB0_6:
	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
	ret
LBB0_7:
Lloh4:
	adrp	x8, _REPAPER_NORMAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _REPAPER_NORMAL@GOTPAGEOFF]
Lloh6:
	ldr	w5, [x8]
	mov	x0, x19
	mov	w1, #32767
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	bl	_repaper_one_line
	mov	w0, #200
	bl	_msleep
LBB0_8:
	mov	x0, x20
	mov	w1, #11
	mov	w2, #0
	bl	_repaper_write_val
	mov	x0, x20
	mov	w1, #3
	mov	w2, #1
	bl	_repaper_write_val
	mov	x0, x20
	mov	w1, #5
	mov	w2, #3
	bl	_repaper_write_val
	mov	x0, x20
	mov	w1, #5
	mov	w2, #1
	bl	_repaper_write_val
	mov	w0, #120
	bl	_msleep
	mov	x0, x20
	mov	w1, #4
	mov	w2, #128
	bl	_repaper_write_val
	mov	x0, x20
	mov	w1, #5
	mov	w2, #0
	bl	_repaper_write_val
	mov	x0, x20
	mov	w1, #7
	mov	w2, #1
	bl	_repaper_write_val
	mov	w0, #50
	bl	_msleep
	mov	x0, 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	_power_off
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_REPAPER_COMPENSATE,4,2         ; @REPAPER_COMPENSATE
	.comm	_REPAPER_NORMAL,4,2             ; @REPAPER_NORMAL
	.no_dead_strip	_repaper_pipe_disable
.subsections_via_symbols
