	.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	%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	%rsi, %rbx
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	cmpl	$2, %edi
	jl	LBB0_4
## %bb.1:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_exit
LBB0_4:
	movq	_stdin@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_5:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_ucl_parser_new
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_BUFSIZ@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_malloc
	movq	%rax, %rbx
	movl	(%r15), %r15d
	movq	%r13, %rdi
	callq	_feof
	testl	%eax, %eax
	jne	LBB0_13
## %bb.6:
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movslq	%r12d, %rdi
	addq	%rbx, %rdi
	movl	%r15d, %edx
	subl	%r12d, %edx
	movl	$1, %esi
	movq	%r13, %rcx
	callq	_fread
	movq	%rax, %r14
	addl	%r12d, %r14d
	movq	%r13, %rdi
	callq	_feof
	movl	%r14d, %r12d
	testl	%eax, %eax
	jne	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_ferror
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%r15d, %r12d
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	addl	%r15d, %r15d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_realloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	callq	_main.cold.1
	xorl	%eax, %eax
	jmp	LBB0_28
LBB0_8:
	movl	%r12d, %r14d
LBB0_13:
	movq	%r13, %rdi
	callq	_ferror
	testq	%rax, %rax
	jne	LBB0_29
## %bb.14:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_ucl_parser_add_chunk
	movq	%r13, %rdi
	callq	_fclose
	movq	%r15, %rdi
	callq	_ucl_parser_get_error
	movq	%r15, %rdi
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	callq	_ucl_parser_get_error
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf
	movl	$1, %ebx
	xorl	%r14d, %r14d
	testq	%r15, %r15
	jne	LBB0_24
	jmp	LBB0_25
LBB0_16:
	callq	_ucl_parser_get_object
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_ucl_parser_get_error
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	%r15, %rdi
	callq	_ucl_parser_get_error
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf
	movl	$1, %ebx
	testq	%r15, %r15
	jne	LBB0_24
	jmp	LBB0_25
LBB0_18:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	$3, %eax
	jl	LBB0_22
## %bb.19:
	movl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$2, %r13d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r13,8), %rsi
	leaq	L_.str.4(%rip), %rdi
	callq	_printf
	movq	(%r12,%r13,8), %rsi
	movq	%r14, %rdi
	callq	_ucl_object_lookup
	movq	%rax, %r15
	testq	%rax, %rax
	leaq	L_.str.7(%rip), %rsi
	leaq	L_.str.6(%rip), %rax
	cmoveq	%rax, %rsi
	leaq	L_.str.5(%rip), %rdi
	callq	_printf
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ucl_obj_dump
	incq	%r13
	cmpq	%r13, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_20
## %bb.21:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	jne	LBB0_24
	jmp	LBB0_25
LBB0_22:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ucl_obj_dump
	testq	%r15, %r15
	je	LBB0_25
LBB0_24:
	movq	%r15, %rdi
	callq	_ucl_parser_free
LBB0_25:
	testq	%r14, %r14
	je	LBB0_27
## %bb.26:
	movq	%r14, %rdi
	callq	_ucl_object_unref
LBB0_27:
	movl	%ebx, %eax
LBB0_28:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function main.cold.1
_main.cold.1:                           ## @main.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_errno,4,2                      ## @errno
	.comm	_stdin,8,3                      ## @stdin
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
L_.str.1:                               ## @.str.1
	.asciz	"realloc"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"Failed to read the input file.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Error occured: %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"search for \"%s\"... "

L_.str.5:                               ## @.str.5
	.asciz	"%sfound\n"

L_.str.6:                               ## @.str.6
	.asciz	"not "

L_.str.7:                               ## @.str.7
	.space	1

.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:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x21, x0
	cmp	w0, #2
	b.lt	LBB0_4
; %bb.1:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	mov	x22, x0
	cbnz	x0, LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_exit
LBB0_4:
Lloh5:
	adrp	x8, _stdin@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh7:
	ldr	x22, [x8]
LBB0_5:
	mov	w0, #0
	bl	_ucl_parser_new
	mov	x19, x0
Lloh8:
	adrp	x24, _BUFSIZ@GOTPAGE
Lloh9:
	ldr	x24, [x24, _BUFSIZ@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_malloc
	mov	x23, x0
	ldr	w25, [x24]
	mov	x0, x22
	bl	_feof
	mov	w24, #0
	cbz	w0, LBB0_11
LBB0_6:
	mov	x0, x22
	bl	_ferror
	cbnz	x0, LBB0_26
; %bb.7:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_ucl_parser_add_chunk
	mov	x0, x22
	bl	_fclose
	mov	x0, x19
	bl	_ucl_parser_get_error
	cbz	x0, LBB0_15
; %bb.8:
	mov	x0, x19
	bl	_ucl_parser_get_error
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	mov	x22, #0
	mov	w20, #1
	cbnz	x19, LBB0_17
	b	LBB0_18
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x23, x0
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x0, x23, w24, sxtw
	sub	w2, w25, w24
	mov	w1, #1
	mov	x3, x22
	bl	_fread
	add	w24, w24, w0
	mov	x0, x22
	bl	_feof
	cbnz	w0, LBB0_6
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_ferror
	cbnz	x0, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w24, w25
	b.ne	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	lsl	w25, w25, #1
	mov	x0, x23
	mov	x1, x25
	bl	_realloc
	cbnz	x0, LBB0_9
; %bb.14:
	bl	_main.cold.1
LBB0_15:
	mov	x0, x19
	bl	_ucl_parser_get_object
	mov	x22, x0
	mov	x0, x19
	bl	_ucl_parser_get_error
	cbz	x0, LBB0_21
; %bb.16:
	mov	x0, x19
	bl	_ucl_parser_get_error
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	mov	w20, #1
	cbz	x19, LBB0_18
LBB0_17:
	mov	x0, x19
	bl	_ucl_parser_free
LBB0_18:
	cbz	x22, LBB0_20
; %bb.19:
	mov	x0, x22
	bl	_ucl_object_unref
LBB0_20:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_21:
	cmp	w21, #3
	b.lt	LBB0_24
; %bb.22:
	mov	w8, w21
	add	x24, x20, #16
	sub	x25, x8, #2
Lloh14:
	adrp	x20, l_.str.4@PAGE
Lloh15:
	add	x20, x20, l_.str.4@PAGEOFF
Lloh16:
	adrp	x26, l_.str.7@PAGE
Lloh17:
	add	x26, x26, l_.str.7@PAGEOFF
Lloh18:
	adrp	x27, l_.str.6@PAGE
Lloh19:
	add	x27, x27, l_.str.6@PAGEOFF
Lloh20:
	adrp	x21, l_.str.5@PAGE
Lloh21:
	add	x21, x21, l_.str.5@PAGEOFF
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x24]
	mov	x0, x20
	bl	_printf
	ldr	x1, [x24], #8
	mov	x0, x22
	bl	_ucl_object_lookup
	mov	x23, x0
	cmp	x0, #0
	csel	x1, x27, x26, eq
	mov	x0, x21
	bl	_printf
	mov	x0, x23
	mov	w1, #0
	bl	_ucl_obj_dump
	subs	x25, x25, #1
	b.ne	LBB0_23
	b	LBB0_25
LBB0_24:
	mov	x0, x22
	mov	w1, #0
	bl	_ucl_obj_dump
LBB0_25:
	mov	w20, #0
	cbnz	x19, LBB0_17
	b	LBB0_18
LBB0_26:
Lloh22:
	adrp	x8, _stderr@GOTPAGE
Lloh23:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
Lloh27:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function main.cold.1
_main.cold.1:                           ; @main.cold.1
	.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
Lloh30:
	adrp	x0, l_.str.1@PAGE
Lloh31:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
Lloh32:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_errno,4,2                      ; @errno
	.comm	_stdin,8,3                      ; @stdin
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
l_.str.1:                               ; @.str.1
	.asciz	"realloc"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"Failed to read the input file.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Error occured: %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"search for \"%s\"... "

l_.str.5:                               ; @.str.5
	.asciz	"%sfound\n"

l_.str.6:                               ; @.str.6
	.asciz	"not "

l_.str.7:                               ; @.str.7
	.space	1

.subsections_via_symbols
