	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dnp_set_vpp
_dnp_set_vpp:                           ## @dnp_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	_dnpc_spin@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irq
	movq	_vpp_counter@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.1:
	leal	1(%rax), %edx
	movl	%edx, (%rcx)
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	_CSC_RBWR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_getcsc
	andl	$-5, %eax
	jmp	LBB0_3
LBB0_4:
	movl	%eax, %edx
	decl	%edx
	movl	%edx, (%rcx)
	je	LBB0_5
## %bb.6:
	xorl	%edi, %edi
	testl	%eax, %eax
	setle	%dil
	callq	_BUG_ON
	jmp	LBB0_7
LBB0_5:
	movq	_CSC_RBWR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_getcsc
	orl	$4, %eax
LBB0_3:
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_setcsc
LBB0_7:
	movq	_dnpc_spin@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_dnpc_spin,4,2                  ## @dnpc_spin
	.comm	_vpp_counter,4,2                ## @vpp_counter
	.comm	_CSC_RBWR,4,2                   ## @CSC_RBWR
	.no_dead_strip	_dnp_set_vpp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dnp_set_vpp
_dnp_set_vpp:                           ; @dnp_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, _dnpc_spin@GOTPAGE
Lloh1:
	ldr	x0, [x0, _dnpc_spin@GOTPAGEOFF]
	bl	_spin_lock_irq
Lloh2:
	adrp	x8, _vpp_counter@GOTPAGE
Lloh3:
	ldr	x8, [x8, _vpp_counter@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w19, LBB0_3
; %bb.1:
	add	w10, w9, #1
	str	w10, [x8]
	cbnz	w9, LBB0_7
; %bb.2:
Lloh4:
	adrp	x8, _CSC_RBWR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CSC_RBWR@GOTPAGEOFF]
Lloh6:
	ldr	w19, [x8]
	mov	x0, x19
	bl	_getcsc
	and	w1, w0, #0xfffffffb
	b	LBB0_6
LBB0_3:
	subs	w9, w9, #1
	str	w9, [x8]
	b.eq	LBB0_5
; %bb.4:
	cset	w0, lt
	bl	_BUG_ON
	b	LBB0_7
LBB0_5:
Lloh7:
	adrp	x8, _CSC_RBWR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CSC_RBWR@GOTPAGEOFF]
Lloh9:
	ldr	w19, [x8]
	mov	x0, x19
	bl	_getcsc
	orr	w1, w0, #0x4
LBB0_6:
	mov	x0, x19
	bl	_setcsc
LBB0_7:
Lloh10:
	adrp	x0, _dnpc_spin@GOTPAGE
Lloh11:
	ldr	x0, [x0, _dnpc_spin@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irq
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_dnpc_spin,4,2                  ; @dnpc_spin
	.comm	_vpp_counter,4,2                ; @vpp_counter
	.comm	_CSC_RBWR,4,2                   ; @CSC_RBWR
	.no_dead_strip	_dnp_set_vpp
.subsections_via_symbols
