	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_user_del_photo_location        ## -- Begin function user_del_photo_location
	.p2align	4, 0x90
_user_del_photo_location:               ## @user_del_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	%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
	movq	_write_only@GOTPCREL(%rip), %rax
	movl	$1, %ebx
	cmpq	$0, (%rax)
	je	LBB0_1
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_user_loaded
	movl	%eax, %edi
	callq	_assert
	movl	$1, %ebx
	leaq	-44(%rbp), %r8
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	$1, %ecx
	callq	_user_photo_get_location
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r13
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movsbq	(%r13), %rcx
	testq	%rcx, %rcx
	jns	LBB0_6
## %bb.5:
	movq	_location_buf@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rbx
	movq	_mode@GOTPCREL(%rip), %rdx
	movsbq	(%rdx), %rdx
	addq	%rdx, %rcx
	movl	$17, %edx
	subq	%rcx, %rdx
	addq	%rdx, %r13
	xorl	%edi, %edi
	subl	%edx, %eax
	movl	%eax, -44(%rbp)
	setg	%dil
	callq	_assert
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_memcpy
	movq	_location_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	-44(%rbp), %r8d
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_user_photo_set_location
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_write_only,8,3                 ## @write_only
	.comm	_location_buf,8,3               ## @location_buf
	.comm	_mode,1,0                       ## @mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_user_del_photo_location        ; -- Begin function user_del_photo_location
	.p2align	2
_user_del_photo_location:               ; @user_del_photo_location
	.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
Lloh0:
	adrp	x8, _write_only@GOTPAGE
Lloh1:
	ldr	x8, [x8, _write_only@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
LBB0_1:
	mov	w0, #1
LBB0_2:
	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
LBB0_3:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_user_loaded
	bl	_assert
	add	x4, sp, #12
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w3, #1
	bl	_user_photo_get_location
	cbz	x0, LBB0_2
; %bb.4:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_1
; %bb.5:
	ldrsb	x9, [x0]
	tbz	x9, #63, LBB0_1
; %bb.6:
Lloh3:
	adrp	x24, _location_buf@GOTPAGE
Lloh4:
	ldr	x24, [x24, _location_buf@GOTPAGEOFF]
	ldr	x22, [x24]
Lloh5:
	adrp	x10, _mode@GOTPAGE
Lloh6:
	ldr	x10, [x10, _mode@GOTPAGEOFF]
Lloh7:
	ldrsb	x10, [x10]
	mov	w11, #17
	add	x9, x9, x10
	sub	x9, x11, x9
	sub	w8, w8, w9
	str	w8, [sp, #12]
	add	x23, x0, x9
	cmp	w8, #0
	cset	w0, gt
	bl	_assert
	ldr	w2, [sp, #12]
	mov	x0, x22
	mov	x1, x23
	bl	_memcpy
	ldr	x3, [x24]
	ldr	w4, [sp, #12]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_user_photo_set_location
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_write_only,8,3                 ; @write_only
	.comm	_location_buf,8,3               ; @location_buf
	.comm	_mode,1,0                       ; @mode
.subsections_via_symbols
