	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r100_page_flip                 ## -- Begin function r100_page_flip
	.p2align	4, 0x90
_r100_page_flip:                        ## @r100_page_flip
	.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, %rbx
	movq	8(%rdi), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %r15
	movq	_RADEON_CRTC_OFFSET__OFFSET_LOCK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_RADEON_CRTC_OFFSET@GOTPCREL(%rip), %r12
	movq	(%r15), %rdi
	addq	(%r12), %rdi
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %esi
	callq	_WREG32
	cmpl	$0, (%rbx)
	jle	LBB0_4
## %bb.1:
	xorl	%r13d, %r13d
	movq	_RADEON_CRTC_OFFSET__GUI_TRIG_OFFSET@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	(%r12), %rdi
	callq	_RREG32
	testl	%eax, (%r14)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	callq	_udelay
	incl	%r13d
	cmpl	(%rbx), %r13d
	jl	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_RADEON_CRTC_OFFSET__OFFSET_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	andl	%eax, %esi
	movq	(%r15), %rdi
	addq	(%r12), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_WREG32
	movq	(%r15), %rdi
	addq	(%r12), %rdi
	callq	_RREG32
	movq	_RADEON_CRTC_OFFSET__GUI_TRIG_OFFSET@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_CRTC_OFFSET__OFFSET_LOCK,4,2 ## @RADEON_CRTC_OFFSET__OFFSET_LOCK
	.comm	_RADEON_CRTC_OFFSET,8,3         ## @RADEON_CRTC_OFFSET
	.comm	_RADEON_CRTC_OFFSET__GUI_TRIG_OFFSET,4,2 ## @RADEON_CRTC_OFFSET__GUI_TRIG_OFFSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Update pending now high. Unlocking vupdate_lock.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r100_page_flip                 ; -- Begin function r100_page_flip
	.p2align	2
_r100_page_flip:                        ; @r100_page_flip
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8, w1, sxtw #3]
Lloh0:
	adrp	x24, _RADEON_CRTC_OFFSET__OFFSET_LOCK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _RADEON_CRTC_OFFSET__OFFSET_LOCK@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w19, w8, w2
Lloh2:
	adrp	x22, _RADEON_CRTC_OFFSET@GOTPAGE
Lloh3:
	ldr	x22, [x22, _RADEON_CRTC_OFFSET@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x9, [x21]
	add	x0, x9, x8
	mov	x1, x19
	bl	_WREG32
	ldr	w8, [x20]
Lloh4:
	adrp	x23, _RADEON_CRTC_OFFSET__GUI_TRIG_OFFSET@GOTPAGE
Lloh5:
	ldr	x23, [x23, _RADEON_CRTC_OFFSET__GUI_TRIG_OFFSET@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w25, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_RREG32
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
	bl	_udelay
	add	w25, w25, #1
	ldr	w8, [x20]
	cmp	w25, w8
	b.lt	LBB0_2
LBB0_4:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x24]
	bic	w1, w19, w8
	ldr	x8, [x22]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_WREG32
	ldr	x8, [x22]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_RREG32
	ldr	w8, [x23]
	and	w0, w8, w0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_CRTC_OFFSET__OFFSET_LOCK,4,2 ; @RADEON_CRTC_OFFSET__OFFSET_LOCK
	.comm	_RADEON_CRTC_OFFSET,8,3         ; @RADEON_CRTC_OFFSET
	.comm	_RADEON_CRTC_OFFSET__GUI_TRIG_OFFSET,4,2 ; @RADEON_CRTC_OFFSET__GUI_TRIG_OFFSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Update pending now high. Unlocking vupdate_lock.\n"

.subsections_via_symbols
