	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___out_buf_add                  ## -- Begin function __out_buf_add
	.p2align	4, 0x90
___out_buf_add:                         ## @__out_buf_add
	.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	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_out_buf_bytes@GOTPCREL(%rip), %rcx
	addq	%rax, (%rcx)
	movq	_out_buf_init@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %eax
	movl	%eax, -20(%rbp)
	movq	_out_buf_msg@GOTPCREL(%rip), %r14
	leaq	-20(%rbp), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_rwm_push_data
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rwm_union
	movq	_out_buf_packets@GOTPCREL(%rip), %rax
	incl	(%rax)
	movslq	-20(%rbp), %rax
	movq	_out_buf_size@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	%rdx, %rax
	addq	$4, %rax
	movq	%rax, (%rcx)
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	sete	%dil
	callq	_assert
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	(%rbx), %rcx
	movq	_out_buf_msg@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movq	(%rbx), %rcx
	movq	_out_buf_first_int@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movq	_out_buf_packets@GOTPCREL(%rip), %rcx
	movl	$1, (%rcx)
	movq	(%rbx), %rcx
	movq	_out_buf_size@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movq	_out_buf_start@GOTPCREL(%rip), %rcx
	movl	%esi, (%rcx)
	movl	$1, (%rax)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_out_buf_bytes,8,3              ## @out_buf_bytes
	.comm	_out_buf_init,4,2               ## @out_buf_init
	.comm	_out_buf_msg,8,3                ## @out_buf_msg
	.comm	_out_buf_first_int,8,3          ## @out_buf_first_int
	.comm	_out_buf_packets,4,2            ## @out_buf_packets
	.comm	_out_buf_size,8,3               ## @out_buf_size
	.comm	_out_buf_start,4,2              ## @out_buf_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___out_buf_add                  ; -- Begin function __out_buf_add
	.p2align	2
___out_buf_add:                         ; @__out_buf_add
	.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	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _out_buf_bytes@GOTPAGE
Lloh1:
	ldr	x9, [x9, _out_buf_bytes@GOTPAGEOFF]
	ldr	x10, [x9]
	add	x8, x10, x8
	str	x8, [x9]
Lloh2:
	adrp	x8, _out_buf_init@GOTPAGE
Lloh3:
	ldr	x8, [x8, _out_buf_init@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	str	w8, [sp, #12]
Lloh4:
	adrp	x20, _out_buf_msg@GOTPAGE
Lloh5:
	ldr	x20, [x20, _out_buf_msg@GOTPAGEOFF]
	add	x1, sp, #12
	mov	x0, x20
	mov	w2, #4
	bl	_rwm_push_data
	mov	x0, x20
	mov	x1, x19
	bl	_rwm_union
Lloh6:
	adrp	x8, _out_buf_packets@GOTPAGE
Lloh7:
	ldr	x8, [x8, _out_buf_packets@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldrsw	x8, [sp, #12]
Lloh8:
	adrp	x9, _out_buf_size@GOTPAGE
Lloh9:
	ldr	x9, [x9, _out_buf_size@GOTPAGEOFF]
	ldr	x10, [x9]
	add	x8, x8, x10
	add	x8, x8, #4
	str	x8, [x9]
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	ldr	x9, [x19]
Lloh10:
	adrp	x10, _out_buf_msg@GOTPAGE
Lloh11:
	ldr	x10, [x10, _out_buf_msg@GOTPAGEOFF]
Lloh12:
	str	x9, [x10]
	ldr	x9, [x19]
Lloh13:
	adrp	x10, _out_buf_first_int@GOTPAGE
Lloh14:
	ldr	x10, [x10, _out_buf_first_int@GOTPAGEOFF]
Lloh15:
	str	x9, [x10]
Lloh16:
	adrp	x9, _out_buf_packets@GOTPAGE
Lloh17:
	ldr	x9, [x9, _out_buf_packets@GOTPAGEOFF]
	ldr	x10, [x19]
Lloh18:
	adrp	x11, _out_buf_size@GOTPAGE
Lloh19:
	ldr	x11, [x11, _out_buf_size@GOTPAGEOFF]
Lloh20:
	str	x10, [x11]
	mov	w10, #1
Lloh21:
	adrp	x11, _out_buf_start@GOTPAGE
Lloh22:
	ldr	x11, [x11, _out_buf_start@GOTPAGEOFF]
Lloh23:
	str	w10, [x9]
Lloh24:
	str	w1, [x11]
	str	w10, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_memset
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh23
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_out_buf_bytes,8,3              ; @out_buf_bytes
	.comm	_out_buf_init,4,2               ; @out_buf_init
	.comm	_out_buf_msg,8,3                ; @out_buf_msg
	.comm	_out_buf_first_int,8,3          ; @out_buf_first_int
	.comm	_out_buf_packets,4,2            ; @out_buf_packets
	.comm	_out_buf_size,8,3               ; @out_buf_size
	.comm	_out_buf_start,4,2              ; @out_buf_start
.subsections_via_symbols
