	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_reg
_decode_reg:                            ## @decode_reg
	.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
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	%r8d, %esi
	callq	_resolve_operand_size
	addl	$-128, %ebx
	cmpl	$5, %ebx
	ja	LBB0_9
## %bb.1:
	movl	%eax, %r15d
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_SZ_QQ@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_11
## %bb.3:
	movq	_UD_R_YMM0@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_4:
	andl	$7, %r12d
	cmpl	$6, %r12d
	jb	LBB0_12
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UDERR                          ## TAILCALL
LBB0_6:
	movq	_UD_R_MM0@GOTPCREL(%rip), %rax
	andl	$7, %r12d
	jmp	LBB0_13
LBB0_7:
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_decode_gpr
	movl	%eax, %r12d
	jmp	LBB0_14
LBB0_8:
	movq	_UD_R_DR0@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_9:
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UD_ASSERT                      ## TAILCALL
LBB0_10:
	movq	_UD_R_CR0@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_UD_R_XMM0@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movq	_UD_R_ES@GOTPCREL(%rip), %rax
LBB0_13:
	addl	(%rax), %r12d
LBB0_14:
	movq	_UD_OP_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	%r12d, (%r14)
	movl	%r15d, 4(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_UD_R_MM0,4,2                   ## @UD_R_MM0
	.comm	_SZ_QQ,4,2                      ## @SZ_QQ
	.comm	_UD_R_YMM0,4,2                  ## @UD_R_YMM0
	.comm	_UD_R_XMM0,4,2                  ## @UD_R_XMM0
	.comm	_UD_R_CR0,4,2                   ## @UD_R_CR0
	.comm	_UD_R_DR0,4,2                   ## @UD_R_DR0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid segment register value\n"

	.comm	_UD_R_ES,4,2                    ## @UD_R_ES
	.comm	_UD_OP_REG,4,2                  ## @UD_OP_REG
	.no_dead_strip	_decode_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_reg
_decode_reg:                            ; @decode_reg
	.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, x3
	mov	x23, x2
	mov	x19, x1
	mov	x22, x0
	mov	x1, x4
	bl	_resolve_operand_size
	sub	w8, w23, #128
	cmp	w8, #5
	b.hi	LBB0_8
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _SZ_QQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SZ_QQ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _UD_R_YMM0@GOTPAGE
Lloh6:
	ldr	x9, [x9, _UD_R_YMM0@GOTPAGEOFF]
Lloh7:
	adrp	x10, _UD_R_XMM0@GOTPAGE
Lloh8:
	ldr	x10, [x10, _UD_R_XMM0@GOTPAGEOFF]
	cmp	w20, w8
	csel	x8, x9, x10, eq
	b	LBB0_10
LBB0_3:
	and	w8, w21, #0x7
	cmp	w8, #6
	b.lo	LBB0_12
; %bb.4:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	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
	b	_UDERR
LBB0_5:
Lloh11:
	adrp	x8, _UD_R_MM0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UD_R_MM0@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	and	w9, w21, #0x7
	add	w0, w8, w9
	b	LBB0_11
LBB0_6:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_decode_gpr
	b	LBB0_11
LBB0_7:
Lloh14:
	adrp	x8, _UD_R_DR0@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UD_R_DR0@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	mov	w0, #0
	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
	b	_UD_ASSERT
LBB0_9:
Lloh16:
	adrp	x8, _UD_R_CR0@GOTPAGE
Lloh17:
	ldr	x8, [x8, _UD_R_CR0@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	add	w0, w8, w21
LBB0_11:
Lloh18:
	adrp	x8, _UD_OP_REG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _UD_OP_REG@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	stp	w20, w8, [x19, #4]
	str	w0, [x19]
	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_12:
Lloh21:
	adrp	x9, _UD_R_ES@GOTPAGE
Lloh22:
	ldr	x9, [x9, _UD_R_ES@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	add	w0, w9, w8
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_UD_R_MM0,4,2                   ; @UD_R_MM0
	.comm	_SZ_QQ,4,2                      ; @SZ_QQ
	.comm	_UD_R_YMM0,4,2                  ; @UD_R_YMM0
	.comm	_UD_R_XMM0,4,2                  ; @UD_R_XMM0
	.comm	_UD_R_CR0,4,2                   ; @UD_R_CR0
	.comm	_UD_R_DR0,4,2                   ; @UD_R_DR0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid segment register value\n"

	.comm	_UD_R_ES,4,2                    ; @UD_R_ES
	.comm	_UD_OP_REG,4,2                  ; @UD_OP_REG
	.no_dead_strip	_decode_reg
.subsections_via_symbols
