	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function onig_regexp_to_s
_onig_regexp_to_s:                      ## @onig_regexp_to_s
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ONIG_OPTION_MULTILINE@GOTPCREL(%rip), %rax
	movq	_ONIG_OPTION_IGNORECASE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	_ONIG_OPTION_EXTEND@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	leaq	L_.str(%rip), %rsi
	callq	_mrb_str_new_lit
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_mrb_onig_regexp_type@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_Data_Get_Struct
	callq	_onig_get_options
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_mrb_intern_lit
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_mrb_iv_get
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_RSTRING_PTR
	movq	%rax, %r15
	movl	%r12d, %edi
	callq	_RSTRING_LEN
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpq	$4, %rax
	jl	LBB0_11
## %bb.1:
	movl	%r12d, -92(%rbp)                ## 4-byte Spill
	cmpb	$40, (%r15)
	movq	%r15, %r12
	jne	LBB0_12
## %bb.2:
	cmpb	$63, 1(%r12)
	jne	LBB0_12
## %bb.3:
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	addq	$2, %r12
	decq	-64(%rbp)                       ## 8-byte Folded Spill
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	orl	%ecx, %r15d
	orl	%r15d, %ebx
	incq	%r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%r14, %rax
	decq	%rax
	decq	%r14
	cmpq	$1, %rax
	jbe	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$105, %esi
	callq	_strchr
	movl	$0, %r13d
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_ONIG_OPTION_IGNORECASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movl	$120, %esi
	callq	_strchr
	movl	$0, %r15d
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_ONIG_OPTION_EXTEND@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	orl	%r13d, %ebx
	movq	%r12, %rdi
	movl	$109, %esi
	callq	_strchr
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_ONIG_OPTION_MULTILINE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_4
LBB0_11:
	movq	%r15, %r12
LBB0_12:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_19:
	leaq	-49(%rbp), %rdi
	movl	%ebx, %esi
	callq	_option_to_str
	cmpq	$0, (%rax)
	je	LBB0_21
## %bb.20:
	leaq	-49(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_mrb_str_cat_cstr
LBB0_21:
	notl	%ebx
	testl	%ebx, %r13d
	je	LBB0_23
## %bb.22:
	movb	$45, -49(%rbp)
	leaq	-48(%rbp), %rdi
	movl	%ebx, %esi
	callq	_option_to_str
	leaq	-49(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_mrb_str_cat_cstr
LBB0_23:
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_mrb_str_cat_cstr
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_regexp_expr_str
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_mrb_str_cat_cstr
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movb	(%r12), %al
	cmpb	$41, %al
	je	LBB0_18
## %bb.14:
	cmpb	$58, %al
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	jne	LBB0_17
## %bb.15:
	cmpb	$41, -1(%r12)
	jne	LBB0_17
## %bb.16:
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	subq	%r14, %rdx
	leaq	3(%rdx), %rsi
	addq	$-5, %rdx
	movq	_ONIG_OPTION_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ONIG_ENCODING_UTF8@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_OnigDefaultSyntax@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	$0, (%rsp)
	leaq	-96(%rbp), %rdi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	callq	_onig_new
	movl	%eax, %r12d
	movl	-96(%rbp), %edi
	callq	_onig_free
	testl	%r12d, %r12d
	je	LBB0_24
LBB0_17:
	callq	_onig_get_options
	movl	%eax, %ebx
	movl	-92(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_RSTRING_PTR
	movq	%rax, %r12
	movl	%r14d, %edi
	callq	_RSTRING_LEN
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_18:
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	subq	%r14, %r12
	addq	$3, %r12
	movq	$-1, -64(%rbp)                  ## 8-byte Folded Spill
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_19
LBB0_24:
	movq	$-2, -64(%rbp)                  ## 8-byte Folded Spill
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ONIG_OPTION_MULTILINE,4,2      ## @ONIG_OPTION_MULTILINE
	.comm	_ONIG_OPTION_IGNORECASE,4,2     ## @ONIG_OPTION_IGNORECASE
	.comm	_ONIG_OPTION_EXTEND,4,2         ## @ONIG_OPTION_EXTEND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(?"

	.comm	_mrb_onig_regexp_type,4,2       ## @mrb_onig_regexp_type
L_.str.1:                               ## @.str.1
	.asciz	"@source"

	.comm	_ONIG_OPTION_DEFAULT,4,2        ## @ONIG_OPTION_DEFAULT
	.comm	_ONIG_ENCODING_UTF8,4,2         ## @ONIG_ENCODING_UTF8
	.comm	_OnigDefaultSyntax,4,2          ## @OnigDefaultSyntax
L_.str.2:                               ## @.str.2
	.asciz	":"

L_.str.3:                               ## @.str.3
	.asciz	")"

	.no_dead_strip	_onig_regexp_to_s
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function onig_regexp_to_s
_onig_regexp_to_s:                      ; @onig_regexp_to_s
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x27, _ONIG_OPTION_MULTILINE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _ONIG_OPTION_MULTILINE@GOTPAGEOFF]
Lloh2:
	adrp	x28, _ONIG_OPTION_IGNORECASE@GOTPAGE
Lloh3:
	ldr	x28, [x28, _ONIG_OPTION_IGNORECASE@GOTPAGEOFF]
	ldr	w8, [x27]
	ldr	w9, [x28]
	orr	w26, w9, w8
Lloh4:
	adrp	x25, _ONIG_OPTION_EXTEND@GOTPAGE
Lloh5:
	ldr	x25, [x25, _ONIG_OPTION_EXTEND@GOTPAGEOFF]
	ldr	w8, [x25]
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_mrb_str_new_lit
	mov	x20, x0
Lloh8:
	adrp	x2, _mrb_onig_regexp_type@GOTPAGE
Lloh9:
	ldr	x2, [x2, _mrb_onig_regexp_type@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x21
	bl	_Data_Get_Struct
	bl	_onig_get_options
	mov	x22, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mrb_intern_lit
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_mrb_iv_get
	mov	x23, x0
	bl	_RSTRING_PTR
	mov	x21, x0
	mov	x0, x23
	bl	_RSTRING_LEN
	mov	x24, x0
	cmp	x0, #4
	b.lt	LBB0_11
; %bb.1:
	ldrb	w8, [x21]
	cmp	w8, #40
	b.ne	LBB0_11
; %bb.2:
	ldrb	w8, [x21, #1]
	cmp	w8, #63
	b.ne	LBB0_11
; %bb.3:
	str	w26, [sp, #12]                  ; 4-byte Folded Spill
	add	x21, x21, #3
	sub	x26, x24, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x24, x21, #1
	mov	x0, x24
	mov	w1, #105
	bl	_strchr
	ldr	w8, [x28]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w22, w8, w22
	mov	x0, x24
	mov	w1, #120
	bl	_strchr
	ldr	w8, [x25]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w22, w22, w8
	mov	x0, x24
	mov	w1, #109
	bl	_strchr
	ldr	w8, [x27]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w22, w22, w8
	add	x21, x21, #1
	sub	x26, x26, #1
	cmp	x26, #1
	b.hi	LBB0_4
; %bb.5:
	ldurb	w8, [x21, #-1]
	cmp	w8, #41
	ldr	w26, [sp, #12]                  ; 4-byte Folded Reload
	b.eq	LBB0_10
; %bb.6:
	cmp	w8, #58
	b.ne	LBB0_9
; %bb.7:
	ldurb	w8, [x21, #-2]
	cmp	w8, #41
	b.ne	LBB0_9
; %bb.8:
	sub	x2, x21, #8
Lloh12:
	adrp	x8, _ONIG_OPTION_DEFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ONIG_OPTION_DEFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x8, _ONIG_ENCODING_UTF8@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ONIG_ENCODING_UTF8@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
Lloh18:
	adrp	x8, _OnigDefaultSyntax@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OnigDefaultSyntax@GOTPAGEOFF]
Lloh20:
	ldr	w5, [x8]
	add	x0, sp, #20
	mov	x1, x21
	mov	x6, #0
	bl	_onig_new
	mov	x24, x0
	ldr	w0, [sp, #20]
	bl	_onig_free
	cbz	w24, LBB0_16
LBB0_9:
	bl	_onig_get_options
	mov	x22, x0
	mov	x0, x23
	bl	_RSTRING_PTR
	mov	x21, x0
	mov	x0, x23
	bl	_RSTRING_LEN
	mov	x24, x0
	b	LBB0_11
LBB0_10:
	mov	x24, #-1
LBB0_11:
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	orr	w23, w26, w8
	add	x0, sp, #27
	mov	x1, x22
	bl	_option_to_str
	ldr	x8, [x0]
	cbz	x8, LBB0_13
; %bb.12:
	add	x2, sp, #27
	mov	x0, x19
	mov	x1, x20
	bl	_mrb_str_cat_cstr
LBB0_13:
	bics	wzr, w23, w22
	b.eq	LBB0_15
; %bb.14:
	mov	w8, #45
	strb	w8, [sp, #27]
	add	x8, sp, #27
	add	x0, x8, #1
	mvn	w1, w22
	bl	_option_to_str
	add	x2, sp, #27
	mov	x0, x19
	mov	x1, x20
	bl	_mrb_str_cat_cstr
LBB0_15:
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_mrb_str_cat_cstr
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x24
	bl	_regexp_expr_str
Lloh23:
	adrp	x2, l_.str.3@PAGE
Lloh24:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_mrb_str_cat_cstr
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_16:
	mov	x24, #-2
	b	LBB0_11
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ONIG_OPTION_MULTILINE,4,2      ; @ONIG_OPTION_MULTILINE
	.comm	_ONIG_OPTION_IGNORECASE,4,2     ; @ONIG_OPTION_IGNORECASE
	.comm	_ONIG_OPTION_EXTEND,4,2         ; @ONIG_OPTION_EXTEND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(?"

	.comm	_mrb_onig_regexp_type,4,2       ; @mrb_onig_regexp_type
l_.str.1:                               ; @.str.1
	.asciz	"@source"

	.comm	_ONIG_OPTION_DEFAULT,4,2        ; @ONIG_OPTION_DEFAULT
	.comm	_ONIG_ENCODING_UTF8,4,2         ; @ONIG_ENCODING_UTF8
	.comm	_OnigDefaultSyntax,4,2          ; @OnigDefaultSyntax
l_.str.2:                               ; @.str.2
	.asciz	":"

l_.str.3:                               ; @.str.3
	.asciz	")"

	.no_dead_strip	_onig_regexp_to_s
.subsections_via_symbols
