	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_output_json                    ## -- Begin function output_json
	.p2align	4, 0x90
_output_json:                           ## @output_json
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rdx, %rdi
	callq	_fopen
	movq	%rax, %r12
	testq	%r12, %r12
	jne	LBB0_5
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_FATAL
LBB0_5:
	movq	_conf@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_nlines@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_init_json_output
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rax, %rbx
	cmpq	$0, (%rax)
	jle	LBB0_10
## %bb.9:
	movq	8(%rbx), %rdi
	movq	%r12, %rsi
	callq	_fputs
	movq	%rbx, %rdi
	callq	_free_json
LBB0_10:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fclose                         ## TAILCALL
LBB0_2:
	movq	_stdout@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	testq	%r12, %r12
	jne	LBB0_5
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w"

	.comm	_stdout,8,3                     ## @stdout
L_.str.1:                               ## @.str.1
	.asciz	"Unable to open JSON file: %s."

	.comm	_errno,4,2                      ## @errno
	.comm	_conf,8,3                       ## @conf
	.comm	_nlines,4,2                     ## @nlines
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_output_json                    ; -- Begin function output_json
	.p2align	2
_output_json:                           ; @output_json
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x21, x0
	cbz	x2, LBB0_9
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x2
	bl	_fopen
	mov	x19, x0
	cbnz	x19, LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FATAL
LBB0_3:
Lloh7:
	adrp	x8, _conf@GOTPAGE
Lloh8:
	ldr	x8, [x8, _conf@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh10:
	adrp	x8, _nlines@GOTPAGE
Lloh11:
	ldr	x8, [x8, _nlines@GOTPAGEOFF]
	mov	w9, #1
Lloh12:
	str	w9, [x8]
LBB0_5:
	mov	x0, x21
	mov	x1, x20
	bl	_init_json_output
	cbz	x0, LBB0_8
; %bb.6:
	mov	x20, x0
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.7:
	ldr	x0, [x20, #8]
	mov	x1, x19
	bl	_fputs
	mov	x0, x20
	bl	_free_json
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_fclose
LBB0_9:
Lloh13:
	adrp	x8, _stdout@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh15:
	ldr	x19, [x8]
	cbnz	x19, LBB0_3
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w"

	.comm	_stdout,8,3                     ; @stdout
l_.str.1:                               ; @.str.1
	.asciz	"Unable to open JSON file: %s."

	.comm	_errno,4,2                      ; @errno
	.comm	_conf,8,3                       ; @conf
	.comm	_nlines,4,2                     ; @nlines
.subsections_via_symbols
