	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__main                          ## -- Begin function _main
	.p2align	4, 0x90
__main:                                 ## @_main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_R_REGEX_NOSUB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-20(%rbp), %rdi
	callq	_r_regex_comp
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	leaq	-20(%rbp), %r14
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_r_regex_exec
	leaq	L_.str.3(%rip), %rbx
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_r_regex_exec
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
LBB0_3:
	leaq	-20(%rbp), %rdi
	callq	_r_regex_free
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"^hi"

	.comm	_R_REGEX_NOSUB,4,2              ## @R_REGEX_NOSUB
L_.str.2:                               ## @.str.2
	.asciz	"patata"

L_.str.3:                               ## @.str.3
	.asciz	"out = %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"hillow"

L_str:                                  ## @str
	.asciz	"error"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__main                          ; -- Begin function _main
	.p2align	2
__main:                                 ; @_main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _R_REGEX_NOSUB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R_REGEX_NOSUB@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #12
	bl	_r_regex_comp
	cbz	w0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_str@PAGE
Lloh6:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #12
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_r_regex_exec
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh9:
	adrp	x19, l_.str.3@PAGE
Lloh10:
	add	x19, x19, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_printf
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #12
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_r_regex_exec
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x19
	bl	_printf
LBB0_3:
	add	x0, sp, #12
	bl	_r_regex_free
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"^hi"

	.comm	_R_REGEX_NOSUB,4,2              ; @R_REGEX_NOSUB
l_.str.2:                               ; @.str.2
	.asciz	"patata"

l_.str.3:                               ; @.str.3
	.asciz	"out = %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"hillow"

l_str:                                  ; @str
	.asciz	"error"

.subsections_via_symbols
