	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_user_change_album              ## -- Begin function user_change_album
	.p2align	4, 0x90
_user_change_album:                     ## @user_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movl	%esi, %ebx
	movq	%rdi, %r12
	movl	(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %edx
	callq	_dbg
	movq	_write_only@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	cmpq	$0, (%rcx)
	jne	LBB0_5
## %bb.1:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_user_loaded
	movl	%eax, %edi
	callq	_assert
	movq	%r12, %rdi
	callq	_user_get_album_data
	xorl	%edi, %edi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_4
## %bb.2:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	xorl	%r12d, %r12d
	movq	_album_type_id@GOTPCREL(%rip), %r15
	movq	_album_type_owner_id@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%r12,8), %rax
	cmpq	(%r15), %rax
	setne	%cl
	cmpq	(%r14), %rax
	setne	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	incq	%r12
	cmpq	%r12, %rbx
	jne	LBB0_3
LBB0_4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	callq	_user_change_data
	notl	%eax
	shrl	$31, %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"user_change_album %d: album_id = %d, field_changes_n = %d\n"

	.comm	_write_only,8,3                 ## @write_only
	.comm	_album_type_id,8,3              ## @album_type_id
	.comm	_album_type_owner_id,8,3        ## @album_type_owner_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_user_change_album              ; -- Begin function user_change_album
	.p2align	2
_user_change_album:                     ; @user_change_album
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w1, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dbg
Lloh2:
	adrp	x8, _write_only@GOTPAGE
Lloh3:
	ldr	x8, [x8, _write_only@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_6
LBB0_2:
	mov	x0, x22
	bl	_user_loaded
	bl	_assert
	mov	x0, x22
	bl	_user_get_album_data
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	cmp	w19, #1
	b.lt	LBB0_5
; %bb.3:
Lloh5:
	adrp	x23, _album_type_id@GOTPAGE
Lloh6:
	ldr	x23, [x23, _album_type_id@GOTPAGEOFF]
Lloh7:
	adrp	x24, _album_type_owner_id@GOTPAGE
Lloh8:
	ldr	x24, [x24, _album_type_owner_id@GOTPAGEOFF]
	mov	x25, x20
	mov	w26, w19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25], #8
	ldr	x9, [x23]
	cmp	x8, x9
	ldr	x9, [x24]
	ccmp	x8, x9, #4, ne
	cset	w0, ne
	bl	_assert
	subs	x26, x26, #1
	b.ne	LBB0_4
LBB0_5:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	w4, #0
	bl	_user_change_data
	mvn	w8, w0
	lsr	w0, w8, #31
LBB0_6:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"user_change_album %d: album_id = %d, field_changes_n = %d\n"

	.comm	_write_only,8,3                 ; @write_only
	.comm	_album_type_id,8,3              ; @album_type_id
	.comm	_album_type_owner_id,8,3        ; @album_type_owner_id
.subsections_via_symbols
