	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function physmap_set_vpp
_physmap_set_vpp:                       ## @physmap_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	(%rdi), %r13
	movq	%r13, %rdi
	callq	_dev_get_platdata
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.1:
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_platform_get_drvdata
	movq	%rax, %rbx
	leaq	4(%rax), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %eax
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.2:
	leal	1(%rax), %ecx
	movl	%ecx, (%rbx)
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movl	$1, %esi
	jmp	LBB0_6
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	decl	%eax
	movl	%eax, (%rbx)
	jne	LBB0_7
## %bb.5:
	xorl	%esi, %esi
LBB0_6:
	movq	%r13, %rdi
	callq	*(%r14)
LBB0_7:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_physmap_set_vpp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function physmap_set_vpp
_physmap_set_vpp:                       ; @physmap_set_vpp
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	ldr	x19, [x0]
	mov	x0, x19
	bl	_dev_get_platdata
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_platform_get_drvdata
	mov	x23, x0
	add	x21, x0, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w8, [x23]
	cbz	w22, LBB0_5
; %bb.2:
	add	w9, w8, #1
	str	w9, [x23]
	cbnz	w8, LBB0_8
; %bb.3:
	mov	w1, #1
	b	LBB0_7
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	subs	w8, w8, #1
	str	w8, [x23]
	b.ne	LBB0_8
; %bb.6:
	mov	w1, #0
LBB0_7:
	ldr	x8, [x20]
	mov	x0, x19
	blr	x8
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_physmap_set_vpp
.subsections_via_symbols
