	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffat_convert_layout
_ffat_convert_layout:                   ## @ffat_convert_layout
	.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, %rbx
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)
	movq	_kAudioChannelLayoutTag_UseChannelDescriptions@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	je	LBB0_11
## %bb.1:
	movq	%rsi, %r14
	movq	_kAudioChannelLayoutTag_UseChannelBitmap@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_3
## %bb.2:
	movq	_kAudioFormatProperty_ChannelLayoutForBitmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rdx
	movl	$4, %esi
	jmp	LBB0_4
LBB0_3:
	movq	_kAudioFormatProperty_ChannelLayoutForTag@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rdx
	movl	$8, %esi
LBB0_4:
	movq	%r14, %rcx
	callq	_AudioFormatGetPropertyInfo
	movl	(%r14), %edi
	callq	_av_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	-48(%rbp), %rax
	cmpq	(%r13), %rax
	jne	LBB0_8
## %bb.7:
	movq	_kAudioFormatProperty_ChannelLayoutForBitmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rdx
	movl	$4, %esi
	jmp	LBB0_9
LBB0_5:
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_8:
	movq	_kAudioFormatProperty_ChannelLayoutForTag@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rdx
	movl	$8, %esi
LBB0_9:
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_AudioFormatGetProperty
	movq	(%r12), %rax
	movq	%rax, (%r15)
LBB0_10:
	movq	%rbx, %rdi
	callq	_av_free
	movq	%r15, %rbx
LBB0_11:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kAudioChannelLayoutTag_UseChannelDescriptions,8,3 ## @kAudioChannelLayoutTag_UseChannelDescriptions
	.comm	_kAudioChannelLayoutTag_UseChannelBitmap,8,3 ## @kAudioChannelLayoutTag_UseChannelBitmap
	.comm	_kAudioFormatProperty_ChannelLayoutForBitmap,4,2 ## @kAudioFormatProperty_ChannelLayoutForBitmap
	.comm	_kAudioFormatProperty_ChannelLayoutForTag,4,2 ## @kAudioFormatProperty_ChannelLayoutForTag
	.no_dead_strip	_ffat_convert_layout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffat_convert_layout
_ffat_convert_layout:                   ; @ffat_convert_layout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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]
	str	x8, [sp, #8]
Lloh0:
	adrp	x22, _kAudioChannelLayoutTag_UseChannelDescriptions@GOTPAGE
Lloh1:
	ldr	x22, [x22, _kAudioChannelLayoutTag_UseChannelDescriptions@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.1:
	mov	x20, x1
Lloh2:
	adrp	x23, _kAudioChannelLayoutTag_UseChannelBitmap@GOTPAGE
Lloh3:
	ldr	x23, [x23, _kAudioChannelLayoutTag_UseChannelBitmap@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _kAudioFormatProperty_ChannelLayoutForBitmap@GOTPAGE
Lloh5:
	ldr	x8, [x8, _kAudioFormatProperty_ChannelLayoutForBitmap@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	add	x2, x19, #8
	mov	w1, #4
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _kAudioFormatProperty_ChannelLayoutForTag@GOTPAGE
Lloh8:
	ldr	x8, [x8, _kAudioFormatProperty_ChannelLayoutForTag@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	w1, #8
LBB0_4:
	mov	x3, x20
	bl	_AudioFormatGetPropertyInfo
	ldr	w0, [x20]
	bl	_av_malloc
	mov	x21, x0
	cbz	x0, LBB0_9
; %bb.5:
	ldr	x8, [sp, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh10:
	adrp	x8, _kAudioFormatProperty_ChannelLayoutForBitmap@GOTPAGE
Lloh11:
	ldr	x8, [x8, _kAudioFormatProperty_ChannelLayoutForBitmap@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x2, x19, #8
	mov	w1, #4
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x8, _kAudioFormatProperty_ChannelLayoutForTag@GOTPAGE
Lloh14:
	ldr	x8, [x8, _kAudioFormatProperty_ChannelLayoutForTag@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	w1, #8
LBB0_8:
	mov	x3, x20
	mov	x4, x21
	bl	_AudioFormatGetProperty
	ldr	x8, [x22]
	str	x8, [x21]
LBB0_9:
	mov	x0, x19
	bl	_av_free
	mov	x19, x21
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_kAudioChannelLayoutTag_UseChannelDescriptions,8,3 ; @kAudioChannelLayoutTag_UseChannelDescriptions
	.comm	_kAudioChannelLayoutTag_UseChannelBitmap,8,3 ; @kAudioChannelLayoutTag_UseChannelBitmap
	.comm	_kAudioFormatProperty_ChannelLayoutForBitmap,4,2 ; @kAudioFormatProperty_ChannelLayoutForBitmap
	.comm	_kAudioFormatProperty_ChannelLayoutForTag,4,2 ; @kAudioFormatProperty_ChannelLayoutForTag
	.no_dead_strip	_ffat_convert_layout
.subsections_via_symbols
