	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_regexp                  ## -- Begin function create_regexp
	.p2align	4, 0x90
_create_regexp:                         ## @create_regexp
	.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	%rcx, %rbx
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_jsstr_flatten
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_jsstr_length
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_debugstr_wn
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%r14d, %ebx
	movl	%r14d, %edx
	callq	_TRACE
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_alloc_regexp
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	callq	_jsstr_addref
	movq	-48(%rbp), %rcx
	movq	%rax, 8(%rcx)
	xorl	%edi, %edi
	callq	_jsval_number
	movq	-48(%rbp), %rcx
	movl	%eax, 16(%rcx)
	movq	8(%rcx), %rdi
	callq	_jsstr_length
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r12, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movl	%eax, %ecx
	movl	%ebx, %r8d
	callq	_regexp_new
	movq	-48(%rbp), %rcx
	movl	%eax, 4(%rcx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_WARN
	movq	-48(%rbp), %rdi
	callq	_jsdisp_release
	movq	_E_FAIL@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s %x\n"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"regexp_new failed\n"

	.comm	_E_FAIL,4,2                     ## @E_FAIL
	.comm	_S_OK,4,2                       ## @S_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_regexp                  ; -- Begin function create_regexp
	.p2align	2
_create_regexp:                         ; @create_regexp
	.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	x20, x2
	mov	x23, x1
	mov	x21, x0
	mov	x0, x1
	bl	_jsstr_flatten
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	mov	x0, x23
	bl	_jsstr_length
	mov	x1, x0
	mov	x0, x22
	bl	_debugstr_wn
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_TRACE
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, #0
	bl	_alloc_regexp
	mov	x24, x0
	bl	_FAILED
	cbnz	x0, LBB0_7
; %bb.2:
	mov	x0, x23
	bl	_jsstr_addref
	ldr	x8, [sp, #8]
	str	x0, [x8, #8]
	mov	w0, #0
	bl	_jsval_number
	ldr	x8, [sp, #8]
	str	w0, [x8, #16]
	ldr	x0, [x8, #8]
	bl	_jsstr_length
	mov	x3, x0
Lloh2:
	adrp	x8, _FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh4:
	ldr	w5, [x8]
	mov	x0, x21
	mov	x1, x21
	mov	x2, x22
	mov	x4, x20
	bl	_regexp_new
	ldr	x8, [sp, #8]
	str	w0, [x8, #4]
	cbz	w0, LBB0_5
; %bb.3:
	str	x8, [x19]
Lloh5:
	adrp	x8, _S_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WARN
	ldr	x0, [sp, #8]
	bl	_jsdisp_release
Lloh11:
	adrp	x8, _E_FAIL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _E_FAIL@GOTPAGEOFF]
LBB0_6:
	ldr	w24, [x8]
LBB0_7:
	mov	x0, x24
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s %x\n"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"regexp_new failed\n"

	.comm	_E_FAIL,4,2                     ; @E_FAIL
	.comm	_S_OK,4,2                       ; @S_OK
.subsections_via_symbols
