	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function modplug_load_metadata
_modplug_load_metadata:                 ## @modplug_load_metadata
	.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	%rdi, %r12
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ModPlug_GetName
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_ModPlug_GetMessage
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_ModPlug_NumInstruments
	movq	%rbx, %rdi
	callq	_ModPlug_NumSamples
	movq	%rbx, %rdi
	callq	_ModPlug_NumPatterns
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movq	%r12, %rbx
	callq	_ModPlug_NumChannels
	movl	%eax, %r12d
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	cmpb	$0, (%r14)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_av_dict_set
LBB0_3:
	testq	%r13, %r13
	je	LBB0_6
## %bb.4:
	cmpb	$0, (%r13)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_av_dict_set
LBB0_6:
	cmpl	$2, %r15d
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %r8
	movq	%r8, %rdx
	cmovaeq	%rax, %rdx
	cmpl	$2, %r12d
	cmovaeq	%rax, %r8
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	movl	%r12d, %ecx
	callq	_av_asprintf
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_AV_DICT_DONT_STRDUP_VAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_av_dict_set
	movq	_instrument@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ModPlug_InstrumentName@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ADD_META_MULTIPLE_ENTRIES
	movq	_sample@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ModPlug_SampleName@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ADD_META_MULTIPLE_ENTRIES
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"name"

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

L_.str.2:                               ## @.str.2
	.asciz	"%u pattern%s, %u channel%s"

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

L_.str.4:                               ## @.str.4
	.space	1

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.5:                               ## @.str.5
	.asciz	"extra info"

	.comm	_AV_DICT_DONT_STRDUP_VAL,4,2    ## @AV_DICT_DONT_STRDUP_VAL
	.comm	_instrument,4,2                 ## @instrument
	.comm	_ModPlug_InstrumentName,4,2     ## @ModPlug_InstrumentName
	.comm	_sample,4,2                     ## @sample
	.comm	_ModPlug_SampleName,4,2         ## @ModPlug_SampleName
	.no_dead_strip	_modplug_load_metadata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function modplug_load_metadata
_modplug_load_metadata:                 ; @modplug_load_metadata
	.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, x0
	ldr	x8, [x0, #8]
	ldr	x22, [x8]
	mov	x0, x22
	bl	_ModPlug_GetName
	mov	x23, x0
	mov	x0, x22
	bl	_ModPlug_GetMessage
	mov	x20, x0
	mov	x0, x22
	bl	_ModPlug_NumInstruments
	mov	x0, x22
	bl	_ModPlug_NumSamples
	mov	x0, x22
	bl	_ModPlug_NumPatterns
	mov	x21, x0
	mov	x0, x22
	bl	_ModPlug_NumChannels
	mov	x22, x0
	cbz	x23, LBB0_3
; %bb.1:
	ldrb	w8, [x23]
	cbz	w8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	mov	w3, #0
	bl	_av_dict_set
LBB0_3:
	cbz	x20, LBB0_6
; %bb.4:
	ldrb	w8, [x20]
	cbz	w8, LBB0_6
; %bb.5:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	bl	_av_dict_set
LBB0_6:
Lloh4:
	adrp	x8, l_.str.4@PAGE
Lloh5:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh6:
	adrp	x9, l_.str.3@PAGE
Lloh7:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w21, #1
	csel	x2, x9, x8, hi
	cmp	w22, #1
	csel	x4, x9, x8, hi
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	mov	x3, x22
	bl	_av_asprintf
	cbz	x0, LBB0_8
; %bb.7:
	mov	x2, x0
Lloh10:
	adrp	x8, _AV_DICT_DONT_STRDUP_VAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_DICT_DONT_STRDUP_VAL@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_av_dict_set
Lloh15:
	adrp	x8, _instrument@GOTPAGE
Lloh16:
	ldr	x8, [x8, _instrument@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _ModPlug_InstrumentName@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ModPlug_InstrumentName@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_ADD_META_MULTIPLE_ENTRIES
Lloh21:
	adrp	x8, _sample@GOTPAGE
Lloh22:
	ldr	x8, [x8, _sample@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _ModPlug_SampleName@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ModPlug_SampleName@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_ADD_META_MULTIPLE_ENTRIES
	mov	w0, #0
	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
LBB0_8:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	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
	b	_AVERROR
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"name"

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

l_.str.2:                               ; @.str.2
	.asciz	"%u pattern%s, %u channel%s"

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

l_.str.4:                               ; @.str.4
	.space	1

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.5:                               ; @.str.5
	.asciz	"extra info"

	.comm	_AV_DICT_DONT_STRDUP_VAL,4,2    ; @AV_DICT_DONT_STRDUP_VAL
	.comm	_instrument,4,2                 ; @instrument
	.comm	_ModPlug_InstrumentName,4,2     ; @ModPlug_InstrumentName
	.comm	_sample,4,2                     ; @sample
	.comm	_ModPlug_SampleName,4,2         ; @ModPlug_SampleName
	.no_dead_strip	_modplug_load_metadata
.subsections_via_symbols
