	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_imm16_sh2
_decode_imm16_sh2:                      ## @decode_imm16_sh2
	.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, %r14
	movl	4(%rsi), %eax
	movl	12(%rsi), %ecx
	shll	$10, %eax
	leal	(%rax,%rcx,4), %eax
	movl	%eax, %ebx
	orl	$-262144, %ebx                  ## imm = 0xFFFC0000
	testl	$131072, %eax                   ## imm = 0x20000
	cmovel	%eax, %ebx
	movq	%rsi, %rdi
	callq	_AMD29K_HAS_BIT
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_AMD29K_TYPE_IMM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_AMD29K_TYPE_JMP@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_AMD29K_SET_VALUE
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_AMD29K_SET_INVALID
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_AMD29K_SET_INVALID
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_AMD29K_SET_INVALID
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_AMD29K_SET_INVALID
	movq	%r14, %rdi
	movl	$5, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_AMD29K_SET_INVALID             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AMD29K_TYPE_JMP,4,2            ## @AMD29K_TYPE_JMP
	.comm	_AMD29K_TYPE_IMM,4,2            ## @AMD29K_TYPE_IMM
	.no_dead_strip	_decode_imm16_sh2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_imm16_sh2
_decode_imm16_sh2:                      ; @decode_imm16_sh2
	.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, [x1, #4]
	ldr	w9, [x1, #12]
	lsl	w9, w9, #2
	add	w8, w9, w8, lsl #10
	orr	w9, w8, #0xfffc0000
	tst	w8, #0x20000
	csel	w20, w8, w9, eq
	mov	x0, x1
	bl	_AMD29K_HAS_BIT
Lloh0:
	adrp	x8, _AMD29K_TYPE_JMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMD29K_TYPE_JMP@GOTPAGEOFF]
Lloh2:
	adrp	x9, _AMD29K_TYPE_IMM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AMD29K_TYPE_IMM@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_AMD29K_SET_VALUE
	mov	x0, x19
	mov	w1, #1
	bl	_AMD29K_SET_INVALID
	mov	x0, x19
	mov	w1, #2
	bl	_AMD29K_SET_INVALID
	mov	x0, x19
	mov	w1, #3
	bl	_AMD29K_SET_INVALID
	mov	x0, x19
	mov	w1, #4
	bl	_AMD29K_SET_INVALID
	mov	x0, x19
	mov	w1, #5
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AMD29K_SET_INVALID
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AMD29K_TYPE_JMP,4,2            ; @AMD29K_TYPE_JMP
	.comm	_AMD29K_TYPE_IMM,4,2            ; @AMD29K_TYPE_IMM
	.no_dead_strip	_decode_imm16_sh2
.subsections_via_symbols
