	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_result_make_header          ## -- Begin function tl_result_make_header
	.p2align	4, 0x90
_tl_result_make_header:                 ## @tl_result_make_header
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rsi), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	callq	_tl_result_new_flags
	movl	%eax, %r15d
	movq	_RPC_REQ_RESULT_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	%r15d, 4(%r14)
	movq	_TL_QUERY_HEADER_FLAG_RETURN_BINLOG_POS@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_3
## %bb.4:
	xorl	%eax, %eax
	callq	_log_last_pos
	movq	%rax, 8(%r14)
	leaq	16(%r14), %rbx
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_3:
	leaq	8(%r14), %rbx
LBB0_5:
	movq	_TL_QUERY_HEADER_FLAG_RETURN_BINLOG_TIME@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_7
## %bb.6:
	movl	$1000000, %edi                  ## imm = 0xF4240
	callq	_get_precise_time
	movq	%rax, (%rbx)
	addq	$8, %rbx
LBB0_7:
	subl	%r14d, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RPC_REQ_RESULT_FLAGS,4,2       ## @RPC_REQ_RESULT_FLAGS
	.comm	_TL_QUERY_HEADER_FLAG_RETURN_BINLOG_POS,4,2 ## @TL_QUERY_HEADER_FLAG_RETURN_BINLOG_POS
	.comm	_TL_QUERY_HEADER_FLAG_RETURN_BINLOG_TIME,4,2 ## @TL_QUERY_HEADER_FLAG_RETURN_BINLOG_TIME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_result_make_header          ; -- Begin function tl_result_make_header
	.p2align	2
_tl_result_make_header:                 ; @tl_result_make_header
	.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, x0
	ldr	w0, [x1]
	cbz	w0, LBB0_7
; %bb.1:
	bl	_tl_result_new_flags
	mov	x20, x0
Lloh0:
	adrp	x8, _RPC_REQ_RESULT_FLAGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RPC_REQ_RESULT_FLAGS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w8, w0, [x19]
Lloh3:
	adrp	x8, _TL_QUERY_HEADER_FLAG_RETURN_BINLOG_POS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TL_QUERY_HEADER_FLAG_RETURN_BINLOG_POS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	bl	_log_last_pos
	str	x0, [x19, #8]
	add	x21, x19, #16
	b	LBB0_4
LBB0_3:
	add	x21, x19, #8
LBB0_4:
Lloh6:
	adrp	x8, _TL_QUERY_HEADER_FLAG_RETURN_BINLOG_TIME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TL_QUERY_HEADER_FLAG_RETURN_BINLOG_TIME@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	mov	w0, #16960
	movk	w0, #15, lsl #16
	bl	_get_precise_time
	str	x0, [x21], #8
LBB0_6:
	sub	w0, w21, w19
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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RPC_REQ_RESULT_FLAGS,4,2       ; @RPC_REQ_RESULT_FLAGS
	.comm	_TL_QUERY_HEADER_FLAG_RETURN_BINLOG_POS,4,2 ; @TL_QUERY_HEADER_FLAG_RETURN_BINLOG_POS
	.comm	_TL_QUERY_HEADER_FLAG_RETURN_BINLOG_TIME,4,2 ; @TL_QUERY_HEADER_FLAG_RETURN_BINLOG_TIME
.subsections_via_symbols
