	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_do_get_album                ## -- Begin function tl_do_get_album
	.p2align	4, 0x90
_tl_do_get_album:                       ## @tl_do_get_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %r14
	movl	12(%r14), %edi
	callq	_check_user_id
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	8(%r14), %edi
	callq	_check_album_id
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_assert
	movq	_index_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_write_only@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	orl	(%rcx), %eax
	sete	%dil
	callq	_assert
	movl	12(%r14), %edi
	callq	_conv_uid_get
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movl	(%rax), %esi
	movq	_NOAIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_load_user_metafile
	movq	%rbx, %rdi
	callq	_user_loaded
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	4(%r14), %edx
	movl	8(%r14), %esi
	leaq	-20(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_user_get_album
	testq	%rax, %rax
	js	LBB0_4
## %bb.8:
	movq	_TL_MAYBE_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tl_store_int
	movq	_ALBUM_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	-20(%rbp), %rdi
	callq	_event_to_rpc
	jmp	LBB0_9
LBB0_4:
	movq	_TL_MAYBE_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tl_store_int
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_6:
	movl	$-2, %eax
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_index_mode,4,2                 ## @index_mode
	.comm	_write_only,4,2                 ## @write_only
	.comm	_TL_MAYBE_FALSE,4,2             ## @TL_MAYBE_FALSE
	.comm	_NOAIO,4,2                      ## @NOAIO
	.comm	_TL_MAYBE_TRUE,4,2              ## @TL_MAYBE_TRUE
	.comm	_ALBUM_TYPE,4,2                 ## @ALBUM_TYPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_do_get_album                ; -- Begin function tl_do_get_album
	.p2align	2
_tl_do_get_album:                       ; @tl_do_get_album
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x20, [x0]
	ldr	w0, [x20, #12]
	bl	_check_user_id
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20, #8]
	bl	_check_album_id
	cmp	x0, #0
	cset	w0, ne
LBB0_2:
	bl	_assert
Lloh0:
	adrp	x8, _index_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _index_mode@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _write_only@GOTPAGE
Lloh4:
	ldr	x9, [x9, _write_only@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w8, w9
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	ldr	w0, [x20, #12]
	bl	_conv_uid_get
	cbz	x0, LBB0_6
; %bb.3:
	mov	x19, x0
	ldr	w1, [x0]
Lloh6:
	adrp	x8, _NOAIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NOAIO@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_load_user_metafile
	mov	x0, x19
	bl	_user_loaded
	cbz	w0, LBB0_8
; %bb.4:
	ldp	w2, w1, [x20, #4]
	add	x3, sp, #12
	mov	x0, x19
	bl	_user_get_album
	tbnz	x0, #63, LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _TL_MAYBE_TRUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TL_MAYBE_TRUE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_tl_store_int
Lloh12:
	adrp	x8, _ALBUM_TYPE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ALBUM_TYPE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x20]
	add	x0, sp, #12
	bl	_event_to_rpc
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _TL_MAYBE_FALSE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TL_MAYBE_FALSE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_tl_store_int
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	w0, #-2
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_index_mode,4,2                 ; @index_mode
	.comm	_write_only,4,2                 ; @write_only
	.comm	_TL_MAYBE_FALSE,4,2             ; @TL_MAYBE_FALSE
	.comm	_NOAIO,4,2                      ; @NOAIO
	.comm	_TL_MAYBE_TRUE,4,2              ; @TL_MAYBE_TRUE
	.comm	_ALBUM_TYPE,4,2                 ; @ALBUM_TYPE
.subsections_via_symbols
