	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r128_do_init_pageflip
_r128_do_init_pageflip:                 ## @r128_do_init_pageflip
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_R128_CRTC_OFFSET@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_R128_READ
	movq	%rax, 32(%rbx)
	movq	_R128_CRTC_OFFSET_CNTL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_R128_READ
	movl	%eax, (%rbx)
	movl	(%r14), %edi
	movl	4(%rbx), %esi
	callq	_R128_WRITE
	movl	(%r15), %edi
	movq	_R128_CRTC_OFFSET_FLIP_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%rbx), %esi
	callq	_R128_WRITE
	movl	$1, 8(%rbx)
	movq	$0, 16(%rbx)
	movq	24(%rbx), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_R128_CRTC_OFFSET,4,2           ## @R128_CRTC_OFFSET
	.comm	_R128_CRTC_OFFSET_CNTL,4,2      ## @R128_CRTC_OFFSET_CNTL
	.comm	_R128_CRTC_OFFSET_FLIP_CNTL,4,2 ## @R128_CRTC_OFFSET_FLIP_CNTL
	.no_dead_strip	_r128_do_init_pageflip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r128_do_init_pageflip
_r128_do_init_pageflip:                 ; @r128_do_init_pageflip
	.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	x19, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
Lloh2:
	adrp	x20, _R128_CRTC_OFFSET@GOTPAGE
Lloh3:
	ldr	x20, [x20, _R128_CRTC_OFFSET@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_R128_READ
	str	x0, [x19, #32]
Lloh4:
	adrp	x21, _R128_CRTC_OFFSET_CNTL@GOTPAGE
Lloh5:
	ldr	x21, [x21, _R128_CRTC_OFFSET_CNTL@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_R128_READ
	str	w0, [x19]
	ldr	w0, [x20]
	ldr	w1, [x19, #4]
	bl	_R128_WRITE
	ldr	w0, [x21]
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _R128_CRTC_OFFSET_FLIP_CNTL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _R128_CRTC_OFFSET_FLIP_CNTL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_R128_WRITE
	mov	w8, #1
	str	w8, [x19, #8]
	str	xzr, [x19, #16]
	ldr	x8, [x19, #24]
	str	xzr, [x8]
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_R128_CRTC_OFFSET,4,2           ; @R128_CRTC_OFFSET
	.comm	_R128_CRTC_OFFSET_CNTL,4,2      ; @R128_CRTC_OFFSET_CNTL
	.comm	_R128_CRTC_OFFSET_FLIP_CNTL,4,2 ; @R128_CRTC_OFFSET_FLIP_CNTL
	.no_dead_strip	_r128_do_init_pageflip
.subsections_via_symbols
