	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_lock_transaction            ## -- Begin function do_lock_transaction
	.p2align	4, 0x90
_do_lock_transaction:                   ## @do_lock_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_get_temp_transaction
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_check_transaction
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	(%r14), %rax
	movq	_trs_temp@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.4:
	movl	8(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.5:
	movq	_dq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$15, %eax
	cmpl	%eax, %ecx
	jge	LBB0_9
LBB0_8:
	movl	%eax, 8(%r14)
LBB0_9:
	movq	%r14, %rdi
	callq	_lock_transaction
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_assert
	movq	_trs_temp_locked@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	xorl	%edi, %edi
	callq	_flush_binlog_forced
	movl	$2, %ebx
	jmp	LBB0_10
LBB0_2:
	movl	%eax, %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	xorl	%edi, %edi
	cmpq	$0, 16(%r14)
	sete	%dil
	callq	_assert
	movq	_DelayQueues@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_dq@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$15, %rax
	movq	_DELAY_QUEUES@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	decq	%rdx
	andq	%rax, %rdx
	movq	(%rcx,%rdx,8), %rsi
	movq	%rsi, 16(%r14)
	movq	%r14, (%rcx,%rdx,8)
	movl	8(%r14), %ecx
	cmpl	%eax, %ecx
	jl	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_trs_temp,8,3                   ## @trs_temp
	.comm	_DelayQueues,8,3                ## @DelayQueues
	.comm	_dq,4,2                         ## @dq
	.comm	_DELAY_QUEUES,4,2               ## @DELAY_QUEUES
	.comm	_trs_temp_locked,8,3            ## @trs_temp_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_lock_transaction            ; -- Begin function do_lock_transaction
	.p2align	2
_do_lock_transaction:                   ; @do_lock_transaction
	.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
	bl	_get_temp_transaction
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	bl	_check_transaction
	tbnz	w0, #31, LBB0_8
; %bb.2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _trs_temp@GOTPAGE
Lloh1:
	ldr	x9, [x9, _trs_temp@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	ldr	w9, [x19, #8]
	cbz	w9, LBB0_9
; %bb.4:
Lloh3:
	adrp	x8, _dq@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dq@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w8, w8, #15
	cmp	w9, w8
	b.ge	LBB0_6
LBB0_5:
	str	w8, [x19, #8]
LBB0_6:
	mov	x0, x19
	bl	_lock_transaction
	cmp	w0, #1
	cset	w0, eq
	bl	_assert
Lloh6:
	adrp	x8, _trs_temp_locked@GOTPAGE
Lloh7:
	ldr	x8, [x8, _trs_temp_locked@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	w0, #0
	bl	_flush_binlog_forced
	mov	w0, #2
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
Lloh9:
	adrp	x8, _DelayQueues@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DelayQueues@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x8]
Lloh12:
	adrp	x8, _dq@GOTPAGE
Lloh13:
	ldr	x8, [x8, _dq@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	add	w8, w8, #15
Lloh15:
	adrp	x10, _DELAY_QUEUES@GOTPAGE
Lloh16:
	ldr	x10, [x10, _DELAY_QUEUES@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	sub	w10, w10, #1
	and	w10, w10, w8
	sbfiz	x10, x10, #3, #32
	ldr	x11, [x9, x10]
	str	x11, [x19, #16]
	str	x19, [x9, x10]
	ldr	w9, [x19, #8]
	cmp	w9, w8
	b.lt	LBB0_5
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_trs_temp,8,3                   ; @trs_temp
	.comm	_DelayQueues,8,3                ; @DelayQueues
	.comm	_dq,4,2                         ; @dq
	.comm	_DELAY_QUEUES,4,2               ; @DELAY_QUEUES
	.comm	_trs_temp_locked,8,3            ; @trs_temp_locked
.subsections_via_symbols
