	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_result
_set_result:                            ## @set_result
	.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	%rsi, %r14
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	(%r14), %rdi
	xorl	%esi, %esi
	callq	_get_host_by_random_tag
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	sete	%dil
	callq	_assert
	movq	8(%rbx), %r12
	movq	8(%r14), %r15
	cmpq	%r15, %r12
	jge	LBB0_7
## %bb.3:
	movq	%r15, 8(%rbx)
	cmpq	$0, 32(%rbx)
	movq	_now@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jne	LBB0_5
## %bb.4:
	movq	%rax, 32(%rbx)
LBB0_5:
	movq	%rax, 16(%rbx)
	movq	%rax, 24(%rbx)
	movl	16(%r14), %edx
	movl	20(%r14), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_transaction_set_result         ## TAILCALL
LBB0_7:
	xorl	%eax, %eax
	callq	_log_cur_pos
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_kprintf
	movl	$1, %edi
	callq	_exit
LBB0_6:
	movq	(%r14), %rbx
	xorl	%eax, %eax
	callq	_log_cur_pos
	movslq	%eax, %rdx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_kprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set_result: get_host_by_random_tag (0x%llx) returns NULL. (log_cur_pos: %lld)\n"

L_.str.1:                               ## @.str.1
	.asciz	"set_result: H->binlog_pos >= E->binlog_pos, H->binlog_pos = 0x%llx, E->binlog_pos = 0x%llx. (log_cur_pos: %lld)\n"

	.comm	_now,8,3                        ## @now
	.no_dead_strip	_set_result
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_result
_set_result:                            ; @set_result
	.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, x1
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x19]
	mov	w1, #0
	bl	_get_host_by_random_tag
	mov	x20, x0
	cbz	x0, LBB0_7
LBB0_2:
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x20, #8]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.3:
	str	x9, [x20, #8]
	ldr	x9, [x20, #32]
Lloh0:
	adrp	x8, _now@GOTPAGE
Lloh1:
	ldr	x8, [x8, _now@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbnz	x9, LBB0_5
; %bb.4:
	str	x8, [x20, #32]
LBB0_5:
	stp	x8, x8, [x20, #16]
	ldp	w2, w1, [x19, #16]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_transaction_set_result
LBB0_6:
	mov	x19, x9
	mov	x20, x8
	bl	_log_cur_pos
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	b	LBB0_8
LBB0_7:
	ldr	x19, [x19]
	bl	_log_cur_pos
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x2, w0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
LBB0_8:
	bl	_kprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set_result: get_host_by_random_tag (0x%llx) returns NULL. (log_cur_pos: %lld)\n"

l_.str.1:                               ; @.str.1
	.asciz	"set_result: H->binlog_pos >= E->binlog_pos, H->binlog_pos = 0x%llx, E->binlog_pos = 0x%llx. (log_cur_pos: %lld)\n"

	.comm	_now,8,3                        ; @now
	.no_dead_strip	_set_result
.subsections_via_symbols
