	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function child_write_output
_child_write_output:                    ## @child_write_output
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_child@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_5
## %bb.1:
	movq	_gen@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	-40(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	callq	_yajl_gen_get_buf
	movq	_child_stdin@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	-40(%rbp), %rsi
	movq	-32(%rbp), %rdx
	xorl	%eax, %eax
	callq	_writeall
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_writeall
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_yajl_gen_clear
	cmpl	$-1, %ebx
	jne	LBB0_5
	jmp	LBB0_4
LBB0_3:
	movl	(%r15), %edi
	callq	_yajl_gen_clear
LBB0_4:
	movl	$0, (%r14)
	xorl	%eax, %eax
	callq	_kill_child
	leaq	L_.str.1(%rip), %rdi
	callq	_set_statusline_error
	xorl	%edi, %edi
	callq	_draw_bars
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_child,4,2                      ## @child
	.comm	_gen,4,2                        ## @gen
	.comm	_child_stdin,4,2                ## @child_stdin
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

L_.str.1:                               ## @.str.1
	.asciz	"child_write_output failed"

	.no_dead_strip	_child_write_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function child_write_output
_child_write_output:                    ; @child_write_output
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x20, _child@GOTPAGE
Lloh1:
	ldr	x20, [x20, _child@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_5
; %bb.1:
Lloh2:
	adrp	x21, _gen@GOTPAGE
Lloh3:
	ldr	x21, [x21, _gen@GOTPAGEOFF]
	ldr	w0, [x21]
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_yajl_gen_get_buf
Lloh4:
	adrp	x19, _child_stdin@GOTPAGE
Lloh5:
	ldr	x19, [x19, _child_stdin@GOTPAGEOFF]
	ldr	w0, [x19]
	ldp	x9, x8, [sp, #16]
	stp	x8, x9, [sp]
	bl	_writeall
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x19]
	mov	w8, #1
Lloh6:
	adrp	x9, l_.str@PAGE
Lloh7:
	add	x9, x9, l_.str@PAGEOFF
	stp	x9, x8, [sp]
	bl	_writeall
	mov	x19, x0
	ldr	w0, [x21]
	bl	_yajl_gen_clear
	cmn	w19, #1
	b.ne	LBB0_5
	b	LBB0_4
LBB0_3:
	ldr	w0, [x21]
	bl	_yajl_gen_clear
LBB0_4:
	str	wzr, [x20]
	bl	_kill_child
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_set_statusline_error
	mov	w0, #0
	bl	_draw_bars
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_child,4,2                      ; @child
	.comm	_gen,4,2                        ; @gen
	.comm	_child_stdin,4,2                ; @child_stdin
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

l_.str.1:                               ; @.str.1
	.asciz	"child_write_output failed"

	.no_dead_strip	_child_write_output
.subsections_via_symbols
