	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_deemphasis
_build_deemphasis:                      ## @build_deemphasis
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	jle	LBB0_10
## %bb.1:
	movq	%rdi, %r14
	movl	%esi, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$4, %r13d
	xorl	%r12d, %r12d
	leaq	LJTI0_0(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	leaq	L_.str(%rip), %rax
	movq	%rax, -96(%rbp)
	movq	8(%r14), %rax
	addq	%r12, %rax
	movq	%rax, -56(%rbp)
	movq	_SNDRV_CTL_ELEM_IFACE_MIXER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movl	$1, -88(%rbp)
	movq	_snd_akm4xxx_deemphasis_info@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_snd_akm4xxx_deemphasis_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	_snd_akm4xxx_deemphasis_put@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r15,%rax,4), %rax
	addq	%r15, %rax
	jmpq	*%rax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %edi
	movl	$3, %esi
	xorl	%edx, %edx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	callq	_AK_COMPOSE
	movq	%rax, -80(%rbp)
	movl	4(%r14), %ebx
	leaq	-96(%rbp), %rdi
	movq	%r14, %rsi
	callq	_snd_ctl_new1
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_snd_ctl_add
	testl	%eax, %eax
	js	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	addl	$-2, %r13d
	cmpq	%r12, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_2
	jmp	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$3, %r12
	movl	%r13d, %edx
	movl	$6, %eax
	cmovel	%eax, %edx
	xorl	%edi, %edi
	movl	$8, %esi
	jmp	LBB0_5
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %edi
	movl	$1, %esi
	movl	$1, %edx
	jmp	LBB0_5
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Deemphasis"

	.comm	_SNDRV_CTL_ELEM_IFACE_MIXER,4,2 ## @SNDRV_CTL_ELEM_IFACE_MIXER
	.comm	_snd_akm4xxx_deemphasis_info,4,2 ## @snd_akm4xxx_deemphasis_info
	.comm	_snd_akm4xxx_deemphasis_get,4,2 ## @snd_akm4xxx_deemphasis_get
	.comm	_snd_akm4xxx_deemphasis_put,4,2 ## @snd_akm4xxx_deemphasis_put
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_build_deemphasis
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_deemphasis
_build_deemphasis:                      ; @build_deemphasis
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	cmp	w1, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x0
	mov	x20, #0
	mov	w22, w1
	mov	w23, #4
Lloh0:
	adrp	x26, _snd_akm4xxx_deemphasis_info@GOTPAGE
Lloh1:
	ldr	x26, [x26, _snd_akm4xxx_deemphasis_info@GOTPAGEOFF]
Lloh2:
	adrp	x27, _snd_akm4xxx_deemphasis_get@GOTPAGE
Lloh3:
	ldr	x27, [x27, _snd_akm4xxx_deemphasis_get@GOTPAGEOFF]
	mov	w28, #1
Lloh4:
	adrp	x24, _snd_akm4xxx_deemphasis_put@GOTPAGE
Lloh5:
	ldr	x24, [x24, _snd_akm4xxx_deemphasis_put@GOTPAGEOFF]
Lloh6:
	adrp	x25, lJTI0_0@PAGE
Lloh7:
	add	x25, x25, lJTI0_0@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, sp
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldr	x8, [x19, #8]
	add	x8, x20, x8
	str	x8, [sp, #40]
Lloh8:
	adrp	x8, _SNDRV_CTL_ELEM_IFACE_MIXER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SNDRV_CTL_ELEM_IFACE_MIXER@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x8]
	ldr	w8, [x26]
	ldr	w9, [x27]
	stp	w8, w10, [sp, #32]
	ldr	w8, [x24]
	str	w28, [sp, #8]
	stp	w8, w9, [sp, #24]
	ldr	w8, [x19]
	sub	w8, w8, #128
Lloh11:
	adrp	x9, l_.str@PAGE
Lloh12:
	add	x9, x9, l_.str@PAGEOFF
	str	x9, [sp]
	cmp	w8, #5
	b.hi	LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x9, LBB0_4
	ldrb	w10, [x25, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	w1, #3
	mov	w2, #0
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w3, #0
	bl	_AK_COMPOSE
	str	x0, [sp, #16]
	ldr	w21, [x19, #4]
	mov	x0, sp
	mov	x1, x19
	bl	_snd_ctl_new1
	mov	x1, x0
	mov	x0, x21
	bl	_snd_ctl_add
	tbnz	w0, #31, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	sub	w23, w23, #2
	cmp	x22, x20
	b.ne	LBB0_2
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	x20, #3
	mov	w8, #6
	csel	w2, w8, w23, eq
	mov	w0, #0
	mov	w1, #8
	b	LBB0_5
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	w1, #1
	mov	w2, #1
	b	LBB0_5
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_11:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Deemphasis"

	.comm	_SNDRV_CTL_ELEM_IFACE_MIXER,4,2 ; @SNDRV_CTL_ELEM_IFACE_MIXER
	.comm	_snd_akm4xxx_deemphasis_info,4,2 ; @snd_akm4xxx_deemphasis_info
	.comm	_snd_akm4xxx_deemphasis_get,4,2 ; @snd_akm4xxx_deemphasis_get
	.comm	_snd_akm4xxx_deemphasis_put,4,2 ; @snd_akm4xxx_deemphasis_put
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_build_deemphasis
.subsections_via_symbols
