	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bpobj_count_refd
_bpobj_count_refd:                      ## @bpobj_count_refd
	.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	%rdi, %r14
	movq	(%rdi), %rdi
	callq	_mos_obj_refd
	cmpq	$0, 24(%r14)
	je	LBB0_8
## %bb.1:
	movq	16(%r14), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.2:
	callq	_mos_obj_refd
	movq	16(%r14), %rax
	cmpl	$0, 8(%rax)
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r15
	leaq	-80(%rbp), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_bpobj_count_refd
	movq	%r12, %rdi
	callq	_bpobj_close
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%r13d
	movq	16(%r14), %rax
	addl	$4, %ebx
	cmpl	8(%rax), %r13d
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %edi
	movq	(%rax), %rsi
	movl	%ebx, %edx
	movl	$4, %ecx
	movq	%r15, %r8
	xorl	%r9d, %r9d
	callq	_dmu_read
	movl	%eax, %edi
	callq	_VERIFY0
	movl	8(%r14), %esi
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	callq	_bpobj_open
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %edx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_printf
	jmp	LBB0_7
LBB0_8:
	addq	$40, %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	"ERROR %u while trying to open subobj id %llu\n"

	.no_dead_strip	_bpobj_count_refd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bpobj_count_refd
_bpobj_count_refd:                      ; @bpobj_count_refd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	x0, [x0]
	bl	_mos_obj_refd
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_8
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	cbz	x0, LBB0_8
; %bb.2:
	bl	_mos_obj_refd
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #8]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.3:
	mov	w20, #0
	mov	w22, #0
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #8
	bl	_bpobj_count_refd
	add	x0, sp, #8
	bl	_bpobj_close
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w22, #1
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #8]
	add	w20, w20, #4
	cmp	w22, w9
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	ldr	x1, [x8]
	sub	x4, x29, #36
	mov	x2, x20
	mov	w3, #4
	mov	w5, #0
	bl	_dmu_read
	bl	_VERIFY0
	ldr	w1, [x19, #8]
	ldur	w2, [x29, #-36]
	add	x0, sp, #8
	bl	_bpobj_open
	cbz	w0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x0
	ldur	w2, [x29, #-36]
	mov	x0, x21
	bl	_printf
	b	LBB0_5
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR %u while trying to open subobj id %llu\n"

	.no_dead_strip	_bpobj_count_refd
.subsections_via_symbols
