	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdvi_create_mapping
_amdvi_create_mapping:                  ## @amdvi_create_mapping
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, 8(%rdi)
	movq	(%rdi), %rax
	je	LBB0_3
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movl	$-1, %ecx
	jmp	LBB0_4
LBB0_3:
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movl	$1, %r8d
	popq	%rbp
	jmp	_amdvi_update_mapping           ## TAILCALL
LBB0_4:
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ptp is NULL"

	.no_dead_strip	_amdvi_create_mapping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdvi_create_mapping
_amdvi_create_mapping:                  ; @amdvi_create_mapping
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldp	x8, x9, [x0]
	cbz	x9, LBB0_3
; %bb.1:
	cbnz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	w3, #-1
	b	LBB0_5
LBB0_3:
	cbz	x8, LBB0_5
LBB0_4:
	mov	w4, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_amdvi_update_mapping
LBB0_5:
	mov	x0, x3
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ptp is NULL"

	.no_dead_strip	_amdvi_create_mapping
.subsections_via_symbols
