	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_regexp_flags             ## -- Begin function parse_regexp_flags
	.p2align	4, 0x90
_parse_regexp_flags:                    ## @parse_regexp_flags
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	movslq	%esi, %rax
	leaq	(%rdi,%rax,4), %r10
	xorl	%eax, %eax
	movl	$523, %r8d                      ## imm = 0x20B
	leaq	l_switch.table.parse_regexp_flags(%rip), %r9
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi), %esi
	leal	-103(%rsi), %ecx
	rorl	%ecx
	cmpl	$10, %ecx
	jae	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	btl	%ecx, %r8d
	jae	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ecx, %rcx
	movq	(%r9,%rcx,8), %rcx
	orl	(%rcx), %eax
	addq	$4, %rdi
	cmpq	%r10, %rdi
	jb	LBB0_3
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_WARN
	movq	_E_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
LBB0_7:
	movl	%eax, (%rdx)
	movq	_S_OK@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_GLOB,4,2                   ## @REG_GLOB
	.comm	_REG_FOLD,4,2                   ## @REG_FOLD
	.comm	_REG_MULTILINE,4,2              ## @REG_MULTILINE
	.comm	_REG_STICKY,4,2                 ## @REG_STICKY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong flag %c\n"

	.comm	_E_FAIL,4,2                     ## @E_FAIL
	.comm	_S_OK,4,2                       ## @S_OK
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.parse_regexp_flags
l_switch.table.parse_regexp_flags:
	.quad	_REG_GLOB
	.quad	_REG_FOLD
	.quad	_REG_GLOB
	.quad	_REG_MULTILINE
	.quad	_REG_GLOB
	.quad	_REG_GLOB
	.quad	_REG_GLOB
	.quad	_REG_GLOB
	.quad	_REG_GLOB
	.quad	_REG_STICKY

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_regexp_flags             ; -- Begin function parse_regexp_flags
	.p2align	2
_parse_regexp_flags:                    ; @parse_regexp_flags
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	w1, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w8, #0
	add	x9, x0, w1, sxtw #2
	mov	w10, #523
Lloh0:
	adrp	x11, l_switch.table.parse_regexp_flags@PAGE
Lloh1:
	add	x11, x11, l_switch.table.parse_regexp_flags@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x0]
	sub	w12, w1, #103
	ror	w12, w12, #1
	cmp	w12, #10
	b.hs	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	lsr	w13, w10, w12
	tbz	w13, #0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x12, [x11, w12, sxtw #3]
	ldr	w12, [x12]
	orr	w8, w12, w8
	add	x0, x0, #4
	cmp	x0, x9
	b.lo	LBB0_2
	b	LBB0_7
LBB0_5:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
Lloh4:
	adrp	x8, _E_FAIL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _E_FAIL@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	w8, #0
LBB0_7:
	str	w8, [x2]
Lloh6:
	adrp	x8, _S_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_GLOB,4,2                   ; @REG_GLOB
	.comm	_REG_FOLD,4,2                   ; @REG_FOLD
	.comm	_REG_MULTILINE,4,2              ; @REG_MULTILINE
	.comm	_REG_STICKY,4,2                 ; @REG_STICKY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong flag %c\n"

	.comm	_E_FAIL,4,2                     ; @E_FAIL
	.comm	_S_OK,4,2                       ; @S_OK
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.parse_regexp_flags
l_switch.table.parse_regexp_flags:
	.quad	_REG_GLOB
	.quad	_REG_FOLD
	.quad	_REG_GLOB
	.quad	_REG_MULTILINE
	.quad	_REG_GLOB
	.quad	_REG_GLOB
	.quad	_REG_GLOB
	.quad	_REG_GLOB
	.quad	_REG_GLOB
	.quad	_REG_STICKY

.subsections_via_symbols
