	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce3_2_afmt_write_sad_regs     ## -- Begin function dce3_2_afmt_write_sad_regs
	.p2align	4, 0x90
_dce3_2_afmt_write_sad_regs:            ## @dce3_2_afmt_write_sad_regs
	.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	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	leaq	_dce3_2_afmt_write_sad_regs.eld_reg_to_type(%rip), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_11
## %bb.1:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rdx
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, %edi
	callq	_SUPPORTED_FREQUENCIES_STEREO
	orl	%eax, %r13d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rax
	shlq	$4, %rax
	leaq	_dce3_2_afmt_write_sad_regs.eld_reg_to_type(%rip), %r14
	movq	(%rax,%r14), %rsi
	xorl	%edi, %edi
	movl	%r13d, %edx
	callq	_WREG32_ENDPOINT
	incq	%r15
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	cltq
	movq	%r15, %rcx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %r15
	jge	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	$0, %esi
	movl	$0, %r13d
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	shlq	$4, %rax
	leaq	_dce3_2_afmt_write_sad_regs.eld_reg_to_type(%rip), %rcx
	movq	8(%rax,%rcx), %r15
	xorl	%r12d, %r12d
	movl	$-1, %eax
	xorl	%esi, %esi
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	addq	$24, %r12
	cmpq	%r12, %rdx
	je	LBB0_10
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r15, (%rbx,%r12)
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	8(%rbx,%r12), %edi
	movq	%r15, %rcx
	cmpl	%eax, %edi
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	callq	_MAX_CHANNELS
	movl	%eax, %r13d
	movl	16(%rbx,%r12), %edi
	callq	_DESCRIPTOR_BYTE_2
	movl	%eax, %r14d
	orl	%r13d, %r14d
	movl	12(%rbx,%r12), %edi
	callq	_SUPPORTED_FREQUENCIES
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %r13d
	orl	%r14d, %r13d
	movl	8(%rbx,%r12), %eax
	movq	(%rbx,%r12), %rcx
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	cmpq	$129, %rcx
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	orl	12(%rbx,%r12), %esi
	jmp	LBB0_9
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @dce3_2_afmt_write_sad_regs.eld_reg_to_type
_dce3_2_afmt_write_sad_regs.eld_reg_to_type:
	.quad	151                             ## 0x97
	.quad	129                             ## 0x81
	.quad	150                             ## 0x96
	.quad	138                             ## 0x8a
	.quad	146                             ## 0x92
	.quad	131                             ## 0x83
	.quad	145                             ## 0x91
	.quad	132                             ## 0x84
	.quad	144                             ## 0x90
	.quad	130                             ## 0x82
	.quad	143                             ## 0x8f
	.quad	139                             ## 0x8b
	.quad	142                             ## 0x8e
	.quad	136                             ## 0x88
	.quad	141                             ## 0x8d
	.quad	137                             ## 0x89
	.quad	140                             ## 0x8c
	.quad	134                             ## 0x86
	.quad	149                             ## 0x95
	.quad	135                             ## 0x87
	.quad	148                             ## 0x94
	.quad	133                             ## 0x85
	.quad	147                             ## 0x93
	.quad	128                             ## 0x80

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce3_2_afmt_write_sad_regs     ; -- Begin function dce3_2_afmt_write_sad_regs
	.p2align	2
_dce3_2_afmt_write_sad_regs:            ; @dce3_2_afmt_write_sad_regs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x2
	mov	x21, x1
Lloh0:
	adrp	x20, _dce3_2_afmt_write_sad_regs.eld_reg_to_type@PAGE
Lloh1:
	add	x20, x20, _dce3_2_afmt_write_sad_regs.eld_reg_to_type@PAGEOFF
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x23, #0
	mov	w24, w19
	add	x25, x21, #8
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w21, #0
	mov	w22, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_SUPPORTED_FREQUENCIES_STEREO
	orr	w2, w0, w22
	lsl	x8, x23, #4
	ldr	x1, [x20, x8]
	mov	w0, #0
	bl	_WREG32_ENDPOINT
	add	x23, x23, #1
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w19, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w21, #0
	mov	w22, #0
	add	x8, x20, x23, lsl #4
	ldr	x26, [x8, #8]
	mov	w8, #-1
	mov	x27, x24
	mov	x28, x25
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x28, x28, #24
	subs	x27, x27, #1
	b.eq	LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	x9, [x28, #-8]
	cmp	x9, x26
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w0, [x28]
	mov	x9, x26
	cmp	w0, w8
	b.le	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	bl	_MAX_CHANNELS
	mov	x22, x0
	ldr	w0, [x28, #8]
	bl	_DESCRIPTOR_BYTE_2
	orr	w22, w0, w22
	ldr	w0, [x28, #4]
	bl	_SUPPORTED_FREQUENCIES
	orr	w22, w22, w0
	ldr	w8, [x28]
	ldur	x9, [x28, #-8]
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	x9, #129
	b.ne	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w9, [x28, #4]
	orr	w21, w9, w21
	b	LBB0_6
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	3                               ; @dce3_2_afmt_write_sad_regs.eld_reg_to_type
_dce3_2_afmt_write_sad_regs.eld_reg_to_type:
	.quad	151                             ; 0x97
	.quad	129                             ; 0x81
	.quad	150                             ; 0x96
	.quad	138                             ; 0x8a
	.quad	146                             ; 0x92
	.quad	131                             ; 0x83
	.quad	145                             ; 0x91
	.quad	132                             ; 0x84
	.quad	144                             ; 0x90
	.quad	130                             ; 0x82
	.quad	143                             ; 0x8f
	.quad	139                             ; 0x8b
	.quad	142                             ; 0x8e
	.quad	136                             ; 0x88
	.quad	141                             ; 0x8d
	.quad	137                             ; 0x89
	.quad	140                             ; 0x8c
	.quad	134                             ; 0x86
	.quad	149                             ; 0x95
	.quad	135                             ; 0x87
	.quad	148                             ; 0x94
	.quad	133                             ; 0x85
	.quad	147                             ; 0x93
	.quad	128                             ; 0x80

.subsections_via_symbols
