	.file	"extr_musicbrainz.c_musicbrainz_fill_release.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"media"
.LC1:
	.string	"tracks"
.LC2:
	.string	"title"
.LC3:
	.string	"id"
.LC4:
	.string	"release-group"
.LC5:
	.string	"first-release-date"
.LC6:
	.string	"artist-credit"
.LC7:
	.string	"release-events"
.LC8:
	.string	"date"
	.text
	.p2align 4
	.type	musicbrainz_fill_release, @function
musicbrainz_fill_release:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	lea	rsi, .LC0[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	json_getbyname@PLT
	test	rax, rax
	je	.L4
	mov	rcx, QWORD PTR json_array[rip]
	cmp	QWORD PTR [rax], rcx
	je	.L33
.L4:
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_restore_state
	cmp	QWORD PTR 8[rax], 0
	je	.L4
	mov	rax, QWORD PTR 16[rax]
	lea	rsi, .LC1[rip]
	mov	rdi, QWORD PTR [rax]
	call	json_getbyname@PLT
	mov	r12, rax
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR json_array[rip]
	cmp	QWORD PTR [r12], rax
	jne	.L4
	mov	rdi, QWORD PTR 8[r12]
	test	rdi, rdi
	je	.L4
	mov	esi, 4
	call	calloc@PLT
	mov	QWORD PTR 48[rbx], rax
	test	rax, rax
	je	.L4
	cmp	QWORD PTR 8[r12], 0
	je	.L5
	xor	r13d, r13d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L34:
	mov	rax, QWORD PTR 48[rbx]
.L7:
	mov	rdx, QWORD PTR [rbx]
	lea	rsi, [rax+rdx*4]
	mov	rax, QWORD PTR 16[r12]
	mov	rdi, QWORD PTR [rax+r13*8]
	call	musicbrainz_fill_track@PLT
	test	rax, rax
	je	.L6
	add	QWORD PTR [rbx], 1
.L6:
	add	r13, 1
	cmp	QWORD PTR 8[r12], r13
	ja	.L34
.L5:
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	json_dupstring@PLT
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	mov	QWORD PTR 40[rbx], rax
	call	json_dupstring@PLT
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	mov	QWORD PTR 32[rbx], rax
	call	json_getbyname@PLT
	mov	r12, rax
	test	rax, rax
	je	.L8
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	json_dupstring@PLT
	lea	rsi, .LC3[rip]
	mov	rdi, r12
	mov	QWORD PTR 8[rbx], rax
	call	json_dupstring@PLT
	mov	rdi, r12
	lea	rsi, .LC6[rip]
	mov	QWORD PTR 24[rbx], rax
	call	json_getbyname@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L31
	call	musicbrainz_fill_artists@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	eax, 1
	jmp	.L1
.L8:
	mov	rdi, rbp
	lea	rsi, .LC6[rip]
	call	json_getbyname@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L10
	call	musicbrainz_fill_artists@PLT
	mov	QWORD PTR 16[rbx], rax
.L10:
	lea	rsi, .LC7[rip]
	mov	rdi, rbp
	call	json_getbyname@PLT
	test	rax, rax
	je	.L31
	mov	rdx, QWORD PTR json_array[rip]
	cmp	QWORD PTR [rax], rdx
	jne	.L31
	cmp	QWORD PTR 8[rax], 0
	je	.L31
	mov	rax, QWORD PTR 16[rax]
	lea	rsi, .LC8[rip]
	mov	rdi, QWORD PTR [rax]
	call	json_dupstring@PLT
	mov	QWORD PTR 8[rbx], rax
	.p2align 4,,10
	.p2align 3
.L31:
	mov	eax, 1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	musicbrainz_fill_release, .-musicbrainz_fill_release
	.comm	json_array,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_musicbrainz.c_musicbrainz_fill_release.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"media\000"
	.align	2
.LC1:
	.ascii	"tracks\000"
	.align	2
.LC2:
	.ascii	"title\000"
	.align	2
.LC3:
	.ascii	"id\000"
	.align	2
.LC4:
	.ascii	"release-group\000"
	.align	2
.LC5:
	.ascii	"first-release-date\000"
	.align	2
.LC6:
	.ascii	"artist-credit\000"
	.align	2
.LC7:
	.ascii	"release-events\000"
	.align	2
.LC8:
	.ascii	"date\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	musicbrainz_fill_release, %function
musicbrainz_fill_release:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r1, .L40
	mov	r5, r0
	bl	json_getbyname
	cmp	r0, #0
	beq	.L4
	ldr	r6, .L40+4
	ldr	r2, [r0]
	ldr	r3, [r6]
	cmp	r2, r3
	bne	.L4
	ldr	r3, [r0, #4]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [r0, #8]
	ldr	r1, .L40+8
	ldr	r0, [r3]
	bl	json_getbyname
	subs	r7, r0, #0
	beq	.L4
	ldr	r2, [r7]
	ldr	r3, [r6]
	cmp	r2, r3
	bne	.L4
	ldr	r0, [r7, #4]
	cmp	r0, #0
	bne	.L38
.L4:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L38:
	mov	r1, #4
	bl	calloc
	cmp	r0, #0
	str	r0, [r4, #24]
	beq	.L4
	mov	r8, #0
	b	.L7
.L39:
	ldr	r0, [r4, #24]
.L7:
	ldr	r3, [r7, #8]
	ldr	r1, [r4]
	add	r1, r0, r1, lsl #2
	ldr	r0, [r3, r8, lsl #2]
	bl	musicbrainz_fill_track
	cmp	r0, #0
	ldrne	r3, [r4]
	add	r8, r8, #1
	addne	r3, r3, #1
	strne	r3, [r4]
	ldr	r3, [r7, #4]
	cmp	r3, r8
	bhi	.L39
	ldr	r1, .L40+12
	mov	r0, r5
	bl	json_dupstring
	ldr	r1, .L40+16
	str	r0, [r4, #20]
	mov	r0, r5
	bl	json_dupstring
	ldr	r1, .L40+20
	str	r0, [r4, #16]
	mov	r0, r5
	bl	json_getbyname
	subs	r7, r0, #0
	beq	.L8
	ldr	r1, .L40+24
	bl	json_dupstring
	ldr	r1, .L40+16
	str	r0, [r4, #4]
	mov	r0, r7
	bl	json_dupstring
	ldr	r1, .L40+28
	str	r0, [r4, #12]
	mov	r0, r7
	bl	json_getbyname
	cmp	r0, #0
	beq	.L11
	bl	musicbrainz_fill_artists
	mov	r3, r0
	mov	r0, #1
	str	r3, [r4, #8]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r0, r5
	ldr	r1, .L40+28
	bl	json_getbyname
	cmp	r0, #0
	beq	.L10
	bl	musicbrainz_fill_artists
	str	r0, [r4, #8]
.L10:
	mov	r0, r5
	ldr	r1, .L40+32
	bl	json_getbyname
	cmp	r0, #0
	beq	.L11
	ldr	r3, [r6]
	ldr	r2, [r0]
	cmp	r2, r3
	bne	.L11
	ldr	r3, [r0, #4]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [r0, #8]
	ldr	r1, .L40+36
	ldr	r0, [r3]
	bl	json_dupstring
	mov	r3, r0
	mov	r0, #1
	str	r3, [r4, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L41:
	.align	2
.L40:
	.word	.LC0
	.word	json_array
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	musicbrainz_fill_release, .-musicbrainz_fill_release
	.comm	json_array,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
