	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_compare_and_update_pbbufs      ## -- Begin function compare_and_update_pbbufs
	.p2align	4, 0x90
_compare_and_update_pbbufs:             ## @compare_and_update_pbbufs
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	testl	%edi, %edi
	jle	LBB0_8
## %bb.1:
	movq	%rsi, %rbx
	movl	16(%rbp), %r14d
	movslq	%r9d, %rdx
	movslq	%ecx, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%edi, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	-24(%rax,%rdx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	leaq	-24(%rdx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_fatal
	xorl	%edi, %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_fatal
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addl	%r13d, %eax
	movl	%eax, 16(%rbx)
	movl	16(%rbp), %eax
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	movl	%eax, %r13d
	movl	%eax, (%rbx)
	movq	$-2, %rdi
	callq	_ztest_random
	incq	%rax
	movq	%rax, 8(%rbx)
	movq	16(%rbx), %rax
	movq	%rax, 16(%r15)
	movups	(%rbx), %xmm0
	movups	%xmm0, (%r15)
	movq	16(%rbx), %rax
	movq	%rax, 16(%r14)
	movups	(%rbx), %xmm0
	movups	%xmm0, (%r14)
	movl	%r13d, %r14d
	movq	-112(%rbp), %r13                ## 8-byte Reload
	incq	%r13
	addq	-104(%rbp), %r12                ## 8-byte Folded Reload
	addq	$24, %rbx
	cmpq	%r13, -88(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	cmpq	%r15, %r12
	setb	%dil
	callq	_ASSERT
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	%r12, %rax
	xorl	%edi, %edi
	cmpq	%r15, %rax
	setb	%dil
	callq	_ASSERT
	movl	(%rbx), %edx
	cmpl	%r14d, %edx
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_fatal
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12), %r15
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12), %r14
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx), %edx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addl	%r13d, %eax
	cmpl	%edx, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	leaq	L_.str.1(%rip), %rsi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_fatal
	jmp	LBB0_7
LBB0_8:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"future leak: got %llx, open txg is %llx"

L_.str.1:                               ## @.str.1
	.asciz	"wrong index: got %llx, wanted %llx+%llx"

L_.str.2:                               ## @.str.2
	.asciz	"pack/bigH mismatch in %p/%p"

L_.str.3:                               ## @.str.3
	.asciz	"pack/bigT mismatch in %p/%p"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_compare_and_update_pbbufs      ; -- Begin function compare_and_update_pbbufs
	.p2align	2
_compare_and_update_pbbufs:             ; @compare_and_update_pbbufs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
                                        ; kill: def $w5 killed $w5 def $x5
	str	x4, [sp, #32]                   ; 8-byte Folded Spill
                                        ; kill: def $w3 killed $w3 def $x3
	str	x2, [sp, #56]                   ; 8-byte Folded Spill
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x19, x6
	mov	x22, x1
	mov	x27, #0
	mov	x28, #0
	mov	w9, w0
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	mov	w23, w8
	sxtw	x20, w5
	sxtw	x24, w3
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x8, x8, x20
	sub	x8, x8, #24
	stp	x8, x9, [sp, #40]               ; 16-byte Folded Spill
	sub	x21, x20, #24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x26, x8, x27
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x25, x8, x27
	stp	x22, x26, [sp]
	mov	w0, #0
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fatal
	stp	x22, x25, [sp]
	mov	w0, #0
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fatal
	add	w8, w23, w28
	str	w8, [x22, #16]
	str	w19, [x22]
	mov	x0, #-2
	bl	_ztest_random
	add	x8, x0, #1
	str	x8, [x22, #8]
	ldr	q0, [x22]
	ldr	x8, [x22, #16]
	str	x8, [x26, #16]
	str	q0, [x26]
	ldr	x8, [x22, #16]
	ldr	q0, [x22], #24
	str	q0, [x25]
	str	x8, [x25, #16]
	add	x28, x28, #1
	add	x27, x27, x20
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	cmp	x8, x28
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x27, x24
	cset	w0, lo
	bl	_ASSERT
	add	x8, x21, x27
	cmp	x8, x24
	cset	w0, lo
	bl	_ASSERT
	ldr	w8, [x22]
	cmp	w8, w19
	b.le	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	stp	x8, x19, [sp]
	mov	w0, #0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fatal
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22, #16]
	add	w9, w23, w28
	cmp	w9, w8
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	stp	x9, x28, [sp, #8]
	str	x8, [sp]
	mov	w0, #0
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fatal
	b	LBB0_2
LBB0_8:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"future leak: got %llx, open txg is %llx"

l_.str.1:                               ; @.str.1
	.asciz	"wrong index: got %llx, wanted %llx+%llx"

l_.str.2:                               ; @.str.2
	.asciz	"pack/bigH mismatch in %p/%p"

l_.str.3:                               ; @.str.3
	.asciz	"pack/bigT mismatch in %p/%p"

.subsections_via_symbols
