	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_set_seg_desc                ## -- Begin function vm_set_seg_desc
	.p2align	4, 0x90
_vm_set_seg_desc:                       ## @vm_set_seg_desc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	js	LBB0_4
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r12
	cmpl	%esi, (%rdi)
	jle	LBB0_4
## %bb.2:
	movq	%rcx, %r14
	movl	%edx, %r15d
	movl	%edx, %edi
	callq	_is_segment_register
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	%r15d, %edi
	callq	_is_descriptor_table
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	movl	4(%r12), %edi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movq	%r14, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VMSETDESC                      ## TAILCALL
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_set_seg_desc                ; -- Begin function vm_set_seg_desc
	.p2align	2
_vm_set_seg_desc:                       ; @vm_set_seg_desc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	tbnz	w1, #31, LBB0_5
; %bb.1:
	mov	x21, x1
	mov	x22, x0
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_5
; %bb.2:
	mov	x19, x3
	mov	x20, x2
	mov	x0, x2
	bl	_is_segment_register
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_is_descriptor_table
	cbz	w0, LBB0_5
LBB0_4:
	ldr	w0, [x22, #4]
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_VMSETDESC
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
