	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffat_get_magic_cookie
_ffat_get_magic_cookie:                 ## @ffat_get_magic_cookie
	.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	%rsi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %r12
	movq	_AV_CODEC_ID_AAC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	8(%r12), %rdi
	addq	$31, %rdi
	movq	%rdi, (%rbx)
	callq	_av_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%rbx), %rdx
	leaq	-36(%rbp), %r14
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_bytestream2_init_writer
	movq	8(%r12), %rdx
	addq	$26, %rdx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_put_descr
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bytestream2_put_be16
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bytestream2_put_byte
	movq	8(%r12), %rdx
	addq	$18, %rdx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_put_descr
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_bytestream2_put_byte
	movq	%r14, %rdi
	movl	$21, %esi
	callq	_bytestream2_put_byte
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bytestream2_put_be24
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bytestream2_put_be32
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bytestream2_put_be32
	movq	8(%r12), %rdx
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_put_descr
	movq	(%r12), %rsi
	movq	8(%r12), %rdx
	movq	%r14, %rdi
	callq	_bytestream2_put_buffer
	jmp	LBB0_4
LBB0_3:
	movq	8(%r12), %rax
	movq	%rax, (%rbx)
	movq	(%r12), %r15
LBB0_4:
	movq	%r15, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_AAC,8,3            ## @AV_CODEC_ID_AAC
	.no_dead_strip	_ffat_get_magic_cookie
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffat_get_magic_cookie
_ffat_get_magic_cookie:                 ; @ffat_get_magic_cookie
	.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	x20, x1
	ldp	x8, x21, [x0]
Lloh0:
	adrp	x9, _AV_CODEC_ID_AAC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_CODEC_ID_AAC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x21, #8]
	add	x0, x8, #31
	str	x0, [x20]
	bl	_av_malloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x2, [x20]
	add	x0, sp, #12
	mov	x1, x19
	bl	_bytestream2_init_writer
	ldr	x8, [x21, #8]
	add	x2, x8, #26
	add	x0, sp, #12
	mov	w1, #3
	bl	_put_descr
	add	x0, sp, #12
	mov	w1, #0
	bl	_bytestream2_put_be16
	add	x0, sp, #12
	mov	w1, #0
	bl	_bytestream2_put_byte
	ldr	x8, [x21, #8]
	add	x2, x8, #18
	add	x0, sp, #12
	mov	w1, #4
	bl	_put_descr
	add	x0, sp, #12
	mov	w1, #64
	bl	_bytestream2_put_byte
	add	x0, sp, #12
	mov	w1, #21
	bl	_bytestream2_put_byte
	add	x0, sp, #12
	mov	w1, #0
	bl	_bytestream2_put_be24
	add	x0, sp, #12
	mov	w1, #0
	bl	_bytestream2_put_be32
	add	x0, sp, #12
	mov	w1, #0
	bl	_bytestream2_put_be32
	ldr	x2, [x21, #8]
	add	x0, sp, #12
	mov	w1, #5
	bl	_put_descr
	ldp	x1, x2, [x21]
	add	x0, sp, #12
	bl	_bytestream2_put_buffer
	b	LBB0_4
LBB0_3:
	ldp	x19, x8, [x21]
	str	x8, [x20]
LBB0_4:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_AAC,8,3            ; @AV_CODEC_ID_AAC
	.no_dead_strip	_ffat_get_magic_cookie
.subsections_via_symbols
