	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_get_memseg                  ## -- Begin function vm_get_memseg
	.p2align	4, 0x90
_vm_get_memseg:                         ## @vm_get_memseg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	movq	_VM_MAX_MEMSEGS@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jle	LBB0_2
## %bb.3:
	movq	(%rdi), %rdi
	movl	%esi, %esi
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.4:
	movq	%rsi, %rax
	shlq	$4, %rax
	movq	(%rdi,%rax), %rax
	movq	%rax, (%rdx)
LBB0_5:
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	movq	%rsi, %rax
	shlq	$4, %rax
	movl	8(%rdi,%rax), %eax
	movl	%eax, (%rcx)
LBB0_7:
	xorl	%eax, %eax
	testq	%r8, %r8
	je	LBB0_9
## %bb.8:
	shlq	$4, %rsi
	movl	12(%rdi,%rsi), %ecx
	movl	%ecx, (%r8)
LBB0_9:
	popq	%rbp
	retq
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_MAX_MEMSEGS,4,2             ## @VM_MAX_MEMSEGS
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_get_memseg                  ; -- Begin function vm_get_memseg
	.p2align	2
_vm_get_memseg:                         ; @vm_get_memseg
	.cfi_startproc
; %bb.0:
	tbnz	w1, #31, LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, _VM_MAX_MEMSEGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_MAX_MEMSEGS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.le	LBB0_9
; %bb.2:
	ldr	x8, [x0]
	mov	w9, w1
	cbz	x2, LBB0_4
; %bb.3:
	lsl	x10, x9, #4
	ldr	x10, [x8, x10]
	str	x10, [x2]
LBB0_4:
	cbz	x3, LBB0_6
; %bb.5:
	add	x10, x8, x9, lsl #4
	ldr	w10, [x10, #8]
	str	w10, [x3]
LBB0_6:
	mov	w0, #0
	cbz	x4, LBB0_8
; %bb.7:
	add	x8, x8, x9, lsl #4
	ldr	w8, [x8, #12]
	str	w8, [x4]
LBB0_8:
	ret
LBB0_9:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_MAX_MEMSEGS,4,2             ; @VM_MAX_MEMSEGS
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
