	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffat_set_extradata
_ffat_set_extradata:                    ## @ffat_set_extradata
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	callq	_ffat_usable_extradata
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ffat_get_magic_cookie
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r15
	movl	8(%r12), %edi
	movq	_kAudioConverterDecompressionMagicCookie@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-36(%rbp), %edx
	movq	%r15, %rcx
	callq	_AudioConverterSetProperty
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_av_log
LBB0_4:
	cmpq	(%r12), %r15
	je	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	callq	_av_free
	jmp	LBB0_7
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_kAudioConverterDecompressionMagicCookie,4,2 ## @kAudioConverterDecompressionMagicCookie
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AudioToolbox cookie error: %i\n"

	.no_dead_strip	_ffat_set_extradata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffat_set_extradata
_ffat_set_extradata:                    ; @ffat_set_extradata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x21, [x0]
	bl	_ffat_usable_extradata
	cbz	x0, LBB0_8
; %bb.1:
	add	x1, sp, #12
	mov	x0, x19
	bl	_ffat_get_magic_cookie
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
	ldr	w0, [x21, #8]
Lloh0:
	adrp	x8, _kAudioConverterDecompressionMagicCookie@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kAudioConverterDecompressionMagicCookie@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x3, x20
	bl	_AudioConverterSetProperty
	cbz	x0, LBB0_4
; %bb.3:
	mov	x3, x0
Lloh3:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_av_log
LBB0_4:
	ldr	x8, [x21]
	cmp	x20, x8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_av_free
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_kAudioConverterDecompressionMagicCookie,4,2 ; @kAudioConverterDecompressionMagicCookie
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AudioToolbox cookie error: %i\n"

	.no_dead_strip	_ffat_set_extradata
.subsections_via_symbols
