	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_buffered_logevent        ## -- Begin function alloc_buffered_logevent
	.p2align	4, 0x90
_alloc_buffered_logevent:               ## @alloc_buffered_logevent
	.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
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdi, %r14
	movl	%esi, -24(%rbp)
	leal	3(%rdx), %ebx
	andl	$-4, %ebx
	movl	%ebx, -20(%rbp)
	xorl	%edi, %edi
	cmpl	$4, %ebx
	setge	%dil
	callq	_assert
	addl	$8, %ebx
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, (%r14)
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	(%r14), %rdi
	leaq	-20(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	(%r14), %rdi
	addq	$8, %rdi
	leaq	-24(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	(%r14), %rax
	addq	$8, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_buffered_logevent        ; -- Begin function alloc_buffered_logevent
	.p2align	2
_alloc_buffered_logevent:               ; @alloc_buffered_logevent
	.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
	add	w8, w2, #3
	and	w20, w8, #0xfffffffc
	stp	w20, w1, [sp, #8]
	cmp	w20, #3
	cset	w0, gt
	bl	_assert
	add	w0, w20, #8
	mov	w1, #1
	bl	_calloc
	str	x0, [x19]
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	x0, [x19]
	add	x1, sp, #8
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x19]
	add	x0, x8, #8
	add	x1, sp, #12
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x19]
	add	x0, x8, #8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
