	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_metadata_gnre
_mov_metadata_gnre:                     ## @mov_metadata_gnre
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_avio_r8
	movq	%rbx, %rdi
	callq	_avio_r8
	testw	%ax, %ax
	jle	LBB0_3
## %bb.1:
	movq	_ID3v1_GENRE_MAX@GOTPCREL(%rip), %rcx
	cmpw	(%rcx), %ax
	jg	LBB0_3
## %bb.2:
	movq	_AVFMT_EVENT_FLAG_METADATA_UPDATED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%r15), %rdi
	orl	%ecx, 4(%rdi)
	movq	_ff_id3v1_genre_str@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movzwl	%ax, %eax
	decl	%eax
	movl	(%rcx,%rax,4), %edx
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_av_dict_set
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ID3v1_GENRE_MAX,2,1            ## @ID3v1_GENRE_MAX
	.comm	_AVFMT_EVENT_FLAG_METADATA_UPDATED,4,2 ## @AVFMT_EVENT_FLAG_METADATA_UPDATED
	.comm	_ff_id3v1_genre_str,8,3         ## @ff_id3v1_genre_str
	.no_dead_strip	_mov_metadata_gnre
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_metadata_gnre
_mov_metadata_gnre:                     ; @mov_metadata_gnre
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_avio_r8
	mov	x0, x21
	bl	_avio_r8
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ID3v1_GENRE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ID3v1_GENRE_MAX@GOTPAGEOFF]
Lloh2:
	ldrsh	w8, [x8]
	cmp	w0, w8
	b.gt	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _AVFMT_EVENT_FLAG_METADATA_UPDATED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVFMT_EVENT_FLAG_METADATA_UPDATED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	ldr	x8, [x20]
	ldr	w10, [x8, #4]
	orr	w9, w10, w9
Lloh6:
	adrp	x10, _ff_id3v1_genre_str@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ff_id3v1_genre_str@GOTPAGEOFF]
	str	w9, [x8, #4]
Lloh8:
	ldr	x9, [x10]
	and	w10, w0, #0xffff
	sub	w10, w10, #1
	ldr	w2, [x9, w10, uxtw #2]
	mov	x0, x8
	mov	x1, x19
	mov	w3, #0
	bl	_av_dict_set
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ID3v1_GENRE_MAX,2,1            ; @ID3v1_GENRE_MAX
	.comm	_AVFMT_EVENT_FLAG_METADATA_UPDATED,4,2 ; @AVFMT_EVENT_FLAG_METADATA_UPDATED
	.comm	_ff_id3v1_genre_str,8,3         ; @ff_id3v1_genre_str
	.no_dead_strip	_mov_metadata_gnre
.subsections_via_symbols
