	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function patch_ad1884_basic
_patch_ad1884_basic:                    ## @patch_ad1884_basic
	.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
	movq	%rdi, %r14
	callq	_alloc_ad_spec
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	16(%r14), %rbx
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_snd_hda_attach_beep_device
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_HDA_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movl	$16, %esi
	xorl	%edx, %edx
	callq	_set_beep_amp
	movl	$2, 80(%rbx)
	movq	_ad1884_dac_nids@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movq	%rax, 96(%rbx)
	movq	(%r12), %rax
	movq	%rax, 88(%rbx)
	movq	_AD1884_SPDIF_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%rbx)
	movq	_ad1884_adc_nids@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movq	%rax, 72(%rbx)
	movq	(%r12), %rax
	movq	%rax, 64(%rbx)
	movq	_ad1884_capsrc_nids@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	_ad1884_capture_source@GOTPCREL(%rip), %rax
	movq	%rax, 48(%rbx)
	movl	$1, (%rbx)
	movq	_ad1884_base_mixers@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	40(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	$1, 4(%rbx)
	movq	_ad1884_init_verbs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	32(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	$0, 24(%rbx)
	movl	$4, 8(%rbx)
	movq	_ad1884_slave_vols@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	$1, 12(%rbx)
	movq	_ad198x_patch_ops@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%r14)
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %r15d
	jmp	LBB0_5
LBB0_3:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_ad198x_free
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDA_OUTPUT,4,2                 ## @HDA_OUTPUT
	.comm	_ad1884_dac_nids,8,3            ## @ad1884_dac_nids
	.comm	_AD1884_SPDIF_OUT,4,2           ## @AD1884_SPDIF_OUT
	.comm	_ad1884_adc_nids,8,3            ## @ad1884_adc_nids
	.comm	_ad1884_capsrc_nids,4,2         ## @ad1884_capsrc_nids
	.comm	_ad1884_capture_source,4,2      ## @ad1884_capture_source
	.comm	_ad1884_base_mixers,4,2         ## @ad1884_base_mixers
	.comm	_ad1884_init_verbs,4,2          ## @ad1884_init_verbs
	.comm	_ad1884_slave_vols,4,2          ## @ad1884_slave_vols
	.comm	_ad198x_patch_ops,4,2           ## @ad198x_patch_ops
	.comm	_ad1884_loopbacks,4,2           ## @ad1884_loopbacks
	.no_dead_strip	_patch_ad1884_basic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function patch_ad1884_basic
lCPI0_0:
	.long	4                               ; 0x4
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_patch_ad1884_basic:                    ; @patch_ad1884_basic
	.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	x19, x0
	bl	_alloc_ad_spec
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x20, [x19, #16]
	mov	x0, x19
	mov	w1, #16
	bl	_snd_hda_attach_beep_device
	tbnz	w0, #31, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _HDA_OUTPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDA_OUTPUT@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #16
	mov	w2, #0
	bl	_set_beep_amp
	mov	w8, #2
	str	w8, [x20, #80]
Lloh3:
	adrp	x21, _ad1884_dac_nids@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ad1884_dac_nids@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _AD1884_SPDIF_OUT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AD1884_SPDIF_OUT@GOTPAGEOFF]
	stp	x8, x0, [x20, #88]
Lloh7:
	ldr	w8, [x9]
	str	w8, [x20, #84]
Lloh8:
	adrp	x22, _ad1884_adc_nids@GOTPAGE
Lloh9:
	ldr	x22, [x22, _ad1884_adc_nids@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	mov	w21, #0
Lloh10:
	adrp	x8, _ad1884_capsrc_nids@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ad1884_capsrc_nids@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x20, #56]
	mov	w8, #1
Lloh13:
	adrp	x9, _ad1884_base_mixers@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ad1884_base_mixers@GOTPAGEOFF]
	str	w8, [x20]
Lloh15:
	ldr	w9, [x9]
	ldp	x11, x10, [x20, #32]
	str	w9, [x10]
	ldr	x9, [x22]
	stp	x9, x0, [x20, #64]
Lloh16:
	adrp	x9, _ad1884_capture_source@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ad1884_capture_source@GOTPAGEOFF]
	str	x9, [x20, #48]
	str	w8, [x20, #4]
Lloh18:
	adrp	x8, _ad1884_init_verbs@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ad1884_init_verbs@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x11]
Lloh21:
	adrp	x8, _ad1884_slave_vols@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ad1884_slave_vols@GOTPAGEOFF]
	str	xzr, [x20, #24]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh24:
	adrp	x8, lCPI0_0@PAGE
Lloh25:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20, #8]
Lloh26:
	adrp	x8, _ad198x_patch_ops@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ad198x_patch_ops@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	movi.2s	v0, #1
	str	d0, [x19]
	b	LBB0_5
LBB0_3:
	mov	x21, x0
	b	LBB0_5
LBB0_4:
	mov	x21, x0
	mov	x0, x19
	bl	_ad198x_free
LBB0_5:
	mov	x0, x21
	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	Lloh26, Lloh27, Lloh28
	.loh AdrpAdrp	Lloh24, Lloh26
	.loh AdrpLdr	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HDA_OUTPUT,4,2                 ; @HDA_OUTPUT
	.comm	_ad1884_dac_nids,8,3            ; @ad1884_dac_nids
	.comm	_AD1884_SPDIF_OUT,4,2           ; @AD1884_SPDIF_OUT
	.comm	_ad1884_adc_nids,8,3            ; @ad1884_adc_nids
	.comm	_ad1884_capsrc_nids,4,2         ; @ad1884_capsrc_nids
	.comm	_ad1884_capture_source,4,2      ; @ad1884_capture_source
	.comm	_ad1884_base_mixers,4,2         ; @ad1884_base_mixers
	.comm	_ad1884_init_verbs,4,2          ; @ad1884_init_verbs
	.comm	_ad1884_slave_vols,4,2          ; @ad1884_slave_vols
	.comm	_ad198x_patch_ops,4,2           ; @ad198x_patch_ops
	.comm	_ad1884_loopbacks,4,2           ; @ad1884_loopbacks
	.no_dead_strip	_patch_ad1884_basic
.subsections_via_symbols
