	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l440gx_set_vpp
_l440gx_set_vpp:                        ## @l440gx_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
	movq	_l440gx_vpp_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_l440gx_vpp_refcnt@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	testl	%ecx, %ecx
	jne	LBB0_6
## %bb.2:
	movq	_VPP_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inl
	movl	%eax, %edi
	orl	$1, %edi
	jmp	LBB0_5
LBB0_3:
	decl	%ecx
	movl	%ecx, (%rax)
	jne	LBB0_6
## %bb.4:
	movq	_VPP_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inl
	movl	%eax, %edi
	andl	$-2, %edi
LBB0_5:
	movq	_VPP_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outl
LBB0_6:
	movq	_l440gx_vpp_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_l440gx_vpp_lock,4,2            ## @l440gx_vpp_lock
	.comm	_l440gx_vpp_refcnt,4,2          ## @l440gx_vpp_refcnt
	.comm	_VPP_PORT,4,2                   ## @VPP_PORT
	.no_dead_strip	_l440gx_set_vpp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l440gx_set_vpp
_l440gx_set_vpp:                        ; @l440gx_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
Lloh0:
	adrp	x0, _l440gx_vpp_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _l440gx_vpp_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x8, _l440gx_vpp_refcnt@GOTPAGE
Lloh3:
	ldr	x8, [x8, _l440gx_vpp_refcnt@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w19, LBB0_3
; %bb.1:
	add	w10, w9, #1
	str	w10, [x8]
	cbnz	w9, LBB0_6
; %bb.2:
Lloh4:
	adrp	x8, _VPP_PORT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VPP_PORT@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_inl
	orr	w0, w0, #0x1
	b	LBB0_5
LBB0_3:
	subs	w9, w9, #1
	str	w9, [x8]
	b.ne	LBB0_6
; %bb.4:
Lloh7:
	adrp	x8, _VPP_PORT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VPP_PORT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_inl
	and	w0, w0, #0xfffffffe
LBB0_5:
Lloh10:
	adrp	x8, _VPP_PORT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VPP_PORT@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_outl
LBB0_6:
Lloh13:
	adrp	x0, _l440gx_vpp_lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _l440gx_vpp_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_l440gx_vpp_lock,4,2            ; @l440gx_vpp_lock
	.comm	_l440gx_vpp_refcnt,4,2          ; @l440gx_vpp_refcnt
	.comm	_VPP_PORT,4,2                   ; @VPP_PORT
	.no_dead_strip	_l440gx_set_vpp
.subsections_via_symbols
