	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RegExpConstr_value
_RegExpConstr_value:                    ## @RegExpConstr_value
	.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	%r8, %r13
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	cmpl	$129, %ebx
	je	LBB0_10
## %bb.1:
	cmpl	$128, %ebx
	jne	LBB0_14
## %bb.2:
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.3:
	movl	(%r13), %edi
	callq	_is_object_instance
	testl	%eax, %eax
	je	LBB0_11
## %bb.4:
	movl	(%r13), %edi
	callq	_get_object
	movl	%eax, %edi
	callq	_iface_to_jsdisp
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	%rax, %rbx
	movq	_JSCLASS_REGEXP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_is_class
	testl	%eax, %eax
	je	LBB0_20
## %bb.6:
	cmpl	$2, %r12d
	jb	LBB0_8
## %bb.7:
	movl	4(%r13), %edi
	callq	_is_undefined
	testl	%eax, %eax
	je	LBB0_22
LBB0_8:
	movq	%rbx, %rdi
	testq	%r14, %r14
	jne	LBB0_9
LBB0_21:
	callq	_jsdisp_release
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_10:
	testl	%r12d, %r12d
	je	LBB0_15
LBB0_11:
	movl	(%r13), %esi
	addq	$4, %r13
	xorl	%edx, %edx
	cmpl	$1, %r12d
	cmovneq	%r13, %rdx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	callq	_create_regexp_var
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testl	%eax, %eax
	jne	LBB0_18
## %bb.12:
	movq	-48(%rbp), %rdi
	testq	%r14, %r14
	je	LBB0_21
LBB0_9:
	callq	_jsval_obj
	movl	%eax, (%r14)
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_14:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_FIXME
	jmp	LBB0_16
LBB0_15:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_FIXME
LBB0_16:
	movq	_E_NOTIMPL@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	%rbx, %rdi
	callq	_jsdisp_release
	jmp	LBB0_11
LBB0_22:
	movq	%rbx, %rdi
	callq	_jsdisp_release
	movq	_JS_E_REGEXP_SYNTAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_throw_regexp_error             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_JSCLASS_REGEXP,4,2             ## @JSCLASS_REGEXP
	.comm	_JS_E_REGEXP_SYNTAX,4,2         ## @JS_E_REGEXP_SYNTAX
	.comm	_S_OK,4,2                       ## @S_OK
L_.str.1:                               ## @.str.1
	.asciz	"no args\n"

	.comm	_E_NOTIMPL,4,2                  ## @E_NOTIMPL
L_.str.2:                               ## @.str.2
	.asciz	"unimplemented flags: %x\n"

	.no_dead_strip	_RegExpConstr_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RegExpConstr_value
_RegExpConstr_value:                    ; @RegExpConstr_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	cmp	w23, #129
	b.eq	LBB0_10
; %bb.1:
	cmp	w23, #128
	b.ne	LBB0_15
; %bb.2:
	cbz	w22, LBB0_16
; %bb.3:
	ldr	w0, [x21]
	bl	_is_object_instance
	cbz	w0, LBB0_11
; %bb.4:
	ldr	w0, [x21]
	bl	_get_object
	bl	_iface_to_jsdisp
	cbz	x0, LBB0_11
; %bb.5:
	mov	x23, x0
Lloh2:
	adrp	x8, _JSCLASS_REGEXP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _JSCLASS_REGEXP@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_is_class
	cbz	w0, LBB0_20
; %bb.6:
	cmp	w22, #2
	b.lo	LBB0_8
; %bb.7:
	ldr	w0, [x21, #4]
	bl	_is_undefined
	cbz	w0, LBB0_21
LBB0_8:
	mov	x0, x23
	cbnz	x19, LBB0_13
LBB0_9:
	bl	_jsdisp_release
	b	LBB0_14
LBB0_10:
	cbz	w22, LBB0_16
LBB0_11:
	ldr	w1, [x21], #4
	cmp	w22, #1
	csel	x2, xzr, x21, eq
	add	x3, sp, #8
	mov	x0, x20
	bl	_create_regexp_var
	mov	x20, x0
	bl	_FAILED
	cbnz	w0, LBB0_19
; %bb.12:
	ldr	x0, [sp, #8]
	cbz	x19, LBB0_9
LBB0_13:
	bl	_jsval_obj
	str	w0, [x19]
LBB0_14:
Lloh5:
	adrp	x8, _S_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_18
LBB0_15:
	str	x23, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_17:
	bl	_FIXME
Lloh11:
	adrp	x8, _E_NOTIMPL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _E_NOTIMPL@GOTPAGEOFF]
LBB0_18:
	ldr	w20, [x8]
LBB0_19:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
LBB0_20:
	mov	x0, x23
	bl	_jsdisp_release
	b	LBB0_11
LBB0_21:
	mov	x0, x23
	bl	_jsdisp_release
Lloh13:
	adrp	x8, _JS_E_REGEXP_SYNTAX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _JS_E_REGEXP_SYNTAX@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	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
	add	sp, sp, #80
	b	_throw_regexp_error
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_JSCLASS_REGEXP,4,2             ; @JSCLASS_REGEXP
	.comm	_JS_E_REGEXP_SYNTAX,4,2         ; @JS_E_REGEXP_SYNTAX
	.comm	_S_OK,4,2                       ; @S_OK
l_.str.1:                               ; @.str.1
	.asciz	"no args\n"

	.comm	_E_NOTIMPL,4,2                  ; @E_NOTIMPL
l_.str.2:                               ; @.str.2
	.asciz	"unimplemented flags: %x\n"

	.no_dead_strip	_RegExpConstr_value
.subsections_via_symbols
