	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_photos_count               ## -- Begin function get_photos_count
	.p2align	4, 0x90
_get_photos_count:                      ## @get_photos_count
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_index_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_write_only@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	orl	(%rcx), %eax
	sete	%dil
	callq	_assert
	movl	%ebx, %edi
	callq	_conv_uid_get
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movl	(%rax), %esi
	movq	_NOAIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_load_user_metafile
	movq	%rbx, %rdi
	callq	_user_loaded
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_PHOTO_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_predicate_init
	movq	%rbx, %rdi
	movl	%r14d, %esi
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_user_get_photos_count_pred     ## TAILCALL
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_2
LBB0_4:
	movl	$-2, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_user_get_photos_count          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_index_mode,4,2                 ## @index_mode
	.comm	_write_only,4,2                 ## @write_only
	.comm	_NOAIO,4,2                      ## @NOAIO
	.comm	_PHOTO_TYPE,4,2                 ## @PHOTO_TYPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_photos_count               ; -- Begin function get_photos_count
	.p2align	2
_get_photos_count:                      ; @get_photos_count
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _index_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _index_mode@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _write_only@GOTPAGE
Lloh4:
	ldr	x9, [x9, _write_only@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w8, w9
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x21
	bl	_conv_uid_get
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	w1, [x0]
Lloh6:
	adrp	x8, _NOAIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NOAIO@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_load_user_metafile
	mov	x0, x21
	bl	_user_loaded
	cbz	w0, LBB0_5
; %bb.2:
Lloh9:
	adrp	x8, _PHOTO_TYPE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PHOTO_TYPE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_predicate_init
	cbz	x0, LBB0_7
; %bb.3:
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_user_get_photos_count_pred
LBB0_4:
	mov	w0, #-1
	b	LBB0_6
LBB0_5:
	mov	w0, #-2
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x21
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_user_get_photos_count
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_index_mode,4,2                 ; @index_mode
	.comm	_write_only,4,2                 ; @write_only
	.comm	_NOAIO,4,2                      ; @NOAIO
	.comm	_PHOTO_TYPE,4,2                 ; @PHOTO_TYPE
.subsections_via_symbols
