	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_is_packed_transaction_needed   ## -- Begin function is_packed_transaction_needed
	.p2align	4, 0x90
_is_packed_transaction_needed:          ## @is_packed_transaction_needed
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_REF_STORE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_packed_downcast
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -48(%rbp)
	movq	%rax, %rdi
	callq	_is_lock_file_locked
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_BUG
LBB0_2:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_REF_HAVE_OLD@GOTPCREL(%rip), %r14
	movq	_REF_HAVE_NEW@GOTPCREL(%rip), %r12
	movl	$1, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	%rax, %rbx
	jae	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdi
	movl	(%rdi), %ecx
	testl	%ecx, (%r14)
	jne	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%ecx, (%r12)
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %rdi
	callq	_is_null_oid
	testl	%eax, %eax
	je	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rax
	jmp	LBB0_4
LBB0_9:
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	xorl	%ebx, %ebx
	leaq	-68(%rbp), %r13
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	cmpq	%rax, %rbx
	jae	LBB0_16
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	(%r12), %edx
	testl	%edx, (%rcx)
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	4(%rcx), %esi
	movq	%r14, %rdi
	leaq	-64(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r13, %r8
	callq	_refs_read_raw_ref
	testl	%eax, %eax
	je	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%r15), %rax
	jmp	LBB0_11
LBB0_16:
	xorl	%r13d, %r13d
LBB0_17:
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
LBB0_18:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	$1, %r13d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_REF_STORE_READ,4,2             ## @REF_STORE_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"is_packed_transaction_needed"

	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
L_.str.1:                               ## @.str.1
	.asciz	"is_packed_transaction_needed() called while unlocked"

	.comm	_REF_HAVE_OLD,4,2               ## @REF_HAVE_OLD
	.comm	_REF_HAVE_NEW,4,2               ## @REF_HAVE_NEW
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_is_packed_transaction_needed   ; -- Begin function is_packed_transaction_needed
	.p2align	2
_is_packed_transaction_needed:          ; @is_packed_transaction_needed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _REF_STORE_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REF_STORE_READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_packed_downcast
Lloh5:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	bl	_is_lock_file_locked
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	cbnz	x8, LBB0_3
	b	LBB0_17
LBB0_2:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BUG
	ldr	x8, [x19]
	cbz	x8, LBB0_17
LBB0_3:
	mov	x22, #0
Lloh10:
	adrp	x23, _REF_HAVE_OLD@GOTPAGE
Lloh11:
	ldr	x23, [x23, _REF_HAVE_OLD@GOTPAGEOFF]
Lloh12:
	adrp	x21, _REF_HAVE_NEW@GOTPAGE
Lloh13:
	ldr	x21, [x21, _REF_HAVE_NEW@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	cmp	x22, x8
	b.hs	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x9, [x9, x22, lsl #3]
	ldr	w10, [x9]
	ldr	w11, [x23]
	tst	w11, w10
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w11, [x21]
	tst	w11, w10
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x9, #8
	bl	_is_null_oid
	cbz	w0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	b	LBB0_4
LBB0_9:
	mov	w19, #1
	b	LBB0_19
LBB0_10:
	cbz	x8, LBB0_17
; %bb.11:
	mov	x22, #0
Lloh14:
	adrp	x23, _errno@GOTPAGE
Lloh15:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
Lloh16:
	adrp	x24, _ENOENT@GOTPAGE
Lloh17:
	ldr	x24, [x24, _ENOENT@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x22, x22, #1
	cmp	x22, x8
	b.hs	LBB0_17
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x9, [x9, x22, lsl #3]
	ldr	w10, [x9]
	ldr	w11, [x21]
	tst	w11, w10
	b.eq	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w1, [x9, #4]
	mov	x2, sp
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x0, x20
	bl	_refs_read_raw_ref
	cbz	w0, LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x19]
	b	LBB0_12
LBB0_17:
	mov	w19, #0
LBB0_18:
	add	x0, sp, #8
	bl	_strbuf_release
LBB0_19:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_20:
	mov	w19, #1
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_REF_STORE_READ,4,2             ; @REF_STORE_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"is_packed_transaction_needed"

	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
l_.str.1:                               ; @.str.1
	.asciz	"is_packed_transaction_needed() called while unlocked"

	.comm	_REF_HAVE_OLD,4,2               ; @REF_HAVE_OLD
	.comm	_REF_HAVE_NEW,4,2               ; @REF_HAVE_NEW
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
.subsections_via_symbols
