	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RegExp_toString
_RegExp_toString:                       ## @RegExp_toString
	.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
	movq	%r9, %r14
	movq	%rsi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	_JSCLASS_REGEXP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_is_vclass
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_regexp_from_vdisp
	movq	_S_OK@GOTPCREL(%rip), %r12
	testq	%r14, %r14
	je	LBB0_12
## %bb.3:
	movq	%rax, %r13
	movl	(%rax), %edi
	callq	_jsstr_length
                                        ## kill: def $eax killed $eax def $rax
	movq	8(%r13), %rcx
	movl	(%rcx), %ebx
	movq	_REG_FOLD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	cmpl	$1, %ecx
	sbbl	$0, %eax
	movq	_REG_GLOB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %eax
	movq	_REG_MULTILINE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %eax
	leal	3(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_jsstr_alloc_buf
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	-48(%rbp), %rax
	leaq	4(%rax), %rsi
	movq	%rsi, -48(%rbp)
	movl	$47, (%rax)
	movl	(%r13), %edi
	callq	_jsstr_flush
	movq	-48(%rbp), %rcx
	movslq	%eax, %rdx
	leaq	(%rcx,%rdx,4), %rax
	addq	$4, %rax
	movq	%rax, -48(%rbp)
	movl	$47, (%rcx,%rdx,4)
	movq	_REG_FOLD@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_7
## %bb.6:
	leaq	4(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movl	$105, (%rax)
	movq	%rcx, %rax
LBB0_7:
	movq	_REG_GLOB@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_9
## %bb.8:
	leaq	4(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movl	$103, (%rax)
	movq	%rcx, %rax
LBB0_9:
	movq	_REG_MULTILINE@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_11
## %bb.10:
	leaq	4(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movl	$109, (%rax)
LBB0_11:
	movq	%r15, %rdi
	callq	_jsval_string
	movl	%eax, (%r14)
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_FIXME
	movq	_E_NOTIMPL@GOTPCREL(%rip), %r12
	jmp	LBB0_12
LBB0_4:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %r12
LBB0_12:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_JSCLASS_REGEXP,4,2             ## @JSCLASS_REGEXP
L_.str.1:                               ## @.str.1
	.asciz	"Not a RegExp\n"

	.comm	_E_NOTIMPL,4,2                  ## @E_NOTIMPL
	.comm	_S_OK,4,2                       ## @S_OK
	.comm	_REG_FOLD,4,2                   ## @REG_FOLD
	.comm	_REG_GLOB,4,2                   ## @REG_GLOB
	.comm	_REG_MULTILINE,4,2              ## @REG_MULTILINE
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.no_dead_strip	_RegExp_toString
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RegExp_toString
_RegExp_toString:                       ; @RegExp_toString
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x5
	mov	x20, x1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh2:
	adrp	x8, _JSCLASS_REGEXP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _JSCLASS_REGEXP@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_is_vclass
	cbz	w0, LBB0_11
; %bb.1:
	mov	x0, x20
	bl	_regexp_from_vdisp
	cbz	x19, LBB0_10
; %bb.2:
	mov	x21, x0
	ldr	w0, [x0]
	bl	_jsstr_length
	ldr	x8, [x21, #8]
	ldr	w22, [x8]
Lloh5:
	adrp	x25, _REG_FOLD@GOTPAGE
Lloh6:
	ldr	x25, [x25, _REG_FOLD@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w22
	mov	w8, #2
	cinc	w8, w8, ne
	add	w8, w8, w0
Lloh7:
	adrp	x24, _REG_GLOB@GOTPAGE
Lloh8:
	ldr	x24, [x24, _REG_GLOB@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w22
	cinc	w8, w8, ne
Lloh9:
	adrp	x23, _REG_MULTILINE@GOTPAGE
Lloh10:
	ldr	x23, [x23, _REG_MULTILINE@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w22
	cinc	w0, w8, ne
	add	x1, sp, #8
	bl	_jsstr_alloc_buf
	cbz	x0, LBB0_12
; %bb.3:
	mov	x20, x0
	ldr	x1, [sp, #8]
	mov	w26, #47
	str	w26, [x1], #4
	str	x1, [sp, #8]
	ldr	w0, [x21]
	bl	_jsstr_flush
	ldr	x8, [sp, #8]
	add	x8, x8, w0, sxtw #2
	str	w26, [x8], #4
	str	x8, [sp, #8]
	ldr	w9, [x25]
	tst	w9, w22
	b.eq	LBB0_5
; %bb.4:
	mov	w9, #105
	str	w9, [x8], #4
	str	x8, [sp, #8]
LBB0_5:
	ldr	w9, [x24]
	tst	w9, w22
	b.eq	LBB0_7
; %bb.6:
	mov	w9, #103
	str	w9, [x8], #4
	str	x8, [sp, #8]
LBB0_7:
	ldr	w9, [x23]
	tst	w9, w22
	b.eq	LBB0_9
; %bb.8:
	mov	w9, #109
	str	w9, [x8], #4
	str	x8, [sp, #8]
LBB0_9:
	mov	x0, x20
	bl	_jsval_string
	str	w0, [x19]
LBB0_10:
Lloh11:
	adrp	x8, _S_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
Lloh15:
	adrp	x8, _E_NOTIMPL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _E_NOTIMPL@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh17:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_JSCLASS_REGEXP,4,2             ; @JSCLASS_REGEXP
l_.str.1:                               ; @.str.1
	.asciz	"Not a RegExp\n"

	.comm	_E_NOTIMPL,4,2                  ; @E_NOTIMPL
	.comm	_S_OK,4,2                       ; @S_OK
	.comm	_REG_FOLD,4,2                   ; @REG_FOLD
	.comm	_REG_GLOB,4,2                   ; @REG_GLOB
	.comm	_REG_MULTILINE,4,2              ; @REG_MULTILINE
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.no_dead_strip	_RegExp_toString
.subsections_via_symbols
