	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ch_mode_put
_ch_mode_put:                           ## @ch_mode_put
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movq	(%rbx), %rax
	movl	(%rax), %r12d
	testl	%r12d, %r12d
	js	LBB0_2
## %bb.1:
	movq	(%r14), %r15
	movl	(%r15), %ecx
	cmpl	%ecx, %r12d
	jle	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	4(%r15), %eax
	movl	8(%r15), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	xorl	%eax, %eax
	cmpl	%esi, %r12d
	je	LBB0_10
## %bb.4:
	leal	(%rdx,%r12,2), %edi
	movl	%edi, 4(%r15)
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edx, %edx
	cmpl	%r12d, %ebx
	setl	%dl
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_set_multi_io
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_6
## %bb.7:
	movl	4(%r15), %edi
LBB0_8:
	movl	32(%r15), %esi
	callq	_max
	movl	%eax, %ecx
	movl	%eax, 12(%r15)
	movl	$1, %eax
	cmpq	$0, 24(%r15)
	je	LBB0_10
## %bb.9:
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movl	%edx, 16(%r15)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ch_mode_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ch_mode_put
_ch_mode_put:                           ; @ch_mode_put
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_snd_kcontrol_chip
	ldr	x8, [x20]
	ldr	w22, [x8]
	tbnz	w22, #31, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x21, [x0]
	ldr	w8, [x21]
	cmp	w22, w8
	b.le	LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldp	w10, w9, [x21, #4]
	sub	w10, w10, w9
	cmp	w10, #0
	cinc	w10, w10, lt
	cmp	w22, w10, asr #1
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_3
LBB0_6:
	add	w0, w9, w22, lsl #1
	str	w0, [x21, #4]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:
	mov	w20, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w20, w22
	cset	w2, lt
	mov	x0, x19
	mov	x1, x20
	bl	_set_multi_io
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.lt	LBB0_8
; %bb.9:
	ldr	w0, [x21, #4]
LBB0_10:
	ldr	w1, [x21, #32]
	bl	_max
	str	w0, [x21, #12]
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_12
; %bb.11:
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w8, w8, #1
	str	w8, [x21, #16]
LBB0_12:
	mov	w0, #1
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ch_mode_put
.subsections_via_symbols
