	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pcm_lib_ioctl_channel_info
_snd_pcm_lib_ioctl_channel_info:        ## @snd_pcm_lib_ioctl_channel_info
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movq	_SNDRV_PCM_INFO_MMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.1:
	movl	24(%rbx), %edi
	callq	_snd_pcm_format_physical_width
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_12
## %bb.2:
	movl	$0, (%r14)
	movl	4(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_8
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	16(%rbx), %rax
	movslq	8(%rbx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_9
## %bb.5:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_10
LBB0_6:
	movl	$-1, (%r14)
	jmp	LBB0_11
LBB0_7:
	movl	8(%r14), %eax
	imull	%r15d, %eax
	movl	%eax, 4(%r14)
	movl	8(%rbx), %eax
	imull	%r15d, %eax
	movl	%eax, 12(%r14)
	jmp	LBB0_11
LBB0_8:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_snd_BUG
	jmp	LBB0_12
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_10:
	imull	8(%r14), %eax
	shll	$3, %eax
	movl	%eax, 4(%r14)
	movl	%r15d, 12(%r14)
LBB0_11:
	xorl	%r15d, %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_SNDRV_PCM_INFO_MMAP,4,2        ## @SNDRV_PCM_INFO_MMAP
	.no_dead_strip	_snd_pcm_lib_ioctl_channel_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_pcm_lib_ioctl_channel_info
_snd_pcm_lib_ioctl_channel_info:        ; @snd_pcm_lib_ioctl_channel_info
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x20, [x0]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _SNDRV_PCM_INFO_MMAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNDRV_PCM_INFO_MMAP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	ldr	w0, [x20, #24]
	bl	_snd_pcm_format_physical_width
	tbnz	w0, #31, LBB0_9
; %bb.2:
	str	wzr, [x19]
	ldr	w8, [x20, #4]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_7
; %bb.3:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	ldr	x8, [x20, #16]
	ldrsw	x9, [x20, #8]
	udiv	x8, x8, x9
	ldr	w9, [x19, #8]
	mul	w8, w8, w9
	lsl	w8, w8, #3
	str	w8, [x19, #4]
	str	w0, [x19, #12]
	b	LBB0_8
LBB0_5:
	mov	w0, #0
	mov	w8, #-1
	str	w8, [x19]
	b	LBB0_9
LBB0_6:
	ldr	w8, [x19, #8]
	mul	w8, w8, w0
	str	w8, [x19, #4]
	ldr	w8, [x20, #8]
	mul	w8, w8, w0
	str	w8, [x19, #12]
	b	LBB0_8
LBB0_7:
	bl	_snd_BUG
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
                                        ; -- End function
	.comm	_SNDRV_PCM_INFO_MMAP,4,2        ; @SNDRV_PCM_INFO_MMAP
	.no_dead_strip	_snd_pcm_lib_ioctl_channel_info
.subsections_via_symbols
