	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__snd_ctl_add_slave             ## -- Begin function _snd_ctl_add_slave
	.p2align	4, 0x90
__snd_ctl_add_slave:                    ## @_snd_ctl_add_slave
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movl	(%r15), %eax
	leal	72(,%rax,4), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, 64(%rax)
	movups	(%r15), %xmm0
	movups	16(%r15), %xmm1
	movups	32(%r15), %xmm2
	movups	%xmm1, 32(%rax)
	movups	%xmm0, 16(%rax)
	movups	%xmm2, 48(%rax)
	movq	40(%rax), %rdi
	movq	24(%r15), %rsi
	movl	(%r15), %edx
	shll	$2, %edx
	callq	_memcpy
	movq	%r14, 8(%rbx)
	movl	%r12d, (%rbx)
	movq	_slave_info@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	_slave_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r15)
	movq	_slave_put@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	24(%r15), %rax
	movq	_SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_slave_tlv_cmd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
LBB0_4:
	movq	%rbx, 8(%r15)
	movq	_slave_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	addq	$4, %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_list_add_tail
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_slave_info,4,2                 ## @slave_info
	.comm	_slave_get,4,2                  ## @slave_get
	.comm	_slave_put,4,2                  ## @slave_put
	.comm	_SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,4,2 ## @SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK
	.comm	_slave_tlv_cmd,4,2              ## @slave_tlv_cmd
	.comm	_slave_free,4,2                 ## @slave_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__snd_ctl_add_slave             ; -- Begin function _snd_ctl_add_slave
	.p2align	2
__snd_ctl_add_slave:                    ; @_snd_ctl_add_slave
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x2
	mov	x19, x1
	bl	_snd_kcontrol_chip
	mov	x20, x0
	ldr	w8, [x19]
	lsl	w8, w8, #2
	add	w0, w8, #72
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	str	x19, [x0, #64]
	ldp	q2, q0, [x19, #16]
	ldr	q1, [x19]
	stp	q2, q0, [x0, #32]
	str	q1, [x0, #16]
	ldr	x0, [x0, #40]
	ldr	x1, [x19, #24]
	ldr	w8, [x19]
	lsl	w2, w8, #2
	bl	_memcpy
	str	x20, [x21, #8]
	str	w22, [x21]
Lloh3:
	adrp	x8, _slave_info@GOTPAGE
Lloh4:
	ldr	x8, [x8, _slave_info@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #40]
Lloh6:
	adrp	x8, _slave_get@GOTPAGE
Lloh7:
	ldr	x8, [x8, _slave_get@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _slave_put@GOTPAGE
Lloh10:
	ldr	x9, [x9, _slave_put@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh15:
	adrp	x8, _slave_tlv_cmd@GOTPAGE
Lloh16:
	ldr	x8, [x8, _slave_tlv_cmd@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_3:
	str	x21, [x19, #8]
Lloh18:
	adrp	x8, _slave_free@GOTPAGE
Lloh19:
	ldr	x8, [x8, _slave_free@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	add	x0, x21, #4
	mov	x1, x20
	bl	_list_add_tail
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_slave_info,4,2                 ; @slave_info
	.comm	_slave_get,4,2                  ; @slave_get
	.comm	_slave_put,4,2                  ; @slave_put
	.comm	_SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,4,2 ; @SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK
	.comm	_slave_tlv_cmd,4,2              ; @slave_tlv_cmd
	.comm	_slave_free,4,2                 ; @slave_free
.subsections_via_symbols
