	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_relax_log_crc32                ## -- Begin function relax_log_crc32
	.p2align	4, 0x90
_relax_log_crc32:                       ## @relax_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
	movl	%edi, %ebx
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movq	_disable_crc32@GOTPCREL(%rip), %rax
	testb	$2, (%rax)
	jne	LBB0_7
## %bb.1:
	addl	$3, %ebx
	andl	$-4, %ebx
	movq	_log_crc32_pos@GOTPCREL(%rip), %r13
	movq	_log_pos@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_R@GOTPCREL(%rip), %r12
	subq	(%r12), %rax
	addq	8(%r12), %rax
	xorl	%edi, %edi
	cmpq	%rax, (%r13)
	setge	%dil
	callq	_assert
	movslq	%ebx, %rbx
	movq	(%r12), %rax
	movslq	16(%r12), %rcx
	subq	%rcx, %rax
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	setge	%dil
	callq	_assert
	xorl	%eax, %eax
	callq	_log_cur_pos
	addl	%eax, %ebx
	movslq	%ebx, %r14
	movq	(%r13), %rdi
	movq	_tot_crc32_pos@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, %rsi
	subq	%rdi, %rsi
	jle	LBB0_6
## %bb.2:
	cmpq	%r14, %rax
	jg	LBB0_6
## %bb.3:
	addq	(%r12), %rdi
	movq	_log_pos@GOTPCREL(%rip), %rax
	subq	(%rax), %rdi
	movq	%r13, %rbx
	movq	_log_crc32_complement@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_crc32_partial
	movl	%eax, (%r13)
	movq	(%r15), %rdx
	movq	%rdx, (%rbx)
	movq	_tot_crc32@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	notl	%eax
	cmpl	%eax, %ecx
	je	LBB0_5
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %r8d
	callq	_fprintf
	movl	(%r15), %ecx
	movl	(%r13), %eax
	notl	%eax
LBB0_5:
	xorl	%edi, %edi
	cmpl	%eax, %ecx
	sete	%dil
	callq	_assert
	movq	_log_crc32_pos@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
LBB0_6:
	movq	(%r12), %rax
	movq	_log_pos@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	addq	%rdi, %rax
	movq	%r14, %rsi
	subq	%rdi, %rsi
	movq	_log_crc32_complement@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%rax, %rdi
	callq	_crc32_partial
	movl	%eax, (%rbx)
	movq	%r14, (%r13)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_disable_crc32,4,2              ## @disable_crc32
	.comm	_log_crc32_pos,8,3              ## @log_crc32_pos
	.comm	_log_pos,8,3                    ## @log_pos
	.comm	_R,24,3                         ## @R
	.comm	_tot_crc32_pos,8,3              ## @tot_crc32_pos
	.comm	_log_crc32_complement,4,2       ## @log_crc32_complement
	.comm	_tot_crc32,4,2                  ## @tot_crc32
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fatal: crc32 mismatch in binlog at position %lld: header expects %08x, actual %08x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_relax_log_crc32                ; -- Begin function relax_log_crc32
	.p2align	2
_relax_log_crc32:                       ; @relax_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
	mov	x19, x0
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_assert
Lloh0:
	adrp	x8, _disable_crc32@GOTPAGE
Lloh1:
	ldr	x8, [x8, _disable_crc32@GOTPAGEOFF]
	ldrb	w8, [x8]
	tbnz	w8, #1, LBB0_6
; %bb.1:
	add	w8, w19, #3
	and	w22, w8, #0xfffffffc
Lloh2:
	adrp	x19, _log_crc32_pos@GOTPAGE
Lloh3:
	ldr	x19, [x19, _log_crc32_pos@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh4:
	adrp	x20, _log_pos@GOTPAGE
Lloh5:
	ldr	x20, [x20, _log_pos@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh6:
	adrp	x21, _R@GOTPAGE
Lloh7:
	ldr	x21, [x21, _R@GOTPAGEOFF]
	ldp	x10, x11, [x21]
	sub	x9, x9, x10
	add	x9, x9, x11
	cmp	x8, x9
	cset	w0, ge
	bl	_assert
	ldr	x8, [x21]
	ldrsw	x9, [x21, #16]
	sub	x8, x8, x9
	cmp	x8, w22, sxtw
	cset	w0, ge
	bl	_assert
	bl	_log_cur_pos
	add	w8, w0, w22
	sxtw	x22, w8
Lloh8:
	adrp	x24, _tot_crc32_pos@GOTPAGE
Lloh9:
	ldr	x24, [x24, _tot_crc32_pos@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x24]
	subs	x1, x9, x8
	ccmp	x9, x22, #0, gt
Lloh10:
	adrp	x23, _log_crc32_complement@GOTPAGE
Lloh11:
	ldr	x23, [x23, _log_crc32_complement@GOTPAGEOFF]
	b.gt	LBB0_5
; %bb.2:
	ldr	x9, [x21]
	ldr	x10, [x20]
	add	x8, x9, x8
	sub	x0, x8, x10
	ldr	w2, [x23]
	bl	_crc32_partial
	str	w0, [x23]
	ldr	x2, [x24]
	str	x2, [x19]
Lloh12:
	adrp	x24, _tot_crc32@GOTPAGE
Lloh13:
	ldr	x24, [x24, _tot_crc32@GOTPAGEOFF]
	ldr	w3, [x24]
	mvn	w4, w0
	cmp	w3, w4
	b.eq	LBB0_4
; %bb.3:
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	w3, [x24]
	ldr	w8, [x23]
	mvn	w4, w8
LBB0_4:
	cmp	w3, w4
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19]
LBB0_5:
	ldr	x9, [x21]
	ldr	x10, [x20]
	sub	x9, x9, x10
	add	x0, x9, x8
	sub	x1, x22, x8
	ldr	w2, [x23]
	bl	_crc32_partial
	str	w0, [x23]
	str	x22, [x19]
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_disable_crc32,4,2              ; @disable_crc32
	.comm	_log_crc32_pos,8,3              ; @log_crc32_pos
	.comm	_log_pos,8,3                    ; @log_pos
	.comm	_R,24,3                         ; @R
	.comm	_tot_crc32_pos,8,3              ; @tot_crc32_pos
	.comm	_log_crc32_complement,4,2       ; @log_crc32_complement
	.comm	_tot_crc32,4,2                  ; @tot_crc32
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fatal: crc32 mismatch in binlog at position %lld: header expects %08x, actual %08x\n"

.subsections_via_symbols
