	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function string_scan
_string_scan:                           ## @string_scan
	.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
	movl	%esi, %r14d
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_mrb_get_args
	movl	-48(%rbp), %edi
	callq	_ONIG_REGEXP_P
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	-48(%rbp), %esi
	movq	_mrb_onig_regexp_type@GOTPCREL(%rip), %rdx
	movq	%r13, %rdi
	callq	_Data_Get_Struct
	movl	-44(%rbp), %edi
	callq	_mrb_nil_p
	movl	%r14d, %r12d
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_mrb_ary_new
	movl	%eax, %r12d
LBB0_4:
	movl	-48(%rbp), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_create_onig_region
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_DATA_PTR
	movq	%rax, %r15
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, %rdi
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	movl	%r14d, %ecx
	xorl	%r8d, %r8d
	callq	_onig_match_common
	movq	_ONIG_MISMATCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_24
## %bb.5:
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
LBB0_23:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	callq	_onig_match_common
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movq	_ONIG_MISMATCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_24
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
	movl	-44(%rbp), %edi
	callq	_mrb_nil_p
	movl	%r12d, %edi
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	callq	_mrb_array_p
	movl	%eax, %edi
	callq	_mrb_assert
	movl	(%r15), %esi
	cmpl	$1, %esi
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movl	(%rax), %edx
	movl	(%rcx), %ecx
	subl	%edx, %ecx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_str_substr
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_mrb_ary_push
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	callq	_mrb_string_p
	movl	%eax, %edi
	callq	_mrb_assert
	movl	(%r15), %esi
	cmpl	$1, %esi
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %ebx
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movl	(%rax), %edx
	movl	(%rcx), %ecx
	subl	%edx, %ecx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_str_substr
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_mrb_yield
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	decl	%esi
	movq	%r13, %rdi
	callq	_mrb_ary_new_capa
	movl	%eax, %r12d
	cmpl	$2, (%r15)
	jl	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movl	(%rax,%rbx,4), %edx
	movl	(%rcx,%rbx,4), %ecx
	subl	%edx, %ecx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_str_substr
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_mrb_ary_push
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movl	%esi, %r12d
	callq	_mrb_ary_push
	jmp	LBB0_19
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	decl	%esi
	movq	%r13, %rdi
	callq	_mrb_ary_new_capa
	movl	%eax, %r12d
	cmpl	$2, (%r15)
	jl	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movl	(%rax,%rbx,4), %edx
	movl	(%rcx,%rbx,4), %ecx
	subl	%edx, %ecx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_str_substr
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_mrb_ary_push
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_mrb_yield
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movl	(%rcx), %ebx
	cmpl	%ebx, (%rax)
	jne	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%r14d, %edi
	callq	_RSTRING_LEN
	movq	16(%r15), %rcx
	movl	(%rcx), %ebx
	cmpl	%ebx, %eax
	jle	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%r14d, %edi
	callq	_RSTRING_PTR
	movslq	-56(%rbp), %rbx                 ## 4-byte Folded Reload
	addq	%rax, %rbx
	movl	%r14d, %edi
	callq	_RSTRING_LEN
	movslq	%eax, %rsi
	addq	%rbx, %rsi
	movq	%rbx, %rdi
	callq	_utf8len
	movl	%eax, %ebx
	movq	16(%r15), %rax
	addl	(%rax), %ebx
	jmp	LBB0_23
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_mrb_intern_lit
	movl	-44(%rbp), %r9d
	leaq	-48(%rbp), %r8
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_mrb_funcall_with_block
	movl	%eax, %r12d
LBB0_24:
	movl	%r12d, %eax
	addq	$24, %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	"&o"

L_.str.1:                               ## @.str.1
	.asciz	"string_scan"

	.comm	_mrb_onig_regexp_type,4,2       ## @mrb_onig_regexp_type
	.comm	_ONIG_MISMATCH,8,3              ## @ONIG_MISMATCH
	.no_dead_strip	_string_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function string_scan
_string_scan:                           ; @string_scan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_mrb_get_args
	ldr	w0, [sp, #8]
	bl	_ONIG_REGEXP_P
	cbz	w0, LBB0_24
; %bb.1:
	ldr	w1, [sp, #8]
Lloh2:
	adrp	x2, _mrb_onig_regexp_type@GOTPAGE
Lloh3:
	ldr	x2, [x2, _mrb_onig_regexp_type@GOTPAGEOFF]
	mov	x0, x20
	bl	_Data_Get_Struct
	ldr	w0, [sp, #12]
	bl	_mrb_nil_p
	mov	x21, x19
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_mrb_ary_new
	mov	x21, x0
LBB0_3:
	ldr	w2, [sp, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_create_onig_region
	mov	x22, x0
	bl	_DATA_PTR
	mov	x23, x0
	mov	x0, x20
	mov	x2, x22
	mov	x3, x19
	mov	w4, #0
	bl	_onig_match_common
Lloh4:
	adrp	x25, _ONIG_MISMATCH@GOTPAGE
Lloh5:
	ldr	x25, [x25, _ONIG_MISMATCH@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_25
; %bb.4:
	mov	w26, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w24, w8, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	mov	x2, x22
	mov	x3, x19
	mov	x4, x24
	bl	_onig_match_common
	ldr	x8, [x25]
	mov	x26, x24
	cmp	x0, x8
	b.eq	LBB0_25
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
	ldr	w0, [sp, #12]
	bl	_mrb_nil_p
	cbz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_mrb_array_p
	bl	_mrb_assert
	ldr	w8, [x23]
	subs	w1, w8, #1
	b.ne	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldp	x8, x9, [x23, #8]
	ldr	w2, [x8]
	ldr	w8, [x9]
	sub	w3, w8, w2
	mov	x0, x20
	mov	x1, x19
	bl	_str_substr
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_mrb_ary_push
	b	LBB0_21
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_mrb_string_p
	bl	_mrb_assert
	ldr	w8, [x23]
	subs	w1, w8, #1
	b.ne	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w24, [sp, #12]
	ldp	x8, x9, [x23, #8]
	ldr	w2, [x8]
	ldr	w8, [x9]
	sub	w3, w8, w2
	mov	x0, x20
	mov	x1, x19
	bl	_str_substr
	mov	x2, x0
	mov	x0, x20
	mov	x1, x24
	b	LBB0_20
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_mrb_ary_new_capa
	mov	x24, x0
	ldr	w8, [x23]
	cmp	w8, #2
	b.lt	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w27, #1
LBB0_14:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x8, x27, #2
	ldp	x9, x10, [x23, #8]
	ldr	w2, [x9, x8]
	ldr	w8, [x10, x8]
	sub	w3, w8, w2
	mov	x0, x20
	mov	x1, x19
	bl	_str_substr
	mov	x2, x0
	mov	x0, x20
	mov	x1, x24
	bl	_mrb_ary_push
	add	x27, x27, #1
	ldrsw	x8, [x23]
	cmp	x27, x8
	b.lt	LBB0_14
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	bl	_mrb_ary_push
	b	LBB0_21
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_mrb_ary_new_capa
	mov	x24, x0
	ldr	w8, [x23]
	cmp	w8, #2
	b.lt	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w27, #1
LBB0_18:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x8, x27, #2
	ldp	x9, x10, [x23, #8]
	ldr	w2, [x9, x8]
	ldr	w8, [x10, x8]
	sub	w3, w8, w2
	mov	x0, x20
	mov	x1, x19
	bl	_str_substr
	mov	x2, x0
	mov	x0, x20
	mov	x1, x24
	bl	_mrb_ary_push
	add	x27, x27, #1
	ldrsw	x8, [x23]
	cmp	x27, x8
	b.lt	LBB0_18
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [sp, #12]
	mov	x0, x20
	mov	x2, x24
LBB0_20:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_mrb_yield
LBB0_21:                                ;   in Loop: Header=BB0_7 Depth=1
	ldp	x8, x9, [x23, #8]
	ldr	w8, [x8]
	ldr	w24, [x9]
	cmp	w8, w24
	b.ne	LBB0_6
; %bb.22:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_RSTRING_LEN
	ldr	x8, [x23, #16]
	ldr	w8, [x8]
	cmp	w0, w8
	b.le	LBB0_5
; %bb.23:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_RSTRING_PTR
	add	x24, x0, w26, sxtw
	mov	x0, x19
	bl	_RSTRING_LEN
	add	x1, x24, w0, sxtw
	mov	x0, x24
	bl	_utf8len
	ldr	x8, [x23, #16]
	ldr	w8, [x8]
	add	w24, w8, w0
	b	LBB0_6
LBB0_24:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_mrb_intern_lit
	mov	x2, x0
	ldr	w5, [sp, #12]
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	w3, #1
	bl	_mrb_funcall_with_block
	mov	x21, x0
LBB0_25:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"&o"

l_.str.1:                               ; @.str.1
	.asciz	"string_scan"

	.comm	_mrb_onig_regexp_type,4,2       ; @mrb_onig_regexp_type
	.comm	_ONIG_MISMATCH,8,3              ; @ONIG_MISMATCH
	.no_dead_strip	_string_scan
.subsections_via_symbols
