	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_user_restore_photo_location    ## -- Begin function user_restore_photo_location
	.p2align	4, 0x90
_user_restore_photo_location:           ## @user_restore_photo_location
	.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	_write_only@GOTPCREL(%rip), %rax
	movl	$1, %ebx
	cmpq	$0, (%rax)
	jne	LBB0_4
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_user_loaded
	movl	%eax, %edi
	callq	_assert
	leaq	-28(%rbp), %r8
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_user_photo_get_location
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	-28(%rbp), %r8d
	cmpl	$2, %r8d
	jl	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_user_photo_set_location
	leaq	L_.str(%rip), %rcx
	movl	$1, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_user_photo_set_location
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_write_only,8,3                 ## @write_only
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_user_restore_photo_location    ; -- Begin function user_restore_photo_location
	.p2align	2
_user_restore_photo_location:           ; @user_restore_photo_location
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _write_only@GOTPAGE
Lloh1:
	ldr	x8, [x8, _write_only@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w21, #1
	b	LBB0_5
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	bl	_user_loaded
	bl	_assert
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	mov	w3, #1
	bl	_user_photo_get_location
	mov	w21, #0
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w4, [sp, #12]
	cmp	w4, #2
	b.lt	LBB0_5
; %bb.4:
	mov	x3, x0
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_user_photo_set_location
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	w21, #1
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	mov	w4, #1
	bl	_user_photo_set_location
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_write_only,8,3                 ; @write_only
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

.subsections_via_symbols
