	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdv_disable_sr                 ## -- Begin function cdv_disable_sr
	.p2align	4, 0x90
_cdv_disable_sr:                        ## @cdv_disable_sr
	.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
	movq	%rdi, %r14
	movq	_FW_BLC_SELF@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_REG_READ
	movq	_FW_BLC_SELF_EN@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_1
## %bb.2:
	movl	(%r15), %ebx
	movl	%ebx, %edi
	callq	_REG_READ
	movl	(%r12), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edi
	callq	_REG_WRITE
	movl	(%r15), %edi
	callq	_REG_READ
	movq	%r14, %rdi
	callq	_gma_wait_for_vblank
	movq	_OV_OVADD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_REG_WRITE
	movl	(%rbx), %edi
	callq	_REG_READ
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gma_wait_for_vblank            ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_BLC_SELF,4,2                ## @FW_BLC_SELF
	.comm	_FW_BLC_SELF_EN,4,2             ## @FW_BLC_SELF_EN
	.comm	_OV_OVADD,4,2                   ## @OV_OVADD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdv_disable_sr                 ; -- Begin function cdv_disable_sr
	.p2align	2
_cdv_disable_sr:                        ; @cdv_disable_sr
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _FW_BLC_SELF@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FW_BLC_SELF@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_REG_READ
Lloh2:
	adrp	x22, _FW_BLC_SELF_EN@GOTPAGE
Lloh3:
	ldr	x22, [x22, _FW_BLC_SELF_EN@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w20, [x21]
	mov	x0, x20
	bl	_REG_READ
	ldr	w8, [x22]
	bic	w1, w0, w8
	mov	x0, x20
	bl	_REG_WRITE
	ldr	w0, [x21]
	bl	_REG_READ
	mov	x0, x19
	bl	_gma_wait_for_vblank
Lloh4:
	adrp	x20, _OV_OVADD@GOTPAGE
Lloh5:
	ldr	x20, [x20, _OV_OVADD@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w1, #0
	bl	_REG_WRITE
	ldr	w0, [x20]
	bl	_REG_READ
	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	_gma_wait_for_vblank
LBB0_2:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_BLC_SELF,4,2                ; @FW_BLC_SELF
	.comm	_FW_BLC_SELF_EN,4,2             ; @FW_BLC_SELF_EN
	.comm	_OV_OVADD,4,2                   ; @OV_OVADD
.subsections_via_symbols
