	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_user_photo_set_location        ## -- Begin function user_photo_set_location
	.p2align	4, 0x90
_user_photo_set_location:               ## @user_photo_set_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r14
	callq	_user_loaded
	testq	%rax, %rax
	setne	%al
	movq	_write_only@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_user_get_aid_by_pid
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_assert
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_user_get_photo_data
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_tmp_field_changes_n@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_tmp_field_changes@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	%r15d, (%rax)
	testl	%r12d, %r12d
	jne	LBB0_3
## %bb.4:
	movq	_photo_type__location@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	movq	_photo_type__original_location@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	movq	_raw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_TMP_ADD_CHANGE
	movq	(%rbx), %rdx
	movq	_tmp_field_changes_n@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	$1, %ebx
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	$1, %r8d
	callq	_user_change_data
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_write_only,4,2                 ## @write_only
	.comm	_tmp_field_changes_n,8,3        ## @tmp_field_changes_n
	.comm	_tmp_field_changes,8,3          ## @tmp_field_changes
	.comm	_photo_type__original_location,4,2 ## @photo_type__original_location
	.comm	_photo_type__location,4,2       ## @photo_type__location
	.comm	_raw,4,2                        ## @raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_user_photo_set_location        ; -- Begin function user_photo_set_location
	.p2align	2
_user_photo_set_location:               ; @user_photo_set_location
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x4
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
	bl	_user_loaded
	cmp	x0, #0
Lloh0:
	adrp	x8, _write_only@GOTPAGE
Lloh1:
	ldr	x8, [x8, _write_only@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ccmp	w8, #0, #0, ne
	cset	w0, eq
	bl	_assert
	mov	x0, x23
	mov	x1, x19
	bl	_user_get_aid_by_pid
	mov	x24, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x23
	mov	x1, x24
	bl	_user_get_photo_data
	cbz	x0, LBB0_2
; %bb.1:
	mov	x23, x0
Lloh3:
	adrp	x24, _tmp_field_changes_n@GOTPAGE
Lloh4:
	ldr	x24, [x24, _tmp_field_changes_n@GOTPAGEOFF]
	str	xzr, [x24]
Lloh5:
	adrp	x25, _tmp_field_changes@GOTPAGE
Lloh6:
	ldr	x25, [x25, _tmp_field_changes@GOTPAGEOFF]
	ldr	x8, [x25]
	str	w22, [x8]
Lloh7:
	adrp	x8, _photo_type__original_location@GOTPAGE
Lloh8:
	ldr	x8, [x8, _photo_type__original_location@GOTPAGEOFF]
Lloh9:
	adrp	x9, _photo_type__location@GOTPAGE
Lloh10:
	ldr	x9, [x9, _photo_type__location@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _raw@GOTPAGE
Lloh12:
	ldr	x8, [x8, _raw@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_TMP_ADD_CHANGE
	ldr	x2, [x25]
	ldr	x3, [x24]
	mov	w20, #1
	mov	x0, x23
	mov	x1, x19
	mov	w4, #1
	bl	_user_change_data
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_write_only,4,2                 ; @write_only
	.comm	_tmp_field_changes_n,8,3        ; @tmp_field_changes_n
	.comm	_tmp_field_changes,8,3          ; @tmp_field_changes
	.comm	_photo_type__original_location,4,2 ; @photo_type__original_location
	.comm	_photo_type__location,4,2       ; @photo_type__location
	.comm	_raw,4,2                        ; @raw
.subsections_via_symbols
