	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_disable_vblank          ## -- Begin function radeon_disable_vblank
	.p2align	4, 0x90
_radeon_disable_vblank:                 ## @radeon_disable_vblank
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_RADEON_FAMILY_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	movq	_CHIP_RS600@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jge	LBB0_1
## %bb.6:
	cmpl	$1, %esi
	je	LBB0_10
## %bb.7:
	testl	%esi, %esi
	jne	LBB0_11
## %bb.8:
	movq	_RADEON_CRTC_VBLANK_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	cmpl	$1, %esi
	je	LBB0_5
## %bb.2:
	testl	%esi, %esi
	jne	LBB0_11
## %bb.3:
	movq	_R500_D1MODE_INT_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_11:
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_10:
	movq	_RADEON_CRTC2_VBLANK_MASK@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %esi
	xorl	%edx, %edx
	popq	%rbp
	jmp	_radeon_irq_set_state           ## TAILCALL
LBB0_5:
	movq	_R500_D2MODE_INT_MASK@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	xorl	%edx, %edx
	popq	%rbp
	jmp	_r500_vbl_irq_set_state         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_FAMILY_MASK,4,2         ## @RADEON_FAMILY_MASK
	.comm	_CHIP_RS600,4,2                 ## @CHIP_RS600
	.comm	_R500_D1MODE_INT_MASK,4,2       ## @R500_D1MODE_INT_MASK
	.comm	_R500_D2MODE_INT_MASK,4,2       ## @R500_D2MODE_INT_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tried to enable vblank on non-existent crtc %d\n"

	.comm	_RADEON_CRTC_VBLANK_MASK,4,2    ## @RADEON_CRTC_VBLANK_MASK
	.comm	_RADEON_CRTC2_VBLANK_MASK,4,2   ## @RADEON_CRTC2_VBLANK_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_disable_vblank          ; -- Begin function radeon_disable_vblank
	.p2align	2
_radeon_disable_vblank:                 ; @radeon_disable_vblank
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _RADEON_FAMILY_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RADEON_FAMILY_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh3:
	adrp	x9, _CHIP_RS600@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CHIP_RS600@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.1:
	cmp	w1, #1
	b.eq	LBB0_8
; %bb.2:
	cbnz	w1, LBB0_7
; %bb.3:
Lloh6:
	adrp	x8, _RADEON_CRTC_VBLANK_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RADEON_CRTC_VBLANK_MASK@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	cmp	w1, #1
	b.eq	LBB0_10
; %bb.5:
	cbnz	w1, LBB0_7
; %bb.6:
Lloh8:
	adrp	x8, _R500_D1MODE_INT_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _R500_D1MODE_INT_MASK@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	b	_DRM_ERROR
LBB0_8:
Lloh12:
	adrp	x8, _RADEON_CRTC2_VBLANK_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RADEON_CRTC2_VBLANK_MASK@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
	mov	w2, #0
	b	_radeon_irq_set_state
LBB0_10:
Lloh14:
	adrp	x8, _R500_D2MODE_INT_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _R500_D2MODE_INT_MASK@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x8]
	mov	w2, #0
	b	_r500_vbl_irq_set_state
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_FAMILY_MASK,4,2         ; @RADEON_FAMILY_MASK
	.comm	_CHIP_RS600,4,2                 ; @CHIP_RS600
	.comm	_R500_D1MODE_INT_MASK,4,2       ; @R500_D1MODE_INT_MASK
	.comm	_R500_D2MODE_INT_MASK,4,2       ; @R500_D2MODE_INT_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tried to enable vblank on non-existent crtc %d\n"

	.comm	_RADEON_CRTC_VBLANK_MASK,4,2    ; @RADEON_CRTC_VBLANK_MASK
	.comm	_RADEON_CRTC2_VBLANK_MASK,4,2   ; @RADEON_CRTC2_VBLANK_MASK
.subsections_via_symbols
