	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function want_write
_want_write:                            ## @want_write
	.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	%rsi, %r14
	movl	%edi, %ebx
	movq	_LEV_TIMESTAMP@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	cmpl	%edi, %ecx
	jne	LBB0_3
## %bb.1:
	movq	(%r14), %rax
	movq	_t_now@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jle	LBB0_3
## %bb.2:
	movq	%rax, (%rdx)
LBB0_3:
	movq	_LEV_TX_ADD_MESSAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%ebx, %eax
	setle	%dl
	addl	$255, %eax
	cmpl	%ebx, %eax
	setge	%al
	testb	%al, %dl
	jne	LBB0_5
## %bb.4:
	movq	_LEV_TX_ADD_MESSAGE_LF@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_11
LBB0_5:
	movq	(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movzbl	8(%r14), %edx
	movq	_t_now@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movl	12(%r14), %ecx
	movl	16(%r14), %r9d
	movl	20(%r14), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movq	(%r14), %rax
LBB0_7:
	movq	_Header@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_9
## %bb.8:
	movq	_mode@GOTPCREL(%rip), %rax
	orb	$1, (%rax)
	movl	$1, %eax
	jmp	LBB0_12
LBB0_9:
	cmpq	8(%rcx), %rax
	jge	LBB0_10
## %bb.13:
	movq	_mode@GOTPCREL(%rip), %rax
	orb	$2, (%rax)
	movl	$2, %eax
	jmp	LBB0_12
LBB0_10:
	movl	(%r15), %ecx
LBB0_11:
	xorl	%eax, %eax
	cmpl	%ebx, %ecx
	sete	%al
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LEV_TIMESTAMP,4,2              ## @LEV_TIMESTAMP
	.comm	_t_now,8,3                      ## @t_now
	.comm	_LEV_TX_ADD_MESSAGE,4,2         ## @LEV_TX_ADD_MESSAGE
	.comm	_LEV_TX_ADD_MESSAGE_LF,4,2      ## @LEV_TX_ADD_MESSAGE_LF
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"warning: binlog message (type=%02x, date=%d/%d, user_id=%d, peer_id=%d) has zero legacy id, ignored\n"

	.comm	_Header,16,3                    ## @Header
	.comm	_mode,4,2                       ## @mode
	.no_dead_strip	_want_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function want_write
_want_write:                            ; @want_write
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _LEV_TIMESTAMP@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LEV_TIMESTAMP@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w0
	b.ne	LBB0_3
; %bb.1:
	ldr	x9, [x20]
Lloh2:
	adrp	x10, _t_now@GOTPAGE
Lloh3:
	ldr	x10, [x10, _t_now@GOTPAGEOFF]
	ldr	x11, [x10]
	cmp	x9, x11
	b.le	LBB0_3
; %bb.2:
	str	x9, [x10]
LBB0_3:
Lloh4:
	adrp	x9, _LEV_TX_ADD_MESSAGE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _LEV_TX_ADD_MESSAGE@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	add	w10, w9, #255
	cmp	w10, w19
	ccmp	w9, w19, #0, ge
Lloh7:
	adrp	x9, _LEV_TX_ADD_MESSAGE_LF@GOTPAGE
Lloh8:
	ldr	x9, [x9, _LEV_TX_ADD_MESSAGE_LF@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	ccmp	w9, w19, #4, gt
	b.ne	LBB0_11
; %bb.4:
	ldr	x8, [x20]
	cbnz	x8, LBB0_6
; %bb.5:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldrb	w2, [x20, #8]
Lloh13:
	adrp	x8, _t_now@GOTPAGE
Lloh14:
	ldr	x8, [x8, _t_now@GOTPAGEOFF]
Lloh15:
	ldr	x4, [x8]
	ldp	w3, w5, [x20, #12]
	ldr	w6, [x20, #20]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	x8, [x20]
LBB0_6:
Lloh18:
	adrp	x9, _Header@GOTPAGE
Lloh19:
	ldr	x9, [x9, _Header@GOTPAGEOFF]
	ldr	x10, [x9]
	cmp	x8, x10
	b.le	LBB0_8
; %bb.7:
Lloh20:
	adrp	x8, _mode@GOTPAGE
Lloh21:
	ldr	x8, [x8, _mode@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w9, w9, #0x1
	str	w9, [x8]
	mov	w0, #1
	b	LBB0_12
LBB0_8:
	ldr	x9, [x9, #8]
	cmp	x8, x9
	b.ge	LBB0_10
; %bb.9:
Lloh22:
	adrp	x8, _mode@GOTPAGE
Lloh23:
	ldr	x8, [x8, _mode@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w9, w9, #0x2
	str	w9, [x8]
	mov	w0, #2
	b	LBB0_12
LBB0_10:
	ldr	w8, [x21]
LBB0_11:
	cmp	w8, w19
	cset	w0, eq
LBB0_12:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_LEV_TIMESTAMP,4,2              ; @LEV_TIMESTAMP
	.comm	_t_now,8,3                      ; @t_now
	.comm	_LEV_TX_ADD_MESSAGE,4,2         ; @LEV_TX_ADD_MESSAGE
	.comm	_LEV_TX_ADD_MESSAGE_LF,4,2      ; @LEV_TX_ADD_MESSAGE_LF
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"warning: binlog message (type=%02x, date=%d/%d, user_id=%d, peer_id=%d) has zero legacy id, ignored\n"

	.comm	_Header,16,3                    ; @Header
	.comm	_mode,4,2                       ; @mode
	.no_dead_strip	_want_write
.subsections_via_symbols
