	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resolve_mnemonic
_resolve_mnemonic:                      ## @resolve_mnemonic
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	movq	_UD_I3dnow@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_2
## %bb.1:
	movq	_ud_itab@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	32(%rbx), %rax
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_inp_curr
	movq	(%r15,%rax,8), %rax
	movq	(%r14,%rax,8), %rcx
	movq	%rcx, (%rbx)
LBB0_2:
	movq	_UD_Iswapgs@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_5
## %bb.3:
	cmpl	$64, 8(%rbx)
	jne	LBB0_4
LBB0_5:
	movq	_UD_Ixchg@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_14
## %bb.6:
	movq	24(%rbx), %rax
	movq	(%rax), %rdx
	movq	_UD_OP_REG@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_14
## %bb.7:
	movq	8(%rax), %rsi
	movq	_UD_R_AX@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_10
## %bb.8:
	cmpq	%rdx, 16(%rax)
	jne	LBB0_10
## %bb.9:
	cmpq	%rsi, 24(%rax)
	je	LBB0_13
LBB0_10:
	movq	_UD_R_EAX@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_14
## %bb.11:
	cmpq	%rdx, 16(%rax)
	jne	LBB0_14
## %bb.12:
	cmpq	%rsi, 24(%rax)
	jne	LBB0_14
LBB0_13:
	movq	_UD_NONE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	movq	%rcx, 16(%rax)
	movq	_UD_Inop@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%rbx)
LBB0_14:
	movq	_UD_Inop@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_17
## %bb.15:
	cmpq	$0, 16(%rbx)
	je	LBB0_17
## %bb.16:
	movq	$0, 16(%rbx)
	movq	_UD_Ipause@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rbx)
	jmp	LBB0_17
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_UDERR
	movl	$-1, %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UD_I3dnow,8,3                  ## @UD_I3dnow
	.comm	_ud_itab,8,3                    ## @ud_itab
	.comm	_UD_Iswapgs,8,3                 ## @UD_Iswapgs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"swapgs invalid in 64bits mode\n"

	.comm	_UD_Ixchg,8,3                   ## @UD_Ixchg
	.comm	_UD_OP_REG,8,3                  ## @UD_OP_REG
	.comm	_UD_R_AX,8,3                    ## @UD_R_AX
	.comm	_UD_R_EAX,8,3                   ## @UD_R_EAX
	.comm	_UD_NONE,8,3                    ## @UD_NONE
	.comm	_UD_Inop,8,3                    ## @UD_Inop
	.comm	_UD_Ipause,8,3                  ## @UD_Ipause
	.no_dead_strip	_resolve_mnemonic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resolve_mnemonic
_resolve_mnemonic:                      ; @resolve_mnemonic
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _UD_I3dnow@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UD_I3dnow@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ud_itab@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ud_itab@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x8]
	ldr	x8, [x19, #32]
	ldr	x21, [x8]
	mov	x0, x19
	bl	_inp_curr
	ldr	x8, [x21, x0, lsl #3]
	ldr	x8, [x20, x8, lsl #3]
	str	x8, [x19]
LBB0_2:
Lloh6:
	adrp	x9, _UD_Iswapgs@GOTPAGE
Lloh7:
	ldr	x9, [x9, _UD_Iswapgs@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w9, [x19, #8]
	cmp	w9, #64
	b.ne	LBB0_17
LBB0_4:
Lloh9:
	adrp	x9, _UD_Ixchg@GOTPAGE
Lloh10:
	ldr	x9, [x9, _UD_Ixchg@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x9]
Lloh12:
	adrp	x9, _UD_Inop@GOTPAGE
Lloh13:
	ldr	x9, [x9, _UD_Inop@GOTPAGEOFF]
	cmp	x8, x10
	b.ne	LBB0_13
; %bb.5:
	ldr	x10, [x19, #24]
	ldr	x11, [x10]
Lloh14:
	adrp	x12, _UD_OP_REG@GOTPAGE
Lloh15:
	ldr	x12, [x12, _UD_OP_REG@GOTPAGEOFF]
Lloh16:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_13
; %bb.6:
	ldr	x12, [x10, #8]
Lloh17:
	adrp	x13, _UD_R_AX@GOTPAGE
Lloh18:
	ldr	x13, [x13, _UD_R_AX@GOTPAGEOFF]
Lloh19:
	ldr	x13, [x13]
	cmp	x12, x13
	b.ne	LBB0_9
; %bb.7:
	ldr	x13, [x10, #16]
	cmp	x13, x11
	b.ne	LBB0_9
; %bb.8:
	ldr	x13, [x10, #24]
	cmp	x13, x12
	b.eq	LBB0_12
LBB0_9:
Lloh20:
	adrp	x13, _UD_R_EAX@GOTPAGE
Lloh21:
	ldr	x13, [x13, _UD_R_EAX@GOTPAGEOFF]
Lloh22:
	ldr	x13, [x13]
	cmp	x12, x13
	b.ne	LBB0_13
; %bb.10:
	ldr	x13, [x10, #16]
	cmp	x13, x11
	b.ne	LBB0_13
; %bb.11:
	ldr	x11, [x10, #24]
	cmp	x11, x12
	b.ne	LBB0_13
LBB0_12:
Lloh23:
	adrp	x8, _UD_NONE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _UD_NONE@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	x8, [x10]
	str	x8, [x10, #16]
	ldr	x8, [x9]
	str	x8, [x19]
LBB0_13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.14:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_16
; %bb.15:
	mov	w0, #0
	str	xzr, [x19, #16]
Lloh26:
	adrp	x8, _UD_Ipause@GOTPAGE
Lloh27:
	ldr	x8, [x8, _UD_Ipause@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_18
LBB0_16:
	mov	w0, #0
	b	LBB0_18
LBB0_17:
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_UDERR
	mov	w0, #-1
LBB0_18:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_UD_I3dnow,8,3                  ; @UD_I3dnow
	.comm	_ud_itab,8,3                    ; @ud_itab
	.comm	_UD_Iswapgs,8,3                 ; @UD_Iswapgs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"swapgs invalid in 64bits mode\n"

	.comm	_UD_Ixchg,8,3                   ; @UD_Ixchg
	.comm	_UD_OP_REG,8,3                  ; @UD_OP_REG
	.comm	_UD_R_AX,8,3                    ; @UD_R_AX
	.comm	_UD_R_EAX,8,3                   ; @UD_R_EAX
	.comm	_UD_NONE,8,3                    ; @UD_NONE
	.comm	_UD_Inop,8,3                    ; @UD_Inop
	.comm	_UD_Ipause,8,3                  ; @UD_Ipause
	.no_dead_strip	_resolve_mnemonic
.subsections_via_symbols
