	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_hdmi_create_cs
_dw_hdmi_create_cs:                     ## @dw_hdmi_create_cs
	.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
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-64(%rbp), %r14
	movq	%rsi, %rdi
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_snd_pcm_create_iec958_consumer
	movq	(%r13), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$8, %rbx
	je	LBB0_5
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	_IEC958_AES2_CON_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	-56(%rbp), %eax
	leaq	1(%rbx), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx killed $rcx
	shll	$4, %ecx
	orl	%eax, %ecx
	movl	%ecx, -56(%rbp)
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-64(%rbp,%r15,4), %eax
	movq	(%r13), %rcx
	movl	%r12d, %edx
	andl	$-8, %edx
	leal	(,%rax,4), %esi
	andl	$4, %esi
	movq	(%rcx,%rdx,8), %rdi
	movl	%esi, (%rdi,%rbx,4)
	leal	(%rax,%rax), %esi
	andl	$4, %esi
	movq	8(%rcx,%rdx,8), %rdi
	movl	%esi, (%rdi,%rbx,4)
	movl	%eax, %esi
	andl	$4, %esi
	movq	16(%rcx,%rdx,8), %rdi
	movl	%esi, (%rdi,%rbx,4)
	movl	%eax, %esi
	shrl	%esi
	andl	$4, %esi
	movq	24(%rcx,%rdx,8), %rdi
	movl	%esi, (%rdi,%rbx,4)
	movl	%eax, %esi
	shrl	$2, %esi
	andl	$4, %esi
	movq	32(%rcx,%rdx,8), %rdi
	movl	%esi, (%rdi,%rbx,4)
	movl	%eax, %esi
	shrl	$3, %esi
	andl	$4, %esi
	movq	40(%rcx,%rdx,8), %rdi
	movl	%esi, (%rdi,%rbx,4)
	movl	%eax, %esi
	shrl	$4, %esi
	andl	$4, %esi
	movq	48(%rcx,%rdx,8), %rdi
	movl	%esi, (%rdi,%rbx,4)
	shrl	$5, %eax
	andl	$4, %eax
	movq	56(%rcx,%rdx,8), %rcx
	incq	%r15
	movl	%eax, (%rcx,%rbx,4)
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$8, %r12
	cmpq	%rax, %r15
	jb	LBB0_4
	jmp	LBB0_1
LBB0_5:
	movl	$4, %edi
	callq	_BIT
	movq	(%r13), %rcx
	movq	(%rcx), %rcx
	orl	%eax, (%rcx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IEC958_AES2_CON_CHANNEL,4,2    ## @IEC958_AES2_CON_CHANNEL
	.no_dead_strip	_dw_hdmi_create_cs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_hdmi_create_cs
_dw_hdmi_create_cs:                     ; @dw_hdmi_create_cs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	str	x9, [sp, #24]
	add	x20, sp, #8
	add	x1, sp, #8
	mov	x0, x8
	mov	w2, #16
	bl	_snd_pcm_create_iec958_consumer
	ldr	x0, [x19]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x22, #0
Lloh3:
	adrp	x21, _IEC958_AES2_CON_CHANNEL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _IEC958_AES2_CON_CHANNEL@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x23
	cmp	x23, #8
	b.eq	LBB0_5
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	w8, [x21]
	ldr	w9, [sp, #16]
	bic	w8, w9, w8
	add	x23, x22, #1
	orr	w8, w8, w23, lsl #4
	str	w8, [sp, #16]
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, #0
	mov	x25, #0
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x20, x25, lsl #2]
	ldr	x9, [x19]
	and	x10, x24, #0xfffffff8
	add	x9, x9, x10, lsl #3
	ldr	x10, [x9]
	ubfiz	w11, w8, #2, #1
	lsl	x12, x22, #2
	str	w11, [x10, x12]
	lsl	w10, w8, #1
	ldr	x11, [x9, #8]
	and	w10, w10, #0x4
	str	w10, [x11, x12]
	and	w10, w8, #0x4
	ldr	x11, [x9, #16]
	str	w10, [x11, x12]
	lsr	w10, w8, #1
	and	w10, w10, #0x4
	ldr	x11, [x9, #24]
	str	w10, [x11, x12]
	lsr	w10, w8, #2
	and	w10, w10, #0x4
	ldr	x11, [x9, #32]
	str	w10, [x11, x12]
	lsr	w10, w8, #3
	and	w10, w10, #0x4
	ldr	x11, [x9, #40]
	str	w10, [x11, x12]
	lsr	w10, w8, #4
	and	w10, w10, #0x4
	ldr	x11, [x9, #48]
	str	w10, [x11, x12]
	lsr	w8, w8, #5
	and	w8, w8, #0x4
	ldr	x9, [x9, #56]
	add	x25, x25, #1
	str	w8, [x9, x12]
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	add	x24, x24, #8
	cmp	x25, w0, uxtw
	b.lo	LBB0_4
	b	LBB0_1
LBB0_5:
	mov	w0, #4
	bl	_BIT
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w9, [x8]
	orr	w9, w9, w0
	str	w9, [x8]
	ldr	x8, [sp, #24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	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
	add	sp, sp, #112
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IEC958_AES2_CON_CHANNEL,4,2    ; @IEC958_AES2_CON_CHANNEL
	.no_dead_strip	_dw_hdmi_create_cs
.subsections_via_symbols
