	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_regexp_var              ## -- Begin function create_regexp_var
	.p2align	4, 0x90
_create_regexp_var:                     ## @create_regexp_var
	.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	%rcx, %r14
	movq	%rdx, %r13
	movl	%esi, %ebx
	movq	%rdi, %r12
	movl	%esi, %edi
	callq	_is_object_instance
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	%ebx, %edi
	callq	_get_object
	movl	%eax, %edi
	callq	_iface_to_jsdisp
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r15
	movq	_JSCLASS_REGEXP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_is_class
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_regexp_from_jsdisp
	movq	(%rax), %rcx
	movq	8(%rax), %rsi
	movl	(%rcx), %edx
	movq	%r12, %rdi
	movq	%r14, %rcx
	callq	_create_regexp
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_jsdisp_release
	jmp	LBB0_17
LBB0_4:
	movq	%r15, %rdi
	callq	_jsdisp_release
LBB0_5:
	movl	%ebx, %edi
	callq	_is_string
	movl	%ebx, %edi
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	callq	_get_string
	movq	%rax, %r15
	testq	%r13, %r13
	je	LBB0_11
## %bb.7:
	movl	(%r13), %edi
	callq	_is_string
	movl	(%r13), %edi
	testl	%eax, %eax
	je	LBB0_14
## %bb.8:
	callq	_get_string
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_jsstr_flatten
	testq	%rax, %rax
	je	LBB0_18
## %bb.9:
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_jsstr_length
	movl	%eax, %esi
	jmp	LBB0_12
LBB0_10:
	callq	_debugstr_jsval
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_15
LBB0_11:
	xorl	%ebx, %ebx
	xorl	%esi, %esi
LBB0_12:
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_parse_regexp_flags
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_17
## %bb.13:
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rcx
	callq	_create_regexp
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_14:
	callq	_debugstr_jsval
	leaq	L_.str.1(%rip), %rdi
LBB0_15:
	movl	%eax, %esi
	callq	_FIXME
	movq	_E_NOTIMPL@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_JSCLASS_REGEXP,4,2             ## @JSCLASS_REGEXP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"src_arg = %s\n"

	.comm	_E_NOTIMPL,4,2                  ## @E_NOTIMPL
L_.str.1:                               ## @.str.1
	.asciz	"unimplemented for %s\n"

	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_regexp_var              ; -- Begin function create_regexp_var
	.p2align	2
_create_regexp_var:                     ; @create_regexp_var
	.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, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_is_object_instance
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x21
	bl	_get_object
	bl	_iface_to_jsdisp
	cbz	x0, LBB0_5
; %bb.2:
	mov	x23, x0
Lloh0:
	adrp	x8, _JSCLASS_REGEXP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JSCLASS_REGEXP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_is_class
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x23
	bl	_regexp_from_jsdisp
	ldp	x8, x1, [x0]
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x19
	bl	_create_regexp
	mov	x19, x0
	mov	x0, x23
	bl	_jsdisp_release
	mov	x0, x19
	b	LBB0_18
LBB0_4:
	mov	x0, x23
	bl	_jsdisp_release
LBB0_5:
	mov	x0, x21
	bl	_is_string
	cbz	w0, LBB0_10
; %bb.6:
	mov	x0, x21
	bl	_get_string
	mov	x21, x0
	cbz	x22, LBB0_11
; %bb.7:
	ldr	w0, [x22]
	bl	_is_string
	mov	x8, x0
	ldr	w0, [x22]
	cbz	w8, LBB0_14
; %bb.8:
	bl	_get_string
	mov	x23, x0
	bl	_jsstr_flatten
	cbz	x0, LBB0_19
; %bb.9:
	mov	x22, x0
	mov	x0, x23
	bl	_jsstr_length
	mov	x1, x0
	b	LBB0_12
LBB0_10:
	mov	x0, x21
	bl	_debugstr_jsval
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_15
LBB0_11:
	mov	w1, #0
LBB0_12:
	add	x2, sp, #12
	mov	x0, x22
	bl	_parse_regexp_flags
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_17
; %bb.13:
	ldr	w2, [sp, #12]
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	bl	_create_regexp
	mov	x22, x0
	b	LBB0_17
LBB0_14:
	bl	_debugstr_jsval
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_15:
	bl	_FIXME
Lloh7:
	adrp	x8, _E_NOTIMPL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E_NOTIMPL@GOTPAGEOFF]
LBB0_16:
	ldr	w22, [x8]
LBB0_17:
	mov	x0, x22
LBB0_18:
	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_19:
Lloh9:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_JSCLASS_REGEXP,4,2             ; @JSCLASS_REGEXP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"src_arg = %s\n"

	.comm	_E_NOTIMPL,4,2                  ; @E_NOTIMPL
l_.str.1:                               ; @.str.1
	.asciz	"unimplemented for %s\n"

	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
.subsections_via_symbols
