	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_change_album                ## -- Begin function do_change_album
	.p2align	4, 0x90
_do_change_album:                       ## @do_change_album
	.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
	xorl	%r12d, %r12d
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.1:
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	%rdx, %rdi
	callq	_strlen
	movl	%eax, %r13d
	movl	%r14d, %edi
	callq	_check_album_id
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.3:
	movq	_MAX_EVENT_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jge	LBB0_7
## %bb.4:
	movq	_ALBUM_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_php_get_fields
	testq	%rax, %rax
	js	LBB0_7
## %bb.5:
	movq	_field_changes_n@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.8:
	movq	_LEV_PHOTO_CHANGE_ALBUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_do_change_data                 ## TAILCALL
LBB0_6:
	movl	$1, %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_EVENT_SIZE,4,2             ## @MAX_EVENT_SIZE
	.comm	_ALBUM_TYPE,4,2                 ## @ALBUM_TYPE
	.comm	_field_changes_n,8,3            ## @field_changes_n
	.comm	_LEV_PHOTO_CHANGE_ALBUM,4,2     ## @LEV_PHOTO_CHANGE_ALBUM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_change_album                ; -- Begin function do_change_album
	.p2align	2
_do_change_album:                       ; @do_change_album
	.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
	cbz	x2, LBB0_7
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x2
	bl	_strlen
	mov	x22, x0
	mov	x0, x19
	bl	_check_album_id
	mov	x8, x0
	mov	w0, #0
	cbz	w8, LBB0_8
; %bb.2:
	cbz	w22, LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _MAX_EVENT_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_EVENT_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ge	LBB0_8
; %bb.4:
Lloh3:
	adrp	x8, _ALBUM_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ALBUM_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_php_get_fields
	tbnz	x0, #63, LBB0_7
; %bb.5:
Lloh6:
	adrp	x8, _field_changes_n@GOTPAGE
Lloh7:
	ldr	x8, [x8, _field_changes_n@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.6:
Lloh9:
	adrp	x8, _LEV_PHOTO_CHANGE_ALBUM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LEV_PHOTO_CHANGE_ALBUM@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	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
	b	_do_change_data
LBB0_7:
	mov	w0, #0
LBB0_8:
	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_9:
	mov	w0, #1
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_EVENT_SIZE,4,2             ; @MAX_EVENT_SIZE
	.comm	_ALBUM_TYPE,4,2                 ; @ALBUM_TYPE
	.comm	_field_changes_n,8,3            ; @field_changes_n
	.comm	_LEV_PHOTO_CHANGE_ALBUM,4,2     ; @LEV_PHOTO_CHANGE_ALBUM
.subsections_via_symbols
