	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emit_writehword_indexed_map    ## -- Begin function emit_writehword_indexed_map
	.p2align	4, 0x90
_emit_writehword_indexed_map:           ## @emit_writehword_indexed_map
	.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
	movl	%edx, %r14d
	movl	%edi, %ebx
	testl	%ecx, %ecx
	js	LBB0_3
## %bb.1:
	testl	%esi, %esi
	je	LBB0_4
## %bb.2:
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## TAILCALL
LBB0_3:
	movl	%ebx, %edi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_emit_writehword_indexed        ## TAILCALL
LBB0_4:
	movq	_HOST_TEMPREG@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movl	%ecx, %edi
	movl	$2, %esi
	callq	_emit_shlimm
	movq	_regname@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rbx
	movl	(%rax,%rbx,4), %esi
	movslq	%r14d, %r14
	movl	(%rax,%r14,4), %edx
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %ecx
	leaq	L_.str(%rip), %rdi
	callq	_assem_debug
	movq	(%r15), %rdx
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_rd_rn_rm
	orl	$-511704912, %eax               ## imm = 0xE18000B0
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_output_w32                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HOST_TEMPREG,8,3               ## @HOST_TEMPREG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"strh %s,%s+%s\n"

	.comm	_regname,8,3                    ## @regname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emit_writehword_indexed_map    ; -- Begin function emit_writehword_indexed_map
	.p2align	2
_emit_writehword_indexed_map:           ; @emit_writehword_indexed_map
	.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, x2
	mov	x20, x0
	tbnz	w3, #31, LBB0_3
; %bb.1:
	cbz	w1, LBB0_4
; %bb.2:
	mov	w0, #0
	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	_assert
LBB0_3:
	mov	x0, x20
	mov	x2, 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	_emit_writehword_indexed
LBB0_4:
Lloh0:
	adrp	x21, _HOST_TEMPREG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HOST_TEMPREG@GOTPAGEOFF]
	ldr	x2, [x21]
	mov	x0, x3
	mov	w1, #2
	bl	_emit_shlimm
Lloh2:
	adrp	x8, _regname@GOTPAGE
Lloh3:
	ldr	x8, [x8, _regname@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w1, [x8, w20, sxtw #2]
	ldr	w2, [x8, w19, sxtw #2]
	ldr	x9, [x21]
	ldr	w3, [x8, x9, lsl #2]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_assem_debug
	ldr	x2, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_rd_rn_rm
	mov	w8, #176
	movk	w8, #57728, lsl #16
	orr	w0, w0, w8
	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	_output_w32
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HOST_TEMPREG,8,3               ; @HOST_TEMPREG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"strh %s,%s+%s\n"

	.comm	_regname,8,3                    ; @regname
.subsections_via_symbols
