	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tb_alloc_logevent
_tb_alloc_logevent:                     ## @tb_alloc_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	addq	$3, %rdx
	andq	$-4, %rdx
	movq	(%rdi), %r12
	movq	8(%rdi), %rcx
	leaq	(%r12,%rdx), %rax
	cmpq	%rcx, %rax
	jg	LBB0_2
## %bb.1:
	movl	%esi, %r14d
	movq	16(%rbx), %r13
	leaq	(%r12,%r13), %r15
	movq	%rax, (%rbx)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	%r14d, (%r13,%r12)
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	movq	%rax, %rdx
	callq	_vkprintf
	movq	8(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_kprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"B->p + size = %lld, B->size = %lld\n"

L_.str.1:                               ## @.str.1
	.asciz	"Transaction buffer too small (%lld), try increase it with -M command line switch.\n"

	.no_dead_strip	_tb_alloc_logevent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tb_alloc_logevent
_tb_alloc_logevent:                     ; @tb_alloc_logevent
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	add	x8, x2, #3
	and	x2, x8, #0xfffffffffffffffc
	ldp	x9, x3, [x0]
	add	x8, x9, x2
	cmp	x8, x3
	b.gt	LBB0_2
; %bb.1:
	mov	x19, x1
	ldr	x10, [x0, #16]
	add	x20, x10, x9
	str	x8, [x0]
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	str	w19, [x20]
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x19, x0
	mov	w0, #3
	mov	x2, x8
	bl	_vkprintf
	ldr	x1, [x19, #8]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_kprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"B->p + size = %lld, B->size = %lld\n"

l_.str.1:                               ; @.str.1
	.asciz	"Transaction buffer too small (%lld), try increase it with -M command line switch.\n"

	.no_dead_strip	_tb_alloc_logevent
.subsections_via_symbols
