	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cp_fields
_cp_fields:                             ## @cp_fields
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, %r8d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r11
	movq	%rdi, %rbx
	movl	24(%rbp), %edi
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	leal	7(%rcx), %r13d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r13d
	movq	16(%rbx), %r14
	movq	(%r14), %rcx
	movl	(%rcx), %edx
	leal	7(%rdx), %r12d
	testl	%edx, %edx
	cmovnsl	%edx, %r12d
	movl	16(%rbp), %r10d
	movl	4(%rax), %edx
	movl	4(%rcx), %esi
	sarl	$3, %r12d
	cmpl	%edx, %esi
	je	LBB0_7
## %bb.1:
	cmpl	$2, %esi
	jne	LBB0_3
## %bb.2:
	cmpl	$6, %edx
	je	LBB0_7
LBB0_3:
	cmpl	$1, %esi
	je	LBB0_13
## %bb.4:
	cmpl	$6, %esi
	je	LBB0_6
## %bb.5:
	cmpl	$8, %esi
	jne	LBB0_15
LBB0_6:
	cmpl	$2, %edx
	jne	LBB0_15
LBB0_7:
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movl	%edi, (%rsp)
	movl	%r15d, %ecx
	movq	%r11, %r15
	movq	%r11, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movl	%r8d, %edx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r9d, %r8d
	movl	%r10d, -48(%rbp)                ## 4-byte Spill
	movl	%r10d, %r9d
	callq	*8(%rbx)
	movq	(%r14), %rax
	cmpl	$2, 4(%rax)
	je	LBB0_9
## %bb.8:
	movq	(%rbx), %rax
	cmpl	$2, 4(%rax)
	jne	LBB0_12
LBB0_9:
	sarl	$3, %r13d
	movslq	%r13d, %rax
	leaq	(%r15,%rax,4), %rdi
	movslq	%r12d, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rsp)
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
LBB0_10:
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
LBB0_11:
	callq	*8(%rbx)
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	cmpl	$2, %edx
	jne	LBB0_15
## %bb.14:
	movl	%edi, (%rsp)
	movq	%r11, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r8d, %edx
	movl	%r15d, %ecx
	movl	%r9d, %r8d
	movl	%r10d, %r9d
	jmp	LBB0_11
LBB0_15:
	cmpl	$2, %esi
	jne	LBB0_18
## %bb.16:
	cmpl	$1, %edx
	jne	LBB0_18
## %bb.17:
	movl	%edi, (%rsp)
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movq	%r11, %rdi
	movl	%r15d, %r13d
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r8d, %edx
	movl	%r13d, %ecx
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movl	%r9d, %r8d
	movl	%r10d, %r9d
	movl	%r10d, -48(%rbp)                ## 4-byte Spill
	movq	%r11, %r14
	callq	*8(%rbx)
	movslq	%r12d, %rax
	leaq	(%r15,%rax,4), %rsi
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	jmp	LBB0_10
LBB0_18:
	leaq	L_.str(%rip), %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to remap channels: device=%u, buffer=%u\n"

	.no_dead_strip	_cp_fields
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cp_fields
_cp_fields:                             ; @cp_fields
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x11, x2
	mov	x25, x1
	mov	x26, x0
	ldr	x28, [x0, #16]
	ldr	x8, [x0]
	ldp	w9, w2, [x8]
	add	w8, w9, #7
	cmp	w9, #0
	csel	w24, w8, w9, lt
	ldr	x8, [x28]
	ldp	w9, w1, [x8]
	add	w8, w9, #7
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w8, w8, #3
	cmp	w1, w2
	b.eq	LBB0_6
; %bb.1:
	cmp	w1, #2
	ccmp	w2, #6, #0, eq
	b.eq	LBB0_6
; %bb.2:
	cmp	w1, #1
	b.eq	LBB0_11
; %bb.3:
	cmp	w1, #6
	b.eq	LBB0_5
; %bb.4:
	cmp	w1, #8
	ccmp	w2, #2, #0, eq
	b.ne	LBB0_13
	b	LBB0_6
LBB0_5:
	cmp	w2, #2
	b.ne	LBB0_13
LBB0_6:
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x8, [x26, #8]
	mov	x19, x25
	mov	x0, x25
	mov	x25, x11
	mov	x1, x11
	mov	x27, x3
	mov	x2, x3
	mov	x23, x4
	mov	x3, x4
	mov	x22, x5
	mov	x4, x5
	mov	x21, x6
	mov	x5, x6
	mov	x20, x7
	mov	x6, x7
	blr	x8
	ldr	x8, [x28]
	ldr	w8, [x8, #4]
	cmp	w8, #2
	b.eq	LBB0_8
; %bb.7:
	ldr	x8, [x26]
	ldr	w8, [x8, #4]
	cmp	w8, #2
	b.ne	LBB0_10
LBB0_8:
	asr	w8, w24, #3
	ldr	x7, [x26, #8]
	add	x0, x19, w8, sxtw #2
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	add	x1, x25, w8, sxtw #2
LBB0_9:
	mov	x2, x27
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	br	x7
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
	cmp	w2, #2
	b.ne	LBB0_13
; %bb.12:
	ldr	x8, [x26, #8]
	mov	x0, x25
	mov	x1, x11
	mov	x2, x3
	mov	x3, x4
	mov	x4, x5
	mov	x5, x6
	mov	x6, x7
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	br	x8
LBB0_13:
	cmp	w1, #2
	ccmp	w2, #1, #0, eq
	b.eq	LBB0_15
; %bb.14:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_WARN
LBB0_15:
	mov	x19, x8
	ldr	x8, [x26, #8]
	mov	x0, x25
	mov	x1, x11
	mov	x2, x3
	mov	x27, x3
	mov	x3, x4
	mov	x23, x4
	mov	x4, x5
	mov	x22, x5
	mov	x5, x6
	mov	x21, x6
	mov	x6, x7
	mov	x20, x7
	mov	x24, x11
	blr	x8
	ldr	x7, [x26, #8]
	add	x1, x24, w19, sxtw #2
	mov	x0, x25
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to remap channels: device=%u, buffer=%u\n"

	.no_dead_strip	_cp_fields
.subsections_via_symbols
