	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffat_get_channel_id
_ffat_get_channel_id:                   ## @ffat_get_channel_id
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$-1, %eax
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	_kAudioChannelLabel_LFEScreen@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	jge	LBB0_2
## %bb.5:
	movq	_kAudioChannelLabel_RightSurround@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	jge	LBB0_6
## %bb.7:
	movq	_kAudioChannelLabel_CenterSurround@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	jge	LBB0_8
## %bb.9:
	movq	_kAudioChannelLabel_RightSurroundDirect@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	jge	LBB0_10
## %bb.11:
	movq	_kAudioChannelLabel_TopBackRight@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	jge	LBB0_2
## %bb.12:
	movq	_kAudioChannelLabel_RearSurroundLeft@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	jg	LBB0_4
## %bb.13:
	movq	_kAudioChannelLabel_RearSurroundRight@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	jge	LBB0_14
## %bb.15:
	movq	_kAudioChannelLabel_RightWide@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	jge	LBB0_16
## %bb.17:
	movq	_kAudioChannelLabel_LFE2@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	jne	LBB0_20
## %bb.18:
	movq	_AV_CH_LOW_FREQUENCY_2@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_2:
	decl	%edi
	jmp	LBB0_3
LBB0_6:
	addl	$4, %edi
	jmp	LBB0_3
LBB0_8:
	incl	%edi
	jmp	LBB0_3
LBB0_10:
	addl	$23, %edi
LBB0_3:
	movl	%edi, %eax
LBB0_4:
	popq	%rbp
	retq
LBB0_14:
	addl	$-29, %edi
	jmp	LBB0_3
LBB0_16:
	addl	$-4, %edi
	jmp	LBB0_3
LBB0_20:
	movq	_kAudioChannelLabel_Mono@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	jne	LBB0_4
## %bb.21:
	movq	_AV_CH_FRONT_CENTER@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %edi
	popq	%rbp
	jmp	_ff_ctzll                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_kAudioChannelLabel_LFEScreen,8,3 ## @kAudioChannelLabel_LFEScreen
	.comm	_kAudioChannelLabel_RightSurround,8,3 ## @kAudioChannelLabel_RightSurround
	.comm	_kAudioChannelLabel_CenterSurround,8,3 ## @kAudioChannelLabel_CenterSurround
	.comm	_kAudioChannelLabel_RightSurroundDirect,8,3 ## @kAudioChannelLabel_RightSurroundDirect
	.comm	_kAudioChannelLabel_TopBackRight,8,3 ## @kAudioChannelLabel_TopBackRight
	.comm	_kAudioChannelLabel_RearSurroundLeft,8,3 ## @kAudioChannelLabel_RearSurroundLeft
	.comm	_kAudioChannelLabel_RearSurroundRight,8,3 ## @kAudioChannelLabel_RearSurroundRight
	.comm	_kAudioChannelLabel_RightWide,8,3 ## @kAudioChannelLabel_RightWide
	.comm	_kAudioChannelLabel_LFE2,8,3    ## @kAudioChannelLabel_LFE2
	.comm	_AV_CH_LOW_FREQUENCY_2,4,2      ## @AV_CH_LOW_FREQUENCY_2
	.comm	_kAudioChannelLabel_Mono,8,3    ## @kAudioChannelLabel_Mono
	.comm	_AV_CH_FRONT_CENTER,4,2         ## @AV_CH_FRONT_CENTER
	.no_dead_strip	_ffat_get_channel_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffat_get_channel_id
_ffat_get_channel_id:                   ; @ffat_get_channel_id
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _kAudioChannelLabel_LFEScreen@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kAudioChannelLabel_LFEScreen@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ge	LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _kAudioChannelLabel_RightSurround@GOTPAGE
Lloh4:
	ldr	x8, [x8, _kAudioChannelLabel_RightSurround@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ge	LBB0_9
; %bb.3:
Lloh6:
	adrp	x8, _kAudioChannelLabel_CenterSurround@GOTPAGE
Lloh7:
	ldr	x8, [x8, _kAudioChannelLabel_CenterSurround@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ge	LBB0_10
; %bb.4:
Lloh9:
	adrp	x8, _kAudioChannelLabel_RightSurroundDirect@GOTPAGE
Lloh10:
	ldr	x8, [x8, _kAudioChannelLabel_RightSurroundDirect@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ge	LBB0_11
; %bb.5:
Lloh12:
	adrp	x8, _kAudioChannelLabel_TopBackRight@GOTPAGE
Lloh13:
	ldr	x8, [x8, _kAudioChannelLabel_TopBackRight@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ge	LBB0_8
; %bb.6:
Lloh15:
	adrp	x8, _kAudioChannelLabel_RearSurroundLeft@GOTPAGE
Lloh16:
	ldr	x8, [x8, _kAudioChannelLabel_RearSurroundLeft@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x8, x0
	b.le	LBB0_12
LBB0_7:
	mov	w0, #-1
	ret
LBB0_8:
	sub	w0, w0, #1
	ret
LBB0_9:
	add	w0, w0, #4
	ret
LBB0_10:
	add	w0, w0, #1
	ret
LBB0_11:
	add	w0, w0, #23
	ret
LBB0_12:
Lloh18:
	adrp	x8, _kAudioChannelLabel_RearSurroundRight@GOTPAGE
Lloh19:
	ldr	x8, [x8, _kAudioChannelLabel_RearSurroundRight@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ge	LBB0_16
; %bb.13:
Lloh21:
	adrp	x8, _kAudioChannelLabel_RightWide@GOTPAGE
Lloh22:
	ldr	x8, [x8, _kAudioChannelLabel_RightWide@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ge	LBB0_17
; %bb.14:
Lloh24:
	adrp	x8, _kAudioChannelLabel_LFE2@GOTPAGE
Lloh25:
	ldr	x8, [x8, _kAudioChannelLabel_LFE2@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_18
; %bb.15:
Lloh27:
	adrp	x8, _AV_CH_LOW_FREQUENCY_2@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AV_CH_LOW_FREQUENCY_2@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	b	_ff_ctzll
LBB0_16:
	sub	w0, w0, #29
	ret
LBB0_17:
	sub	w0, w0, #4
	ret
LBB0_18:
Lloh30:
	adrp	x8, _kAudioChannelLabel_Mono@GOTPAGE
Lloh31:
	ldr	x8, [x8, _kAudioChannelLabel_Mono@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_7
; %bb.19:
Lloh33:
	adrp	x8, _AV_CH_FRONT_CENTER@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AV_CH_FRONT_CENTER@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	b	_ff_ctzll
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_kAudioChannelLabel_LFEScreen,8,3 ; @kAudioChannelLabel_LFEScreen
	.comm	_kAudioChannelLabel_RightSurround,8,3 ; @kAudioChannelLabel_RightSurround
	.comm	_kAudioChannelLabel_CenterSurround,8,3 ; @kAudioChannelLabel_CenterSurround
	.comm	_kAudioChannelLabel_RightSurroundDirect,8,3 ; @kAudioChannelLabel_RightSurroundDirect
	.comm	_kAudioChannelLabel_TopBackRight,8,3 ; @kAudioChannelLabel_TopBackRight
	.comm	_kAudioChannelLabel_RearSurroundLeft,8,3 ; @kAudioChannelLabel_RearSurroundLeft
	.comm	_kAudioChannelLabel_RearSurroundRight,8,3 ; @kAudioChannelLabel_RearSurroundRight
	.comm	_kAudioChannelLabel_RightWide,8,3 ; @kAudioChannelLabel_RightWide
	.comm	_kAudioChannelLabel_LFE2,8,3    ; @kAudioChannelLabel_LFE2
	.comm	_AV_CH_LOW_FREQUENCY_2,4,2      ; @AV_CH_LOW_FREQUENCY_2
	.comm	_kAudioChannelLabel_Mono,8,3    ; @kAudioChannelLabel_Mono
	.comm	_AV_CH_FRONT_CENTER,4,2         ; @AV_CH_FRONT_CENTER
	.no_dead_strip	_ffat_get_channel_id
.subsections_via_symbols
