	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_cs8427_iec958_build        ## -- Begin function snd_cs8427_iec958_build
	.p2align	4, 0x90
_snd_cs8427_iec958_build:               ## @snd_cs8427_iec958_build
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	testq	%rsi, %rsi
	sete	%al
	testq	%rdx, %rdx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_1
## %bb.14:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_12:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_snd_cs8427_iec958_controls@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movq	_snd_cs8427_iec958_controls@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$4, %r14
	cmpq	%rax, %r15
	movq	%r13, %r12
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jae	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	addq	%r14, %rdi
	movq	%r12, %rsi
	callq	_snd_ctl_new1
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movq	8(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	(%r13), %eax
	movl	%eax, 4(%rbx)
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_snd_ctl_add
	testl	%eax, %eax
	js	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %r13
	movl	(%rbx), %r12d
	movq	_PLAYBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCM_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	callq	_SNDRV_CTL_NAME_IEC958
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	jmp	LBB0_8
LBB0_9:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, 8(%rcx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%rcx)
	xorl	%edi, %edi
	cmpq	$0, (%rcx)
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_snd_cs8427_iec958_controls,8,3 ## @snd_cs8427_iec958_controls
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_PLAYBACK,4,2                   ## @PLAYBACK
	.comm	_PCM_STREAM,4,2                 ## @PCM_STREAM
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_cs8427_iec958_build        ; -- Begin function snd_cs8427_iec958_build
	.p2align	2
_snd_cs8427_iec958_build:               ; @snd_cs8427_iec958_build
	.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	x20, x1
	mov	x21, x0
	ldr	x25, [x0, #8]
	cmp	x1, #0
	ccmp	x2, #0, #4, ne
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
LBB0_4:
Lloh2:
	adrp	x26, _snd_cs8427_iec958_controls@GOTPAGE
Lloh3:
	ldr	x26, [x26, _snd_cs8427_iec958_controls@GOTPAGEOFF]
	ldr	x0, [x26]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_11
; %bb.5:
	mov	x27, #0
	mov	x28, #0
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x28, x28, #1
	ldr	x0, [x26]
	bl	_ARRAY_SIZE
	add	x27, x27, #4
	cmp	x28, w0, uxtw
	b.hs	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	add	x0, x8, x27
	mov	x1, x21
	bl	_snd_ctl_new1
	cbz	x0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x23, x0
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	ldr	w9, [x20]
	stp	w9, w8, [x0, #4]
	ldr	x8, [x21]
	ldr	w0, [x8]
	mov	x1, x23
	bl	_snd_ctl_add
	tbnz	w0, #31, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w24, [x23]
Lloh6:
	adrp	x8, _PLAYBACK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PLAYBACK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _PCM_STREAM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCM_STREAM@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_SNDRV_CTL_NAME_IEC958
	mov	x1, x0
	mov	x0, x24
	bl	_strcmp
	cbnz	w0, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	str	x23, [x25]
	b	LBB0_6
LBB0_11:
	stp	x20, x19, [x25, #8]
	ldr	x8, [x25]
	cmp	x8, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_3
; %bb.12:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_2
LBB0_13:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_snd_cs8427_iec958_controls,8,3 ; @snd_cs8427_iec958_controls
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_PLAYBACK,4,2                   ; @PLAYBACK
	.comm	_PCM_STREAM,4,2                 ; @PCM_STREAM
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
