	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad1981_parse_auto_config
_ad1981_parse_auto_config:              ## @ad1981_parse_auto_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_alloc_ad_spec
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	(%r14), %rdi
	movabsq	$68719476750, %rax              ## imm = 0x100000000E
	movq	%rax, (%rdi)
	movq	_HDA_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$13, %esi
	xorl	%edx, %edx
	callq	_set_beep_amp
	movq	_ad1981_fixup_tbl@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ad1981_fixups@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_snd_hda_pick_fixup
	movq	_HDA_FIXUP_ACT_PRE_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_snd_hda_apply_fixup
	movq	%r14, %rdi
	callq	_ad198x_parse_auto_config
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_ad1983_add_spdif_mux_ctl
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:
	movq	_HDA_FIXUP_ACT_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_snd_hda_apply_fixup
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_4:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_snd_hda_gen_free
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HDA_OUTPUT,4,2                 ## @HDA_OUTPUT
	.comm	_ad1981_fixup_tbl,4,2           ## @ad1981_fixup_tbl
	.comm	_ad1981_fixups,4,2              ## @ad1981_fixups
	.comm	_HDA_FIXUP_ACT_PRE_PROBE,4,2    ## @HDA_FIXUP_ACT_PRE_PROBE
	.comm	_HDA_FIXUP_ACT_PROBE,4,2        ## @HDA_FIXUP_ACT_PROBE
	.no_dead_strip	_ad1981_parse_auto_config
.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 ad1981_parse_auto_config
lCPI0_0:
	.long	14                              ; 0xe
	.long	16                              ; 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ad1981_parse_auto_config:              ; @ad1981_parse_auto_config
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_alloc_ad_spec
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x0, [x19]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0]
Lloh2:
	adrp	x8, _HDA_OUTPUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HDA_OUTPUT@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	w1, #13
	mov	w2, #0
	bl	_set_beep_amp
Lloh5:
	adrp	x8, _ad1981_fixup_tbl@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ad1981_fixup_tbl@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _ad1981_fixups@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ad1981_fixups@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, #0
	bl	_snd_hda_pick_fixup
Lloh11:
	adrp	x8, _HDA_FIXUP_ACT_PRE_PROBE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HDA_FIXUP_ACT_PRE_PROBE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_hda_apply_fixup
	mov	x0, x19
	bl	_ad198x_parse_auto_config
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_ad1983_add_spdif_mux_ctl
	tbnz	w0, #31, LBB0_5
; %bb.3:
Lloh14:
	adrp	x8, _HDA_FIXUP_ACT_PROBE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HDA_FIXUP_ACT_PROBE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_hda_apply_fixup
	mov	w20, #0
	b	LBB0_6
LBB0_4:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_5:
	mov	x20, x0
	mov	x0, x19
	bl	_snd_hda_gen_free
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HDA_OUTPUT,4,2                 ; @HDA_OUTPUT
	.comm	_ad1981_fixup_tbl,4,2           ; @ad1981_fixup_tbl
	.comm	_ad1981_fixups,4,2              ; @ad1981_fixups
	.comm	_HDA_FIXUP_ACT_PRE_PROBE,4,2    ; @HDA_FIXUP_ACT_PRE_PROBE
	.comm	_HDA_FIXUP_ACT_PROBE,4,2        ; @HDA_FIXUP_ACT_PROBE
	.no_dead_strip	_ad1981_parse_auto_config
.subsections_via_symbols
