	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emit_writebyte_indexed_map     ## -- Begin function emit_writebyte_indexed_map
	.p2align	4, 0x90
_emit_writebyte_indexed_map:            ## @emit_writebyte_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	%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	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %ebx
	testl	%ecx, %ecx
	js	LBB0_7
## %bb.1:
	movl	%ecx, %r12d
	cmpl	$3, %ebx
	jg	LBB0_6
## %bb.2:
	movq	_regname@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rcx
	movl	4(%rcx), %esi
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %rcx
	movl	%r12d, %edx
	movq	(%rax,%rdx,8), %r8
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %edx
	callq	_assem_debug
	movq	_ESP@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r14d, (%rax)
	setne	%dil
	callq	_assert
	movl	$136, %edi
	callq	_output_byte
	testl	%r15d, %r15d
	jne	LBB0_4
## %bb.3:
	movq	_EBP@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_4
## %bb.8:
	xorl	%edi, %edi
	movl	$4, %esi
	movl	%ebx, %edx
	callq	_output_modrm
	xorl	%edi, %edi
	movl	%r12d, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_output_sib                     ## TAILCALL
LBB0_7:
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_emit_writebyte_indexed         ## TAILCALL
LBB0_6:
	movl	%r8d, %r13d
	movq	_EAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_emit_xchg
	movq	_EAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	%r14d, %edi
	cmovel	%ebx, %r14d
	cmpl	%r12d, %edi
	cmovel	%ebx, %r12d
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	callq	_emit_writebyte_indexed_map
	movq	_EAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_emit_xchg                      ## TAILCALL
LBB0_4:
	movsbl	%r15b, %eax
	cmpl	%r15d, %eax
	jne	LBB0_5
## %bb.9:
	movl	$1, %edi
	movl	$4, %esi
	movl	%ebx, %edx
	callq	_output_modrm
	xorl	%edi, %edi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_output_sib
	movl	%r15d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_output_byte                    ## TAILCALL
LBB0_5:
	movl	$2, %edi
	movl	$4, %esi
	movl	%ebx, %edx
	callq	_output_modrm
	xorl	%edi, %edi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_output_sib
	movl	%r15d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_output_w32                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"movb %%%cl,%x(%%%s,%%%s,1)\n"

	.comm	_regname,8,3                    ## @regname
	.comm	_ESP,4,2                        ## @ESP
	.comm	_EBP,4,2                        ## @EBP
	.comm	_EAX,4,2                        ## @EAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emit_writebyte_indexed_map     ; -- Begin function emit_writebyte_indexed_map
	.p2align	2
_emit_writebyte_indexed_map:            ; @emit_writebyte_indexed_map
	.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	x19, x2
	mov	x20, x1
	mov	x22, x0
	tbnz	w3, #31, LBB0_5
; %bb.1:
	mov	x21, x3
	cmp	w22, #3
	b.gt	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _regname@GOTPAGE
Lloh1:
	ldr	x8, [x8, _regname@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x8, w22, sxtw #3]
	ldr	w1, [x9, #4]
	ldr	x3, [x8, w19, sxtw #3]
	ldr	x4, [x8, w21, uxtw #3]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_assem_debug
Lloh5:
	adrp	x8, _ESP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ESP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w19
	cset	w0, ne
	bl	_assert
	mov	w0, #136
	bl	_output_byte
	cbnz	w20, LBB0_7
; %bb.3:
Lloh8:
	adrp	x8, _EBP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w19
	b.eq	LBB0_7
; %bb.4:
	mov	w0, #0
	mov	w1, #4
	mov	x2, x22
	bl	_output_modrm
	mov	w0, #0
	mov	x1, x21
	mov	x2, 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
	b	_output_sib
LBB0_5:
	mov	x0, x22
	mov	x1, x20
	mov	x2, 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
	b	_emit_writebyte_indexed
LBB0_6:
	mov	x23, x4
Lloh11:
	adrp	x24, _EAX@GOTPAGE
Lloh12:
	ldr	x24, [x24, _EAX@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	x1, x22
	bl	_emit_xchg
	ldr	w0, [x24]
	cmp	w0, w19
	csel	w2, w22, w19, eq
	cmp	w0, w21
	csel	w3, w22, w21, eq
	mov	x1, x20
	mov	x4, x23
	bl	_emit_writebyte_indexed_map
	ldr	w0, [x24]
	mov	x1, 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	_emit_xchg
LBB0_7:
	cmp	w20, w20, sxtb
	b.ne	LBB0_9
; %bb.8:
	mov	w0, #1
	mov	w1, #4
	mov	x2, x22
	bl	_output_modrm
	mov	w0, #0
	mov	x1, x21
	mov	x2, x19
	bl	_output_sib
	mov	x0, x20
	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	_output_byte
LBB0_9:
	mov	w0, #2
	mov	w1, #4
	mov	x2, x22
	bl	_output_modrm
	mov	w0, #0
	mov	x1, x21
	mov	x2, x19
	bl	_output_sib
	mov	x0, x20
	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	_output_w32
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"movb %%%cl,%x(%%%s,%%%s,1)\n"

	.comm	_regname,8,3                    ; @regname
	.comm	_ESP,4,2                        ; @ESP
	.comm	_EBP,4,2                        ; @EBP
	.comm	_EAX,4,2                        ; @EAX
.subsections_via_symbols
