	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psb_disable_vblank             ## -- Begin function psb_disable_vblank
	.p2align	4, 0x90
_psb_disable_vblank:                    ## @psb_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
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	callq	_IS_MFLD
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_mdfld_disable_te
LBB0_2:
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.3:
	cmpl	$1, %r14d
	jne	LBB0_4
## %bb.6:
	movq	__PSB_VSYNC_PIPEB_FLAG@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	__PSB_VSYNC_PIPEA_FLAG@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edi
	notl	%edi
	andl	4(%r15), %edi
	movl	%edi, 4(%r15)
	jmp	LBB0_8
LBB0_4:
	movl	4(%r15), %edi
LBB0_8:
	notl	%edi
	movq	_PSB_INT_MASK_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PSB_WVDC32
	movl	4(%r15), %edi
	movq	_PSB_INT_ENABLE_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PSB_WVDC32
	movq	_PIPE_VBLANK_INTERRUPT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_psb_disable_pipestat
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__PSB_VSYNC_PIPEA_FLAG,4,2      ## @_PSB_VSYNC_PIPEA_FLAG
	.comm	__PSB_VSYNC_PIPEB_FLAG,4,2      ## @_PSB_VSYNC_PIPEB_FLAG
	.comm	_PSB_INT_MASK_R,4,2             ## @PSB_INT_MASK_R
	.comm	_PSB_INT_ENABLE_R,4,2           ## @PSB_INT_ENABLE_R
	.comm	_PIPE_VBLANK_INTERRUPT_ENABLE,4,2 ## @PIPE_VBLANK_INTERRUPT_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psb_disable_vblank             ; -- Begin function psb_disable_vblank
	.p2align	2
_psb_disable_vblank:                    ; @psb_disable_vblank
	.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	x20, x1
	mov	x21, x0
	ldr	x19, [x0]
	bl	_IS_MFLD
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	bl	_mdfld_disable_te
LBB0_2:
	mov	x0, x19
	bl	_spin_lock_irqsave
	cbz	w20, LBB0_5
; %bb.3:
	cmp	w20, #1
	b.ne	LBB0_7
; %bb.4:
Lloh0:
	adrp	x8, __PSB_VSYNC_PIPEB_FLAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, __PSB_VSYNC_PIPEB_FLAG@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, __PSB_VSYNC_PIPEA_FLAG@GOTPAGE
Lloh3:
	ldr	x8, [x8, __PSB_VSYNC_PIPEA_FLAG@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_8
LBB0_7:
	ldr	w8, [x19, #4]
LBB0_8:
	mvn	w0, w8
Lloh4:
	adrp	x8, _PSB_INT_MASK_R@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PSB_INT_MASK_R@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_PSB_WVDC32
	ldr	w0, [x19, #4]
Lloh7:
	adrp	x8, _PSB_INT_ENABLE_R@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PSB_INT_ENABLE_R@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_PSB_WVDC32
Lloh10:
	adrp	x8, _PIPE_VBLANK_INTERRUPT_ENABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PIPE_VBLANK_INTERRUPT_ENABLE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_psb_disable_pipestat
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	__PSB_VSYNC_PIPEA_FLAG,4,2      ; @_PSB_VSYNC_PIPEA_FLAG
	.comm	__PSB_VSYNC_PIPEB_FLAG,4,2      ; @_PSB_VSYNC_PIPEB_FLAG
	.comm	_PSB_INT_MASK_R,4,2             ; @PSB_INT_MASK_R
	.comm	_PSB_INT_ENABLE_R,4,2           ; @PSB_INT_ENABLE_R
	.comm	_PIPE_VBLANK_INTERRUPT_ENABLE,4,2 ; @PIPE_VBLANK_INTERRUPT_ENABLE
.subsections_via_symbols
