	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function id3v1_create_tag
_id3v1_create_tag:                      ## @id3v1_create_tag
	.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, %r12
	movq	%rdi, %r14
	movq	_ID3v1_TAG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_memset
	movw	$16724, (%r12)                  ## imm = 0x4154
	movb	$71, 2(%r12)
	leaq	3(%r12), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	$31, %ecx
	callq	_id3v1_set_string
	movq	%rax, %r15
	leaq	33(%r12), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	$31, %ecx
	callq	_id3v1_set_string
	movq	%rax, %rbx
	addl	%r15d, %ebx
	leaq	63(%r12), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	$31, %ecx
	callq	_id3v1_set_string
	movq	%rax, %r15
	addl	%ebx, %r15d
	leaq	93(%r12), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	$5, %ecx
	callq	_id3v1_set_string
	movq	%rax, %rbx
	addl	%r15d, %ebx
	leaq	97(%r12), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	$31, %ecx
	callq	_id3v1_set_string
	movq	%rax, %r15
	addl	%ebx, %r15d
	movl	(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_av_dict_get
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movb	$0, 125(%r12)
	movl	(%rax), %edi
	callq	_atoi
	movb	%al, 126(%r12)
	incl	%r15d
LBB0_2:
	movb	$-1, 127(%r12)
	movl	(%r14), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_av_dict_get
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	_ID3v1_GENRE_MAX@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	js	LBB0_9
## %bb.4:
	movq	%rax, %r13
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_ff_id3v1_genre_str@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_av_strcasecmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	1(%rbx), %rax
	movslq	(%r14), %rcx
	cmpq	%rcx, %rbx
	movq	%rax, %rbx
	jl	LBB0_5
## %bb.8:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_6:
	movb	%bl, 127(%r12)
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	incl	%r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ID3v1_TAG_SIZE,4,2             ## @ID3v1_TAG_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TIT2"

L_.str.1:                               ## @.str.1
	.asciz	"TPE1"

L_.str.2:                               ## @.str.2
	.asciz	"TALB"

L_.str.3:                               ## @.str.3
	.asciz	"TDRC"

L_.str.4:                               ## @.str.4
	.asciz	"comment"

L_.str.5:                               ## @.str.5
	.asciz	"TRCK"

L_.str.6:                               ## @.str.6
	.asciz	"TCON"

	.comm	_ID3v1_GENRE_MAX,4,2            ## @ID3v1_GENRE_MAX
	.comm	_ff_id3v1_genre_str,8,3         ## @ff_id3v1_genre_str
	.no_dead_strip	_id3v1_create_tag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function id3v1_create_tag
_id3v1_create_tag:                      ; @id3v1_create_tag
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ID3v1_TAG_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ID3v1_TAG_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x1
	mov	w1, #0
	bl	_memset
	mov	w8, #16724
	strh	w8, [x19]
	mov	w8, #71
	strb	w8, [x19, #2]
	add	x2, x19, #3
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w3, #31
	bl	_id3v1_set_string
	mov	x21, x0
	add	x2, x19, #33
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w3, #31
	bl	_id3v1_set_string
	add	w21, w0, w21
	add	x2, x19, #63
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	w3, #31
	bl	_id3v1_set_string
	add	w21, w21, w0
	add	x2, x19, #93
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	w3, #5
	bl	_id3v1_set_string
	add	w21, w21, w0
	add	x2, x19, #97
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	w3, #31
	bl	_id3v1_set_string
	add	w21, w21, w0
	ldr	w0, [x20]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, #0
	mov	w3, #0
	bl	_av_dict_get
	cbz	x0, LBB0_2
; %bb.1:
	strb	wzr, [x19, #125]
	ldr	w0, [x0]
	bl	_atoi
	strb	w0, [x19, #126]
	add	w21, w21, #1
LBB0_2:
	mov	w8, #255
	strb	w8, [x19, #127]
	ldr	w0, [x20]
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, #0
	mov	w3, #0
	bl	_av_dict_get
	cbz	x0, LBB0_8
; %bb.3:
Lloh17:
	adrp	x22, _ID3v1_GENRE_MAX@GOTPAGE
Lloh18:
	ldr	x22, [x22, _ID3v1_GENRE_MAX@GOTPAGEOFF]
	ldr	w8, [x22]
	tbnz	w8, #31, LBB0_8
; %bb.4:
	mov	x20, x0
	mov	x23, #0
Lloh19:
	adrp	x24, _ff_id3v1_genre_str@GOTPAGE
Lloh20:
	ldr	x24, [x24, _ff_id3v1_genre_str@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	ldr	x8, [x24]
	ldr	w1, [x8, x23, lsl #2]
	bl	_av_strcasecmp
	cbz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x23, #1
	ldrsw	x9, [x22]
	cmp	x23, x9
	mov	x23, x8
	b.lt	LBB0_5
	b	LBB0_8
LBB0_7:
	strb	w23, [x19, #127]
	add	w21, w21, #1
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ID3v1_TAG_SIZE,4,2             ; @ID3v1_TAG_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TIT2"

l_.str.1:                               ; @.str.1
	.asciz	"TPE1"

l_.str.2:                               ; @.str.2
	.asciz	"TALB"

l_.str.3:                               ; @.str.3
	.asciz	"TDRC"

l_.str.4:                               ; @.str.4
	.asciz	"comment"

l_.str.5:                               ; @.str.5
	.asciz	"TRCK"

l_.str.6:                               ; @.str.6
	.asciz	"TCON"

	.comm	_ID3v1_GENRE_MAX,4,2            ; @ID3v1_GENRE_MAX
	.comm	_ff_id3v1_genre_str,8,3         ; @ff_id3v1_genre_str
	.no_dead_strip	_id3v1_create_tag
.subsections_via_symbols
