	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_mmap_memseg                 ## -- Begin function vm_mmap_memseg
	.p2align	4, 0x90
_vm_mmap_memseg:                        ## @vm_mmap_memseg
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movq	%rcx, %r15
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsi, -72(%rbp)
	movl	%edx, -52(%rbp)
	movq	%rcx, -64(%rbp)
	movq	%r8, -80(%rbp)
	movl	%r9d, -48(%rbp)
	movq	%rsi, -120(%rbp)
	movl	%edx, -112(%rbp)
	movq	%rcx, -104(%rbp)
	movq	%r8, -96(%rbp)
	movl	%r9d, -88(%rbp)
	movl	$0, -84(%rbp)
	movq	_VM_MEM_F_WIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	_VM_MEMMAP_F_WIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, -84(%rbp)
	jmp	LBB0_3
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	leaq	-56(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-72(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	leaq	-80(%rbp), %r8
	leaq	-48(%rbp), %r9
	movq	%r13, %rdi
	callq	_vm_mmap_getnext
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	cmpq	%rbx, -72(%rbp)
	jne	LBB0_10
## %bb.5:
	cmpl	%r12d, -52(%rbp)
	jne	LBB0_9
## %bb.6:
	cmpq	%r15, -64(%rbp)
	jne	LBB0_9
## %bb.7:
	cmpl	%r14d, -48(%rbp)
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, -56(%rbp)
	je	LBB0_11
LBB0_9:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
	jmp	LBB0_11
LBB0_10:
	movl	4(%r13), %edi
	movq	_VM_MMAP_MEMSEG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-120(%rbp), %rdx
	callq	_ioctl
LBB0_11:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_MEM_F_WIRED,4,2             ## @VM_MEM_F_WIRED
	.comm	_VM_MEMMAP_F_WIRED,4,2          ## @VM_MEMMAP_F_WIRED
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_errno,4,2                      ## @errno
	.comm	_VM_MMAP_MEMSEG,4,2             ## @VM_MMAP_MEMSEG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_mmap_memseg                 ; -- Begin function vm_mmap_memseg
	.p2align	2
_vm_mmap_memseg:                        ; @vm_mmap_memseg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x19, x5
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	stur	x1, [x29, #-56]
	stur	w2, [x29, #-60]
	stp	x4, x3, [sp, #64]
	str	w5, [sp, #60]
	str	x1, [sp, #16]
	str	w2, [sp, #24]
	stp	x3, x4, [sp, #32]
	stp	w5, wzr, [sp, #48]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _VM_MEM_F_WIRED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VM_MEM_F_WIRED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _VM_MEMMAP_F_WIRED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VM_MEMMAP_F_WIRED@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	str	w24, [sp, #52]
	b	LBB0_3
LBB0_2:
	mov	w24, #0
LBB0_3:
	sub	x1, x29, #56
	sub	x2, x29, #60
	add	x3, sp, #72
	add	x4, sp, #64
	add	x5, sp, #60
	add	x6, sp, #12
	mov	x0, x22
	bl	_vm_mmap_getnext
	cbnz	w0, LBB0_10
; %bb.4:
	ldur	x8, [x29, #-56]
	cmp	x8, x23
	b.ne	LBB0_10
; %bb.5:
	ldur	w8, [x29, #-60]
	cmp	w8, w21
	b.ne	LBB0_11
; %bb.6:
	ldr	x8, [sp, #72]
	cmp	x8, x20
	b.ne	LBB0_11
; %bb.7:
	ldr	w8, [sp, #60]
	cmp	w8, w19
	b.ne	LBB0_11
; %bb.8:
	ldr	w8, [sp, #12]
	cmp	w8, w24
	b.ne	LBB0_11
; %bb.9:
	mov	w0, #0
	b	LBB0_12
LBB0_10:
	ldr	w0, [x22, #4]
Lloh6:
	adrp	x8, _VM_MMAP_MEMSEG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VM_MMAP_MEMSEG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #16
	bl	_ioctl
	b	LBB0_12
LBB0_11:
Lloh9:
	adrp	x8, _EEXIST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _errno@GOTPAGE
Lloh13:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh14:
	str	w8, [x9]
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_MEM_F_WIRED,4,2             ; @VM_MEM_F_WIRED
	.comm	_VM_MEMMAP_F_WIRED,4,2          ; @VM_MEMMAP_F_WIRED
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_errno,4,2                      ; @errno
	.comm	_VM_MMAP_MEMSEG,4,2             ; @VM_MMAP_MEMSEG
.subsections_via_symbols
