	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_commit_transaction          ## -- Begin function do_commit_transaction
	.p2align	4, 0x90
_do_commit_transaction:                 ## @do_commit_transaction
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %r12d
	callq	_get_temp_transaction
	movq	$0, (%r15)
	movb	$0, (%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_check_transaction
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	movq	(%rbx), %rcx
	movq	_trs_temp@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_5
## %bb.4:
	movq	_trs_temp_locked@GOTPCREL(%rip), %rdx
	movl	$-1, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_8
LBB0_5:
	cmpq	$0, 8(%rbx)
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_get_next_transaction_id
	movq	%rax, 8(%rbx)
LBB0_7:
	movq	%rbx, %rdi
	callq	_do_declare_transaction
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_assert
	movq	_LEV_MONEY_TRANS_COMMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$16, %esi
	movl	%r12d, %edx
	callq	_alloc_log_event
	movl	16(%rbx), %ecx
	movl	%ecx, 8(%rax)
	movq	8(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	%rax, %rdi
	callq	_commit_transaction
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_assert
	movq	%rbx, %rdi
	callq	_add_temp_transaction
	movq	8(%rbx), %rax
	movq	%rax, (%r15)
	movq	8(%rbx), %rdx
	movl	20(%rbx), %ecx
	movl	16(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_sprintf
	xorl	%edi, %edi
	callq	_flush_binlog_forced
	movl	$1, %eax
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_trs_temp,8,3                   ## @trs_temp
	.comm	_trs_temp_locked,8,3            ## @trs_temp_locked
	.comm	_LEV_MONEY_TRANS_COMMIT,4,2     ## @LEV_MONEY_TRANS_COMMIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%16llx_%08x%08x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_commit_transaction          ; -- Begin function do_commit_transaction
	.p2align	2
_do_commit_transaction:                 ; @do_commit_transaction
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	bl	_get_temp_transaction
	str	xzr, [x20]
	strb	wzr, [x19]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	bl	_check_transaction
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _trs_temp@GOTPAGE
Lloh1:
	ldr	x9, [x9, _trs_temp@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _trs_temp_locked@GOTPAGE
Lloh4:
	ldr	x10, [x10, _trs_temp_locked@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_5
; %bb.4:
	bl	_get_next_transaction_id
	str	x0, [x21, #8]
LBB0_5:
	mov	x0, x21
	bl	_do_declare_transaction
	cmp	w0, #1
	cset	w0, eq
	bl	_assert
Lloh6:
	adrp	x8, _LEV_MONEY_TRANS_COMMIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LEV_MONEY_TRANS_COMMIT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #16
	mov	x2, x22
	bl	_alloc_log_event
	ldr	w8, [x21, #16]
	str	w8, [x0, #8]
	ldr	x8, [x21, #8]
	str	x8, [x0]
	bl	_commit_transaction
	cmp	w0, #1
	cset	w0, eq
	bl	_assert
	mov	x0, x21
	bl	_add_temp_transaction
	ldr	x8, [x21, #8]
	str	x8, [x20]
	ldr	x2, [x21, #8]
	ldp	w4, w3, [x21, #16]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sprintf
	mov	w0, #0
	bl	_flush_binlog_forced
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_trs_temp,8,3                   ; @trs_temp
	.comm	_trs_temp_locked,8,3            ; @trs_temp_locked
	.comm	_LEV_MONEY_TRANS_COMMIT,4,2     ; @LEV_MONEY_TRANS_COMMIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%16llx_%08x%08x"

.subsections_via_symbols
