	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stdin_io_first_line_cb
_stdin_io_first_line_cb:                ## @stdin_io_first_line_cb
	.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	%rsi, %rdi
	leaq	-20(%rbp), %rsi
	callq	_get_buffer
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movl	-20(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rdx
	callq	_DLOG
	movl	$0, -24(%rbp)
	movl	-20(%rbp), %edx
	movq	_child@GOTPCREL(%rip), %r14
	leaq	-24(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_parse_json_header
	cmpq	$0, (%r14)
	jle	LBB0_5
## %bb.2:
	movq	_config@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_stop_child
LBB0_4:
	movl	-24(%rbp), %eax
	movq	%rbx, %rdi
	addq	%rax, %rdi
	movl	-20(%rbp), %esi
	subl	%eax, %esi
	callq	_read_json_input
	movl	%eax, %edi
	callq	_draw_bars
	jmp	LBB0_6
LBB0_5:
	movl	$1, %edi
	movl	$4, %esi
	callq	_scalloc
	movq	_blocks@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_statusline_head@GOTPCREL(%rip), %rdi
	movq	%rax, %rsi
	callq	_TAILQ_INSERT_TAIL
	movl	-20(%rbp), %esi
	movq	%rbx, %rdi
	callq	_read_flat_input
LBB0_6:
	movq	%rbx, %rdi
	callq	_free
	movq	_main_loop@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_stdin_io@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_ev_io_stop
	movl	(%rbx), %edi
	movq	_stdin_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_stdin_io_cb@GOTPCREL(%rip), %rsi
	callq	_ev_io_init
	movl	(%r14), %edi
	movl	(%rbx), %esi
	callq	_ev_io_start
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Detecting input type based on buffer *%.*s*\n"

	.comm	_child,8,3                      ## @child
	.comm	_config,8,3                     ## @config
	.comm	_statusline_head,4,2            ## @statusline_head
	.comm	_blocks,4,2                     ## @blocks
	.comm	_main_loop,4,2                  ## @main_loop
	.comm	_stdin_io,4,2                   ## @stdin_io
	.comm	_stdin_io_cb,4,2                ## @stdin_io_cb
	.comm	_stdin_fd,4,2                   ## @stdin_fd
	.comm	_EV_READ,4,2                    ## @EV_READ
	.no_dead_strip	_stdin_io_first_line_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stdin_io_first_line_cb
_stdin_io_first_line_cb:                ; @stdin_io_first_line_cb
	.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
	mov	x0, x1
	add	x1, sp, #12
	bl	_get_buffer
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w1, [sp, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_DLOG
	str	wzr, [sp, #8]
	ldr	w2, [sp, #12]
Lloh2:
	adrp	x20, _child@GOTPAGE
Lloh3:
	ldr	x20, [x20, _child@GOTPAGEOFF]
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_parse_json_header
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.2:
Lloh4:
	adrp	x8, _config@GOTPAGE
Lloh5:
	ldr	x8, [x8, _config@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	bl	_stop_child
LBB0_4:
	ldp	w8, w9, [sp, #8]
	add	x0, x19, x8
	sub	w1, w9, w8
	bl	_read_json_input
	bl	_draw_bars
	b	LBB0_6
LBB0_5:
	mov	w0, #1
	mov	w1, #4
	bl	_scalloc
	mov	x1, x0
Lloh7:
	adrp	x8, _blocks@GOTPAGE
Lloh8:
	ldr	x8, [x8, _blocks@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x0, _statusline_head@GOTPAGE
Lloh11:
	ldr	x0, [x0, _statusline_head@GOTPAGEOFF]
	bl	_TAILQ_INSERT_TAIL
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_read_flat_input
LBB0_6:
	mov	x0, x19
	bl	_free
Lloh12:
	adrp	x19, _main_loop@GOTPAGE
Lloh13:
	ldr	x19, [x19, _main_loop@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh14:
	adrp	x20, _stdin_io@GOTPAGE
Lloh15:
	ldr	x20, [x20, _stdin_io@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_ev_io_stop
	ldr	w0, [x20]
Lloh16:
	adrp	x8, _stdin_fd@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stdin_fd@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x8, _EV_READ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
Lloh22:
	adrp	x1, _stdin_io_cb@GOTPAGE
Lloh23:
	ldr	x1, [x1, _stdin_io_cb@GOTPAGEOFF]
	bl	_ev_io_init
	ldr	w0, [x19]
	ldr	w1, [x20]
	bl	_ev_io_start
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Detecting input type based on buffer *%.*s*\n"

	.comm	_child,8,3                      ; @child
	.comm	_config,8,3                     ; @config
	.comm	_statusline_head,4,2            ; @statusline_head
	.comm	_blocks,4,2                     ; @blocks
	.comm	_main_loop,4,2                  ; @main_loop
	.comm	_stdin_io,4,2                   ; @stdin_io
	.comm	_stdin_io_cb,4,2                ; @stdin_io_cb
	.comm	_stdin_fd,4,2                   ; @stdin_fd
	.comm	_EV_READ,4,2                    ; @EV_READ
	.no_dead_strip	_stdin_io_first_line_cb
.subsections_via_symbols
