	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function record_add
_record_add:                            ## @record_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_try_change_zone
	xorl	%edi, %edi
	cmpl	$4, (%rbx)
	setge	%dil
	callq	_assert
	movl	(%rbx), %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_alloc_log_event
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%rax, %rdi
	callq	_memcpy
	xorl	%eax, %eax
	callq	_compute_uncommitted_log_bytes
	cmpl	$8388609, %eax                  ## imm = 0x800001
	jl	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	callq	_flush_binlog_forced
LBB0_2:
	movq	_add_logevents@GOTPCREL(%rip), %rax
	incl	(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_add_logevents,4,2              ## @add_logevents
	.no_dead_strip	_record_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function record_add
_record_add:                            ; @record_add
	.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
	mov	x19, x0
	bl	_try_change_zone
	ldr	w8, [x19]
	cmp	w8, #3
	cset	w0, gt
	bl	_assert
	ldr	w1, [x19]
	mov	w0, #0
	mov	w2, #0
	bl	_alloc_log_event
	ldp	w2, w1, [x19]
	bl	_memcpy
	bl	_compute_uncommitted_log_bytes
	cmp	w0, #2048, lsl #12              ; =8388608
	b.le	LBB0_2
; %bb.1:
	mov	w0, #0
	bl	_flush_binlog_forced
LBB0_2:
Lloh0:
	adrp	x8, _add_logevents@GOTPAGE
Lloh1:
	ldr	x8, [x8, _add_logevents@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_add_logevents,4,2              ; @add_logevents
	.no_dead_strip	_record_add
.subsections_via_symbols
