	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rollback_added_entries
_rollback_added_entries:                ## @rollback_added_entries
	.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
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movq	%rcx, %rbx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %r12
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	callq	_IPFW_UH_WLOCK_ASSERT
	testq	%r12, %r12
	je	LBB0_6
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r14
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	imulq	%r14, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_TEI_FLAGS_UPDATED@GOTPCREL(%rip), %r13
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15), %rdx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	callq	*16(%r14)
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.2(%rip), %rsi
	callq	_KASSERT
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	4(%r13), %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	-64(%rbp), %r8
	callq	*24(%r14)
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.3(%rip), %rsi
	callq	_KASSERT
	movl	-64(%rbp), %eax
	subl	%eax, (%r13)
	movq	_TEI_FLAGS_UPDATED@GOTPCREL(%rip), %r13
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%r14, %r15
	addq	$4, %rbx
	decq	%r12
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r15, %rcx
	leaq	-64(%rbp), %r8
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	callq	*8(%rax)
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	xorl	%edi, %edi
	cmpq	$0, -64(%rbp)
	sete	%dil
	leaq	L_.str.1(%rip), %rsi
	callq	_KASSERT
	jmp	LBB0_5
LBB0_6:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TEI_FLAGS_UPDATED,4,2          ## @TEI_FLAGS_UPDATED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rollback UPDATE fail"

L_.str.1:                               ## @.str.1
	.asciz	"rollback UPDATE fail2"

L_.str.2:                               ## @.str.2
	.asciz	"pre-rollback INSERT failed"

L_.str.3:                               ## @.str.3
	.asciz	"rollback INSERT failed"

	.no_dead_strip	_rollback_added_entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rollback_added_entries
_rollback_added_entries:                ; @rollback_added_entries
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x6
	mov	x25, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	bl	_IPFW_UH_WLOCK_ASSERT
	cbz	x19, LBB0_6
; %bb.1:
	ldr	x26, [x23, #8]
	ldr	x27, [x26]
	mul	x8, x27, x25
	str	x8, [sp]                        ; 8-byte Folded Spill
Lloh0:
	adrp	x28, _TEI_FLAGS_UPDATED@GOTPAGE
Lloh1:
	ldr	x28, [x28, _TEI_FLAGS_UPDATED@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	add	x25, x8, x20
	ldr	x8, [x26, #16]
	mov	x0, x24
	mov	x1, x21
	mov	x2, x25
	blr	x8
	cmp	w0, #0
	cset	w0, eq
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_KASSERT
	ldr	x8, [x26, #24]
	ldr	w0, [x23, #4]
	add	x4, sp, #8
	mov	x1, x22
	mov	x2, x21
	mov	x3, x25
	blr	x8
	cmp	w0, #0
	cset	w0, eq
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_KASSERT
	ldr	w8, [sp, #8]
	ldr	w9, [x23]
	sub	w8, w9, w8
	str	w8, [x23]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, x27
	add	x21, x21, #4
	subs	x19, x19, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26, #8]
	ldr	w0, [x23, #4]
	add	x4, sp, #8
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	blr	x8
	cmp	w0, #0
	cset	w0, eq
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	x8, [sp, #8]
	cmp	x8, #0
	cset	w0, eq
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_KASSERT
	b	LBB0_3
LBB0_6:
	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
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TEI_FLAGS_UPDATED,4,2          ; @TEI_FLAGS_UPDATED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rollback UPDATE fail"

l_.str.1:                               ; @.str.1
	.asciz	"rollback UPDATE fail2"

l_.str.2:                               ; @.str.2
	.asciz	"pre-rollback INSERT failed"

l_.str.3:                               ; @.str.3
	.asciz	"rollback INSERT failed"

	.no_dead_strip	_rollback_added_entries
.subsections_via_symbols
