	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_vex
_decode_vex:                            ## @decode_vex
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpl	$64, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_inp_peek
	movl	%eax, %edi
	callq	_MODRM_MOD
	xorl	%ecx, %ecx
	cmpl	$3, %eax
	jne	LBB0_7
LBB0_2:
	movq	%rbx, %rdi
	callq	_inp_curr
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_inp_next
	movl	%eax, 8(%rbx)
	movl	4(%rbx), %eax
	cmpl	$196, %eax
	jne	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_inp_next
	movl	%eax, 12(%rbx)
	movq	%rbx, %rdi
	callq	_UD_RETURN_ON_ERROR
	movl	8(%rbx), %r14d
	andl	$31, %r14d
	leal	-4(%r14), %eax
	cmpl	$-4, %eax
	ja	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_UD_RETURN_WITH_ERROR
LBB0_5:
	movl	12(%rbx), %ecx
	shll	$2, %ecx
	andl	$12, %ecx
	orl	%r14d, %ecx
	jmp	LBB0_7
LBB0_6:
	xorl	%edi, %edi
	cmpl	$197, %eax
	sete	%dil
	callq	_UD_ASSERT
	movl	8(%rbx), %eax
	andl	$3, %eax
	leal	1(,%rax,4), %ecx
LBB0_7:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movl	%ecx, %ecx
	movl	(%rax,%rcx,4), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_decode_ext                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reserved vex.m-mmmm value"

	.no_dead_strip	_decode_vex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_vex
_decode_vex:                            ; @decode_vex
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #64
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_inp_peek
	bl	_MODRM_MOD
	cmp	w0, #3
	b.ne	LBB0_7
LBB0_2:
	mov	x0, x19
	bl	_inp_curr
	str	w0, [x19, #4]
	mov	x0, x19
	bl	_inp_next
	str	w0, [x19, #8]
	ldr	w8, [x19, #4]
	cmp	w8, #196
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_inp_next
	str	w0, [x19, #12]
	mov	x0, x19
	bl	_UD_RETURN_ON_ERROR
	ldr	w8, [x19, #8]
	and	w20, w8, #0x1f
	sub	w8, w20, #4
	cmn	w8, #4
	b.hi	LBB0_5
; %bb.4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_UD_RETURN_WITH_ERROR
LBB0_5:
	ldr	w8, [x19, #12]
	ubfiz	w8, w8, #2, #2
	orr	w8, w8, w20
	b	LBB0_8
LBB0_6:
	cmp	w8, #197
	cset	w0, eq
	bl	_UD_ASSERT
	ldr	w9, [x19, #8]
	mov	w8, #1
	bfi	w8, w9, #2, #2
	b	LBB0_8
LBB0_7:
	mov	w8, #0
LBB0_8:
	ldr	x9, [x19, #16]
	ldr	x9, [x9]
	ldr	w1, [x9, w8, uxtw #2]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_decode_ext
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reserved vex.m-mmmm value"

	.no_dead_strip	_decode_vex
.subsections_via_symbols
