	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ad1816a_get_format
_snd_ad1816a_get_format:                ## @snd_ad1816a_get_format
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	addl	$-128, %esi
	cmpl	$3, %esi
	ja	LBB0_1
## %bb.2:
	movslq	%esi, %rax
	leaq	l_switch.table.snd_ad1816a_get_format(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_AD1816A_FMT_LINEAR_8@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ecx, %ecx
	cmpl	$2, %edx
	movq	_AD1816A_FMT_STEREO@GOTPCREL(%rip), %rdx
	movzbl	(%rdx), %edx
	cmovll	%ecx, %edx
	orb	(%rax), %dl
	movzbl	%dl, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD1816A_FMT_LINEAR_8,1,0       ## @AD1816A_FMT_LINEAR_8
	.comm	_AD1816A_FMT_ULAW_8,1,0         ## @AD1816A_FMT_ULAW_8
	.comm	_AD1816A_FMT_ALAW_8,1,0         ## @AD1816A_FMT_ALAW_8
	.comm	_AD1816A_FMT_LINEAR_16_LIT,1,0  ## @AD1816A_FMT_LINEAR_16_LIT
	.comm	_AD1816A_FMT_LINEAR_16_BIG,1,0  ## @AD1816A_FMT_LINEAR_16_BIG
	.comm	_AD1816A_FMT_STEREO,1,0         ## @AD1816A_FMT_STEREO
	.no_dead_strip	_snd_ad1816a_get_format
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.snd_ad1816a_get_format
l_switch.table.snd_ad1816a_get_format:
	.quad	_AD1816A_FMT_LINEAR_16_LIT
	.quad	_AD1816A_FMT_LINEAR_16_BIG
	.quad	_AD1816A_FMT_ULAW_8
	.quad	_AD1816A_FMT_ALAW_8

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ad1816a_get_format
_snd_ad1816a_get_format:                ; @snd_ad1816a_get_format
	.cfi_startproc
; %bb.0:
	sub	w8, w1, #128
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.snd_ad1816a_get_format@PAGE
Lloh1:
	add	x9, x9, l_switch.table.snd_ad1816a_get_format@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _AD1816A_FMT_LINEAR_8@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AD1816A_FMT_LINEAR_8@GOTPAGEOFF]
LBB0_3:
	ldrb	w8, [x8]
Lloh4:
	adrp	x9, _AD1816A_FMT_STEREO@GOTPAGE
Lloh5:
	ldr	x9, [x9, _AD1816A_FMT_STEREO@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w2, #1
	csel	w9, w9, wzr, gt
	and	w9, w9, #0xff
	orr	w0, w9, w8
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AD1816A_FMT_LINEAR_8,1,0       ; @AD1816A_FMT_LINEAR_8
	.comm	_AD1816A_FMT_ULAW_8,1,0         ; @AD1816A_FMT_ULAW_8
	.comm	_AD1816A_FMT_ALAW_8,1,0         ; @AD1816A_FMT_ALAW_8
	.comm	_AD1816A_FMT_LINEAR_16_LIT,1,0  ; @AD1816A_FMT_LINEAR_16_LIT
	.comm	_AD1816A_FMT_LINEAR_16_BIG,1,0  ; @AD1816A_FMT_LINEAR_16_BIG
	.comm	_AD1816A_FMT_STEREO,1,0         ; @AD1816A_FMT_STEREO
	.no_dead_strip	_snd_ad1816a_get_format
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.snd_ad1816a_get_format
l_switch.table.snd_ad1816a_get_format:
	.quad	_AD1816A_FMT_LINEAR_16_LIT
	.quad	_AD1816A_FMT_LINEAR_16_BIG
	.quad	_AD1816A_FMT_ULAW_8
	.quad	_AD1816A_FMT_ALAW_8

.subsections_via_symbols
