	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_relax_write_log_crc32          ## -- Begin function relax_write_log_crc32
	.p2align	4, 0x90
_relax_write_log_crc32:                 ## @relax_write_log_crc32
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_binlog_disabled@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	$0, (%rcx)
	jne	LBB0_9
## %bb.1:
	movq	_disable_crc32@GOTPCREL(%rip), %rcx
	testb	$4, (%rcx)
	jne	LBB0_9
## %bb.2:
	movq	_W@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	movq	8(%r14), %rax
	movq	_log_pos@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r13
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	addq	%rdx, %r13
	subq	%rax, %r13
	jmp	LBB0_5
LBB0_4:
	subq	%rax, %r13
	addq	16(%r14), %r13
LBB0_5:
	movq	_log_crc32_pos@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	%r13, %rax
	jl	LBB0_7
## %bb.6:
	movq	24(%r14), %rcx
	cmpq	16(%r14), %rcx
	jge	LBB0_8
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	(%r12), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	movl	(%r12), %edi
	movq	8(%r14), %rdx
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
	movl	(%r12), %edi
	movq	16(%r14), %rdx
	leaq	L_.str.3(%rip), %rsi
	callq	_fprintf
	movl	(%r12), %edi
	movq	24(%r14), %rdx
	leaq	L_.str.4(%rip), %rsi
	callq	_fprintf
	movl	(%r12), %edi
	movq	(%r15), %rdx
	leaq	L_.str.5(%rip), %rsi
	callq	_fprintf
	movl	(%r12), %edi
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdx
	callq	_fprintf
	movq	(%r15), %rax
LBB0_8:
	xorl	%edi, %edi
	cmpq	%r13, %rax
	setge	%dil
	callq	_assert
	movq	24(%r14), %rbx
	subq	16(%r14), %rbx
	addq	%r13, %rbx
	xorl	%edi, %edi
	cmpq	%rbx, (%r15)
	setle	%dil
	callq	_assert
	movq	16(%r14), %rdi
	movq	(%r15), %rax
	subq	%r13, %rdi
	addq	%rax, %rdi
	movq	%rbx, %rsi
	subq	%rax, %rsi
	movq	_log_crc32_complement@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_crc32_partial
	movl	%eax, (%r14)
	movq	%rbx, (%r15)
	notl	%eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_binlog_disabled,8,3            ## @binlog_disabled
	.comm	_disable_crc32,4,2              ## @disable_crc32
	.comm	_W,32,3                         ## @W
	.comm	_log_pos,8,3                    ## @log_pos
	.comm	_log_crc32_pos,8,3              ## @log_crc32_pos
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"W.log_endw = %p\n"

L_.str.1:                               ## @.str.1
	.asciz	"log_pos = %lld\n"

L_.str.2:                               ## @.str.2
	.asciz	"W.log_rptr = %p\n"

L_.str.3:                               ## @.str.3
	.asciz	"W.log_start = %p\n"

L_.str.4:                               ## @.str.4
	.asciz	"W.log_wptr = %p\n"

L_.str.5:                               ## @.str.5
	.asciz	"log_crc32_pos = %lld\n"

L_.str.6:                               ## @.str.6
	.asciz	"log_start_pos = %lld\n"

	.comm	_log_crc32_complement,4,2       ## @log_crc32_complement
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_relax_write_log_crc32          ; -- Begin function relax_write_log_crc32
	.p2align	2
_relax_write_log_crc32:                 ; @relax_write_log_crc32
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _binlog_disabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _binlog_disabled@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _disable_crc32@GOTPAGE
Lloh4:
	ldr	x8, [x8, _disable_crc32@GOTPAGEOFF]
	ldrb	w8, [x8]
	tbnz	w8, #2, LBB0_4
; %bb.2:
Lloh5:
	adrp	x20, _W@GOTPAGE
Lloh6:
	ldr	x20, [x20, _W@GOTPAGEOFF]
Lloh7:
	adrp	x22, _log_pos@GOTPAGE
Lloh8:
	ldr	x22, [x22, _log_pos@GOTPAGEOFF]
	ldr	x8, [x22]
	ldp	x2, x9, [x20]
	cbz	x2, LBB0_6
; %bb.3:
	add	x8, x8, x2
	sub	x19, x8, x9
	b	LBB0_7
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x10, [x20, #16]
	sub	x8, x8, x9
	add	x19, x8, x10
LBB0_7:
Lloh9:
	adrp	x21, _log_crc32_pos@GOTPAGE
Lloh10:
	ldr	x21, [x21, _log_crc32_pos@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, x19
	b.lt	LBB0_9
; %bb.8:
	ldp	x10, x9, [x20, #16]
	cmp	x9, x10
	b.ge	LBB0_10
LBB0_9:
Lloh11:
	adrp	x23, _stderr@GOTPAGE
Lloh12:
	ldr	x23, [x23, _stderr@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	w0, [x23]
	ldr	x2, [x22]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	ldr	w0, [x23]
	ldr	x2, [x20, #8]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	ldr	w0, [x23]
	ldr	x2, [x20, #16]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	ldr	w0, [x23]
	ldr	x2, [x20, #24]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	ldr	w0, [x23]
	ldr	x2, [x21]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
	ldr	w0, [x23]
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x19
	bl	_fprintf
	ldr	x8, [x21]
LBB0_10:
	cmp	x8, x19
	cset	w0, ge
	bl	_assert
	ldp	x9, x8, [x20, #16]
	sub	x8, x8, x9
	add	x22, x8, x19
	ldr	x8, [x21]
	cmp	x8, x22
	cset	w0, le
	bl	_assert
	ldr	x8, [x20, #16]
	ldr	x9, [x21]
	sub	x8, x8, x19
	add	x0, x8, x9
	sub	x1, x22, x9
Lloh27:
	adrp	x19, _log_crc32_complement@GOTPAGE
Lloh28:
	ldr	x19, [x19, _log_crc32_complement@GOTPAGEOFF]
	ldr	w2, [x19]
	bl	_crc32_partial
	str	w0, [x19]
	str	x22, [x21]
	mvn	w0, w0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_binlog_disabled,8,3            ; @binlog_disabled
	.comm	_disable_crc32,4,2              ; @disable_crc32
	.comm	_W,32,3                         ; @W
	.comm	_log_pos,8,3                    ; @log_pos
	.comm	_log_crc32_pos,8,3              ; @log_crc32_pos
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"W.log_endw = %p\n"

l_.str.1:                               ; @.str.1
	.asciz	"log_pos = %lld\n"

l_.str.2:                               ; @.str.2
	.asciz	"W.log_rptr = %p\n"

l_.str.3:                               ; @.str.3
	.asciz	"W.log_start = %p\n"

l_.str.4:                               ; @.str.4
	.asciz	"W.log_wptr = %p\n"

l_.str.5:                               ; @.str.5
	.asciz	"log_crc32_pos = %lld\n"

l_.str.6:                               ; @.str.6
	.asciz	"log_start_pos = %lld\n"

	.comm	_log_crc32_complement,4,2       ; @log_crc32_complement
.subsections_via_symbols
