	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tag_replay_logevent            ## -- Begin function tag_replay_logevent
	.p2align	4, 0x90
_tag_replay_logevent:                   ## @tag_replay_logevent
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	(%rdi), %ebx
	cmpl	$128, %ebx
	je	LBB0_8
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_10
## %bb.2:
	movq	_start@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_log_cur_pos
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
LBB0_4:
	callq	_assert
	movl	$-2, %eax
	cmpl	$24, %r14d
	jl	LBB0_12
## %bb.5:
	movl	4(%r15), %ecx
	cmpl	$4096, %ecx                     ## imm = 0x1000
	ja	LBB0_12
## %bb.6:
	addl	$27, %ecx
	andl	$-4, %ecx
	cmpl	%r14d, %ecx
	ja	LBB0_12
## %bb.7:
	movl	$1, (%rbx)
	movl	%ecx, %eax
	jmp	LBB0_12
LBB0_8:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_default_replay_logevent
	movq	_act@GOTPCREL(%rip), %rax
	cmpb	$105, (%rax)
	je	LBB0_14
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_kprintf
	jmp	LBB0_11
LBB0_10:
	xorl	%eax, %eax
	callq	_log_cur_pos
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_kprintf
LBB0_11:
	movl	$-1, %eax
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_15
## %bb.13:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
LBB0_14:
	movq	_binlog_tag@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_convert_md5_to_hex
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_printf
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_start,4,2                      ## @start
	.comm	_act,1,0                        ## @act
	.comm	_binlog_tag,4,2                 ## @binlog_tag
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"ERROR: binlog has already a tag.\n"

L_.str.2:                               ## @.str.2
	.asciz	"unexpected log event type %08x at position %lld\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tag_replay_logevent            ; -- Begin function tag_replay_logevent
	.p2align	2
_tag_replay_logevent:                   ; @tag_replay_logevent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	w21, [x0]
	cmp	w21, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w21, #129
	b.ne	LBB0_6
; %bb.2:
Lloh3:
	adrp	x21, _start@GOTPAGE
Lloh4:
	ldr	x21, [x21, _start@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_8
; %bb.3:
	mov	w0, #0
	b	LBB0_9
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_default_replay_logevent
Lloh5:
	adrp	x8, _act@GOTPAGE
Lloh6:
	ldr	x8, [x8, _act@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, #105
	b.eq	LBB0_17
; %bb.5:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
	bl	_log_cur_pos
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_kprintf
	mov	w0, #-1
	b	LBB0_13
LBB0_8:
	bl	_log_cur_pos
	cmp	w0, #0
	cset	w0, eq
LBB0_9:
	bl	_assert
	cmp	w19, #24
	b.lt	LBB0_12
; %bb.10:
	ldr	w8, [x20, #4]
	cmp	w8, #1, lsl #12                 ; =4096
	b.hi	LBB0_12
; %bb.11:
	add	w8, w8, #27
	and	w0, w8, #0xfffffffc
	cmp	w0, w19
	b.ls	LBB0_15
LBB0_12:
	mov	w0, #-2
LBB0_13:
	ldur	x8, [x29, #-40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_13
LBB0_16:
	bl	___stack_chk_fail
LBB0_17:
Lloh14:
	adrp	x8, _binlog_tag@GOTPAGE
Lloh15:
	ldr	x8, [x8, _binlog_tag@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x0, sp, #23
	bl	_convert_md5_to_hex
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #23
	bl	_printf
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_start,4,2                      ; @start
	.comm	_act,1,0                        ; @act
	.comm	_binlog_tag,4,2                 ; @binlog_tag
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"ERROR: binlog has already a tag.\n"

l_.str.2:                               ; @.str.2
	.asciz	"unexpected log event type %08x at position %lld\n"

.subsections_via_symbols
