	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcmciamtd_set_vpp
_pcmciamtd_set_vpp:                     ## @pcmciamtd_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	(%rdi), %rbx
	movq	8(%rbx), %r14
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_pr_debug
	movq	_pcmcia_vpp_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_pcmcia_vpp_refcnt@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.1:
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	testl	%ecx, %ecx
	jne	LBB0_6
## %bb.2:
	movl	(%rbx), %esi
	jmp	LBB0_5
LBB0_3:
	decl	%ecx
	movl	%ecx, (%rax)
	jne	LBB0_6
## %bb.4:
	xorl	%esi, %esi
LBB0_5:
	movq	%r14, %rdi
	callq	_pcmcia_fixup_vpp
LBB0_6:
	movq	_pcmcia_vpp_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dev = %p on = %d vpp = %d\n\n"

	.comm	_pcmcia_vpp_lock,4,2            ## @pcmcia_vpp_lock
	.comm	_pcmcia_vpp_refcnt,4,2          ## @pcmcia_vpp_refcnt
	.no_dead_strip	_pcmciamtd_set_vpp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcmciamtd_set_vpp
_pcmciamtd_set_vpp:                     ; @pcmciamtd_set_vpp
	.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	x21, x1
	ldr	x20, [x0]
	ldr	x19, [x20, #8]
	ldr	w3, [x20]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_pr_debug
Lloh2:
	adrp	x0, _pcmcia_vpp_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _pcmcia_vpp_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh4:
	adrp	x8, _pcmcia_vpp_refcnt@GOTPAGE
Lloh5:
	ldr	x8, [x8, _pcmcia_vpp_refcnt@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w21, LBB0_3
; %bb.1:
	add	w10, w9, #1
	str	w10, [x8]
	cbnz	w9, LBB0_6
; %bb.2:
	ldr	w1, [x20]
	b	LBB0_5
LBB0_3:
	subs	w9, w9, #1
	str	w9, [x8]
	b.ne	LBB0_6
; %bb.4:
	mov	w1, #0
LBB0_5:
	mov	x0, x19
	bl	_pcmcia_fixup_vpp
LBB0_6:
Lloh6:
	adrp	x0, _pcmcia_vpp_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _pcmcia_vpp_lock@GOTPAGEOFF]
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dev = %p on = %d vpp = %d\n\n"

	.comm	_pcmcia_vpp_lock,4,2            ; @pcmcia_vpp_lock
	.comm	_pcmcia_vpp_refcnt,4,2          ; @pcmcia_vpp_refcnt
	.no_dead_strip	_pcmciamtd_set_vpp
.subsections_via_symbols
