	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_set_vpp
_omap_set_vpp:                          ## @omap_set_vpp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	xorl	%eax, %eax
	callq	_cpu_class_is_omap1
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movl	_omap_set_vpp.count(%rip), %eax
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.2:
	leal	1(%rax), %ecx
	movl	%ecx, _omap_set_vpp.count(%rip)
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	_EMIFS_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_omap_readl
	movl	%eax, %edi
	movq	_OMAP_EMIFS_CONFIG_WP@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	jmp	LBB0_7
LBB0_4:
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	decl	%eax
	movl	%eax, _omap_set_vpp.count(%rip)
	je	LBB0_6
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	_EMIFS_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_omap_readl
	movq	_OMAP_EMIFS_CONFIG_WP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
LBB0_7:
	movq	_EMIFS_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_omap_writel                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_omap_set_vpp.count,4,2 ## @omap_set_vpp.count
	.comm	_EMIFS_CONFIG,4,2               ## @EMIFS_CONFIG
	.comm	_OMAP_EMIFS_CONFIG_WP,4,2       ## @OMAP_EMIFS_CONFIG_WP
	.no_dead_strip	_omap_set_vpp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_set_vpp
_omap_set_vpp:                          ; @omap_set_vpp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_cpu_class_is_omap1
	cbz	x0, LBB0_6
; %bb.1:
	adrp	x8, _omap_set_vpp.count@PAGE
	ldr	w9, [x8, _omap_set_vpp.count@PAGEOFF]
	cbz	w19, LBB0_4
; %bb.2:
	add	w10, w9, #1
	str	w10, [x8, _omap_set_vpp.count@PAGEOFF]
	cbnz	w9, LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _EMIFS_CONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EMIFS_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_omap_readl
Lloh3:
	adrp	x8, _OMAP_EMIFS_CONFIG_WP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OMAP_EMIFS_CONFIG_WP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w0, w8, w0
	b	LBB0_8
LBB0_4:
	cbz	w9, LBB0_6
; %bb.5:
	subs	w9, w9, #1
	str	w9, [x8, _omap_set_vpp.count@PAGEOFF]
	b.eq	LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh6:
	adrp	x8, _EMIFS_CONFIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EMIFS_CONFIG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_omap_readl
Lloh9:
	adrp	x8, _OMAP_EMIFS_CONFIG_WP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OMAP_EMIFS_CONFIG_WP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	bic	w0, w0, w8
LBB0_8:
Lloh12:
	adrp	x8, _EMIFS_CONFIG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EMIFS_CONFIG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_omap_writel
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_omap_set_vpp.count,4,2 ; @omap_set_vpp.count
	.comm	_EMIFS_CONFIG,4,2               ; @EMIFS_CONFIG
	.comm	_OMAP_EMIFS_CONFIG_WP,4,2       ; @OMAP_EMIFS_CONFIG_WP
	.no_dead_strip	_omap_set_vpp
.subsections_via_symbols
