	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ppt_map_mmio                   ## -- Begin function ppt_map_mmio
	.p2align	4, 0x90
_ppt_map_mmio:                          ## @ppt_map_mmio
	.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
	movq	%r9, %r14
	movl	%r8d, %r15d
	movq	%rdi, %r12
	movl	%esi, %edi
	movl	%edx, %esi
	movl	%ecx, %edx
	callq	_ppt_find
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	cmpq	%r12, 8(%rax)
	je	LBB0_2
## %bb.12:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	movq	_MAX_MMIOSEGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%edx, %edx
	jle	LBB0_8
## %bb.3:
	movl	16(%rbp), %ecx
	movq	(%rax), %r13
	shlq	$4, %rdx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r13,%rbx)
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %rbx
	cmpq	%rbx, %rdx
	jne	LBB0_4
LBB0_8:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_vm_map_mmio
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	movl	%r15d, 8(%r13,%rbx)
	movq	%r14, (%r13,%rbx)
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_MAX_MMIOSEGS,4,2               ## @MAX_MMIOSEGS
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ppt_map_mmio                   ; -- Begin function ppt_map_mmio
	.p2align	2
_ppt_map_mmio:                          ; @ppt_map_mmio
	.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	x21, x6
	mov	x19, x5
	mov	x20, x4
	mov	x22, x0
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	bl	_ppt_find
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x0, #8]
	cmp	x8, x22
	b.eq	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
Lloh4:
	adrp	x8, _MAX_MMIOSEGS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MAX_MMIOSEGS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	ldr	x23, [x0]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23]
	cbz	x9, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #16
	subs	x8, x8, #1
	b.ne	LBB0_6
LBB0_8:
Lloh7:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
LBB0_10:
	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_11:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	mov	x3, x21
	bl	_vm_map_mmio
	cbnz	w0, LBB0_10
; %bb.12:
	str	w20, [x23, #8]
	str	x19, [x23]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_MAX_MMIOSEGS,4,2               ; @MAX_MMIOSEGS
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
