	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_id3v2_tags
_put_id3v2_tags:                        ## @put_id3v2_tags
	.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
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	$0, -48(%rbp)
	movq	8(%rdi), %r15
	movq	8(%rsi), %r14
	cmpl	$0, 4(%rdi)
	jne	LBB0_2
## %bb.1:
	xorl	%r12d, %r12d
	testq	%r14, %r14
	je	LBB0_9
LBB0_2:
	movl	$73, %edi
	movl	$68, %esi
	movl	$51, %edx
	movl	$32, %ecx
	callq	_MKTAG
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_avio_wl32
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	%r15, %rdi
	callq	_avio_tell
	movl	%eax, %r12d
	movl	(%r13), %edx
	movq	_ID3v2_DEFAULT_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_ff_id3v2_start
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ff_id3v2_write_metadata
	testq	%r14, %r14
	je	LBB0_7
## %bb.3:
	leaq	-48(%rbp), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	8(%r14), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ff_id3v2_write_apic
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %r14
	testq	%r14, %r14
	jne	LBB0_4
LBB0_7:
	movl	(%rbx), %edx
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	_ff_id3v2_finish
	movq	%r15, %rdi
	callq	_avio_tell
	movl	%eax, %r13d
	movl	%eax, %ebx
	subl	%r12d, %ebx
	addl	$-4, %r12d
	movq	_SEEK_SET@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_avio_seek
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_avio_wb32
	movl	(%r14), %edx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_avio_seek
	testb	$1, %bl
	movl	$0, %r12d
	je	LBB0_9
## %bb.8:
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avio_w8
	jmp	LBB0_9
LBB0_5:
	movl	%eax, %r12d
LBB0_9:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ID3v2_DEFAULT_MAGIC,4,2        ## @ID3v2_DEFAULT_MAGIC
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_put_id3v2_tags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_id3v2_tags
_put_id3v2_tags:                        ; @put_id3v2_tags
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x0
	mov	w0, #0
	str	wzr, [sp, #8]
	ldr	x23, [x1, #8]
	ldr	w8, [x20, #4]
	cmp	w8, #0
	ccmp	x23, #0, #0, eq
	b.eq	LBB0_7
; %bb.1:
	mov	x22, x1
	ldr	x19, [x20, #8]
	mov	w0, #73
	mov	w1, #68
	mov	w2, #51
	mov	w3, #32
	bl	_MKTAG
	mov	x1, x0
	mov	x0, x19
	bl	_avio_wl32
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
	mov	x0, x19
	bl	_avio_tell
	mov	x21, x0
	ldr	w2, [x22]
Lloh0:
	adrp	x8, _ID3v2_DEFAULT_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ID3v2_DEFAULT_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x0, sp, #8
	mov	x1, x19
	bl	_ff_id3v2_start
	add	x1, sp, #8
	mov	x0, x20
	bl	_ff_id3v2_write_metadata
	cbz	x23, LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, x23, #8
	add	x1, sp, #8
	mov	x0, x20
	bl	_ff_id3v2_write_apic
	tbnz	w0, #31, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x23, [x23]
	cbnz	x23, LBB0_2
LBB0_4:
	ldr	w2, [x20]
	add	x0, sp, #8
	mov	x1, x19
	bl	_ff_id3v2_finish
	mov	x0, x19
	bl	_avio_tell
	mov	x20, x0
	sub	w22, w0, w21
	sub	w1, w21, #4
Lloh3:
	adrp	x21, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_avio_seek
	mov	x0, x19
	mov	x1, x22
	bl	_avio_wb32
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_avio_seek
	tbz	w22, #0, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	bl	_avio_w8
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ID3v2_DEFAULT_MAGIC,4,2        ; @ID3v2_DEFAULT_MAGIC
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_put_id3v2_tags
.subsections_via_symbols
