	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_create_photo                ## -- Begin function do_create_photo
	.p2align	4, 0x90
_do_create_photo:                       ## @do_create_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testl	%edx, %edx
	jle	LBB0_2
## %bb.1:
	movq	_MAX_PHOTOS@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jl	LBB0_2
## %bb.3:
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_LEV_PHOTO_CREATE_PHOTO@GOTPCREL(%rip), %rax
	movq	_mode@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$16, %ecx
	movslq	%ecx, %rcx
	movl	%edx, %edi
	addq	(%rax), %rdi
	addq	%rcx, %rdi
	movl	$8, %esi
	movl	%ebx, %edx
	callq	_alloc_log_event
	movl	%ebx, (%rax)
	movl	%r14d, 4(%rax)
	movq	_create_photo@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_MY_LOG_EVENT_HANDLER           ## TAILCALL
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PHOTOS,4,2                 ## @MAX_PHOTOS
	.comm	_LEV_PHOTO_CREATE_PHOTO,8,3     ## @LEV_PHOTO_CREATE_PHOTO
	.comm	_mode,4,2                       ## @mode
	.comm	_create_photo,4,2               ## @create_photo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_create_photo                ; -- Begin function do_create_photo
	.p2align	2
_do_create_photo:                       ; @do_create_photo
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _MAX_PHOTOS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_PHOTOS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.lt	LBB0_3
; %bb.2:
	mov	x19, x1
	mov	x20, x0
Lloh3:
	adrp	x8, _LEV_PHOTO_CREATE_PHOTO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LEV_PHOTO_CREATE_PHOTO@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _mode@GOTPAGE
Lloh7:
	ldr	x9, [x9, _mode@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w9, w9, #16
	add	x8, x8, w2, uxtw
	add	x0, x8, w9, sxtw
	mov	w1, #8
	mov	x2, x20
	bl	_alloc_log_event
	stp	w20, w19, [x0]
Lloh9:
	adrp	x8, _create_photo@GOTPAGE
Lloh10:
	ldr	x8, [x8, _create_photo@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_MY_LOG_EVENT_HANDLER
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PHOTOS,4,2                 ; @MAX_PHOTOS
	.comm	_LEV_PHOTO_CREATE_PHOTO,8,3     ; @LEV_PHOTO_CREATE_PHOTO
	.comm	_mode,4,2                       ; @mode
	.comm	_create_photo,4,2               ; @create_photo
.subsections_via_symbols
