	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw_fixword
_tw_fixword:                            ## @tw_fixword
	.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	%rcx, %r14
	movq	%rsi, %rbx
                                        ## kill: def $edi killed $edi def $rdi
	addl	$-128, %edi
	cmpl	$4, %edi
	ja	LBB0_6
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	movq	%rdx, %rsi
	callq	_Strbuf_append
	jmp	LBB0_7
LBB0_3:
	movl	8(%rbx), %edi
	movl	$36, %esi
	callq	_Strrchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	1(%rax), %rcx
	cmpb	$123, 1(%rax)
	cmovneq	%rax, %rcx
	movslq	8(%rbx), %rax
	subq	%rax, %rcx
	incq	%rcx
	movq	%rcx, (%rbx)
	jmp	LBB0_7
LBB0_6:
	movq	$0, (%rbx)
	jmp	LBB0_7
LBB0_2:
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	movl	$126, %esi
	callq	_Strbuf_append1
LBB0_7:
	movq	%r14, %rdi
	callq	_quote
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_Strbuf_append
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_Strbuf_terminate               ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_tw_fixword
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw_fixword
_tw_fixword:                            ; @tw_fixword
	.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	x20, x3
	mov	x19, x1
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_5
; %bb.1:
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:
	str	xzr, [x19]
	mov	x0, x19
	mov	x1, x2
	bl	_Strbuf_append
	b	LBB0_7
LBB0_3:
	ldr	w0, [x19, #8]
	mov	w1, #36
	bl	_Strrchr
	cbz	x0, LBB0_5
; %bb.4:
	mov	x8, x0
	ldrb	w9, [x8, #1]!
	cmp	w9, #123
	csel	x8, x8, x0, eq
	ldrsw	x9, [x19, #8]
	sub	x8, x8, x9
	add	x8, x8, #1
	str	x8, [x19]
	b	LBB0_7
LBB0_5:
	str	xzr, [x19]
	b	LBB0_7
LBB0_6:
	str	xzr, [x19]
	mov	x0, x19
	mov	w1, #126
	bl	_Strbuf_append1
LBB0_7:
	mov	x0, x20
	bl	_quote
	mov	x0, x19
	mov	x1, x20
	bl	_Strbuf_append
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_Strbuf_terminate
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.no_dead_strip	_tw_fixword
.subsections_via_symbols
