	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jsstr_flush
_jsstr_flush:                           ## @jsstr_flush
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_jsstr_length
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_jsstr_is_inline
	testq	%rax, %rax
	sete	%al
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	je	LBB0_3
## %bb.1:
                                        ## implicit-def: $r12d
	jmp	LBB0_2
LBB0_3:
	xorl	%r13d, %r13d
                                        ## implicit-def: $r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_jsstr_is_heap
	movq	%rbx, %rdi
	testq	%rax, %rax
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_jsstr_as_rope
	movq	%rax, %rbx
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_jsstr_flush
	movq	(%rbx), %rdi
	movq	8(%rbx), %rbx
	callq	_jsstr_length
	cltq
	leaq	(%r15,%rax,4), %r15
	testb	$1, %r13b
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r12d
	cmovnel	%r14d, %r12d
	movq	%rbx, %rdi
	callq	_jsstr_length
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_jsstr_is_inline
	movb	$1, %r13b
	movl	%r12d, %r14d
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	callq	_jsstr_as_inline
	movl	%r12d, %r14d
	movb	-41(%rbp), %r12b                ## 1-byte Reload
	jmp	LBB0_6
LBB0_5:
	callq	_jsstr_as_heap
	movl	%r13d, %r12d
LBB0_6:
	movl	(%rax), %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leal	(,%rbx,4), %edx
	movq	%r15, %rdi
	callq	_memcpy
	testb	$1, %r12b
	cmovel	%ebx, %r14d
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_jsstr_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jsstr_flush
_jsstr_flush:                           ; @jsstr_flush
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x21, x0
	bl	_jsstr_length
	mov	x20, x0
	mov	x0, x21
	bl	_jsstr_is_inline
	cmp	x0, #0
	cset	w24, eq
	cbz	x0, LBB0_2
; %bb.1:
                                        ; implicit-def: $w23
	b	LBB0_5
LBB0_2:
	mov	w25, #0
                                        ; implicit-def: $w23
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_jsstr_is_heap
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_jsstr_as_rope
	mov	x22, x0
	ldr	x0, [x0]
	mov	x1, x19
	bl	_jsstr_flush
	ldp	x0, x21, [x22]
	bl	_jsstr_length
	add	x19, x19, w0, sxtw #2
	tst	w25, #0x1
	csel	w23, w23, w20, ne
	mov	x0, x21
	bl	_jsstr_length
	mov	x20, x0
	mov	x0, x21
	bl	_jsstr_is_inline
	mov	w25, #1
	cbz	x0, LBB0_3
LBB0_5:
	mov	x0, x21
	bl	_jsstr_as_inline
	mov	x25, x24
	b	LBB0_7
LBB0_6:
	mov	x0, x21
	bl	_jsstr_as_heap
LBB0_7:
	ldr	w1, [x0]
	lsl	w2, w20, #2
	mov	x0, x19
	bl	_memcpy
	tst	w25, #0x1
	csel	w0, w23, w20, ne
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_jsstr_flush
.subsections_via_symbols
