	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_photo                      ## -- Begin function get_photo
	.p2align	4, 0x90
_get_photo:                             ## @get_photo
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	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
	movq	%rax, %rbx
	movq	_types@GOTPCREL(%rip), %rax
	movq	_PHOTO_TYPE@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	movq	%r14, %rsi
	callq	_get_fields
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_8
## %bb.2:
	movl	%r12d, %edi
	callq	_check_photo_id
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movl	(%rbx), %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:
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_user_get_photo
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:
	movq	(%r15), %rsi
	movq	_return_fields@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rdi
	movl	%r13d, %ecx
	callq	_event_to_array
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_debug_error@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpq	$0, (%rax)
	sete	%r14b
	jmp	LBB0_8
LBB0_4:
	movl	$-2, %r14d
	jmp	LBB0_8
LBB0_6:
	xorl	%r14d, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_index_mode,4,2                 ## @index_mode
	.comm	_write_only,4,2                 ## @write_only
	.comm	_types,8,3                      ## @types
	.comm	_PHOTO_TYPE,8,3                 ## @PHOTO_TYPE
	.comm	_NOAIO,4,2                      ## @NOAIO
	.comm	_return_fields,4,2              ## @return_fields
	.comm	_debug_error,8,3                ## @debug_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_photo                      ; -- Begin function get_photo
	.p2align	2
_get_photo:                             ; @get_photo
	.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, x4
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, 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, x23
	bl	_conv_uid_get
	mov	x23, x0
Lloh6:
	adrp	x8, _types@GOTPAGE
Lloh7:
	ldr	x8, [x8, _types@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x24, _PHOTO_TYPE@GOTPAGE
Lloh10:
	ldr	x24, [x24, _PHOTO_TYPE@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x8, x9, lsl #2
	mov	x1, x22
	bl	_get_fields
	mov	x22, x0
	mov	w0, #0
	cbz	x23, LBB0_8
; %bb.1:
	tbnz	w22, #31, LBB0_8
; %bb.2:
	mov	x0, x21
	bl	_check_photo_id
	cbz	w0, LBB0_8
; %bb.3:
	ldr	w1, [x23]
Lloh11:
	adrp	x8, _NOAIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NOAIO@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_load_user_metafile
	mov	x0, x23
	bl	_user_loaded
	cbz	w0, LBB0_6
; %bb.4:
	add	x3, sp, #12
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	bl	_user_get_photo
	tbnz	x0, #63, LBB0_7
; %bb.5:
	ldr	x1, [x24]
Lloh14:
	adrp	x8, _return_fields@GOTPAGE
Lloh15:
	ldr	x8, [x8, _return_fields@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	x3, x22
	bl	_event_to_array
	str	x0, [x19]
Lloh17:
	adrp	x8, _debug_error@GOTPAGE
Lloh18:
	ldr	x8, [x8, _debug_error@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	b	LBB0_8
LBB0_6:
	mov	w0, #-2
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_index_mode,4,2                 ; @index_mode
	.comm	_write_only,4,2                 ; @write_only
	.comm	_types,8,3                      ; @types
	.comm	_PHOTO_TYPE,8,3                 ; @PHOTO_TYPE
	.comm	_NOAIO,4,2                      ; @NOAIO
	.comm	_return_fields,4,2              ; @return_fields
	.comm	_debug_error,8,3                ; @debug_error
.subsections_via_symbols
