	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_user_delete_photo              ## -- Begin function user_delete_photo
	.p2align	4, 0x90
_user_delete_photo:                     ## @user_delete_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_user_loaded
	movl	%eax, %edi
	callq	_assert
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_user_get_aid_by_pid
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_user_get_photo_data
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_data_get_hidden_state
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	movq	%r12, %rdi
	callq	_data_hide_expected_size
	movq	_MAX_HIDE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_5
## %bb.6:
	movq	_HIDE_ITERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_data_hide
	notl	%eax
	shrl	$31, %eax
	movl	%eax, %edi
	callq	_assert
	jmp	LBB0_7
LBB0_5:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_data_del
	notl	%eax
	shrl	$31, %eax
	movl	%eax, %edi
	callq	_assert
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_lookup_set
LBB0_7:
	movl	$1, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_write_only,8,3                 ## @write_only
	.comm	_MAX_HIDE,8,3                   ## @MAX_HIDE
	.comm	_HIDE_ITERS,4,2                 ## @HIDE_ITERS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_user_delete_photo              ; -- Begin function user_delete_photo
	.p2align	2
_user_delete_photo:                     ; @user_delete_photo
	.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
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, #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_3:
	mov	x19, x1
	mov	x20, x0
	bl	_user_loaded
	bl	_assert
	mov	x0, x20
	mov	x1, x19
	bl	_user_get_aid_by_pid
	cbz	w0, LBB0_2
; %bb.4:
	mov	x1, x0
	mov	x0, x20
	bl	_user_get_photo_data
	cbz	x0, LBB0_2
; %bb.5:
	mov	x21, x0
	mov	x1, x19
	bl	_data_get_hidden_state
	cbz	x0, LBB0_7
; %bb.6:
	mov	w0, #0
	b	LBB0_2
LBB0_7:
	mov	x0, x21
	bl	_data_hide_expected_size
Lloh3:
	adrp	x8, _MAX_HIDE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_HIDE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_9
; %bb.8:
Lloh6:
	adrp	x8, _HIDE_ITERS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HIDE_ITERS@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x19
	bl	_data_hide
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_assert
	b	LBB0_1
LBB0_9:
	mov	x0, x21
	mov	x1, x19
	bl	_data_del
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_assert
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_lookup_set
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_write_only,8,3                 ; @write_only
	.comm	_MAX_HIDE,8,3                   ; @MAX_HIDE
	.comm	_HIDE_ITERS,4,2                 ; @HIDE_ITERS
.subsections_via_symbols
