	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ams_delta_cx20442_init
_ams_delta_cx20442_init:                ## @ams_delta_cx20442_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rax), %r15
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.4:
	movq	_ams_delta_startup@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ams_delta_ops@GOTPCREL(%rip), %rcx
	movl	%eax, 4(%rcx)
	movq	_ams_delta_shutdown@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	jmp	LBB0_5
LBB0_1:
	movq	_ams_delta_dai_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%rcx)
	jmp	LBB0_5
LBB0_3:
	movq	_ams_delta_digital_mute@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
LBB0_5:
	movq	_SND_SOC_BIAS_STANDBY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ams_delta_set_bias_level
	movq	_SND_JACK_HEADSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	_ams_delta_hook_switch@GOTPCREL(%rip), %rcx
	movq	%r15, %rdi
	callq	_snd_soc_jack_new
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
LBB0_7:
	movq	_ams_delta_hook_switch_gpios@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_ARRAY_SIZE
	movl	(%rbx), %edx
	movq	_ams_delta_hook_switch@GOTPCREL(%rip), %rdi
	movl	%eax, %esi
	callq	_snd_soc_jack_add_gpios
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
LBB0_9:
	movl	(%r15), %edi
	callq	_dev_warn
LBB0_10:
	movq	_N_V253@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_cx81801_ops@GOTPCREL(%rip), %rsi
	callq	_tty_register_ldisc
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_18
LBB0_12:
	movq	_ams_delta_dapm_widgets@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_snd_soc_dapm_new_controls
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_18
LBB0_14:
	movq	_ams_delta_audio_map@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_snd_soc_dapm_add_routes
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_18
LBB0_16:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_snd_soc_dapm_disable_pin
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_snd_soc_dapm_enable_pin
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_snd_soc_dapm_enable_pin
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	callq	_snd_soc_dapm_disable_pin
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	callq	_snd_soc_dapm_disable_pin
	leaq	L_.str.11(%rip), %rsi
	movq	%r14, %rdi
	callq	_snd_soc_dapm_disable_pin
	movq	%r14, %rdi
	callq	_snd_soc_dapm_sync
	movq	_ams_delta_audio_controls@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_snd_soc_add_controls
	testl	%eax, %eax
	je	LBB0_19
## %bb.17:
	leaq	L_.str.12(%rip), %rsi
LBB0_18:
	movl	(%r15), %edi
	callq	_dev_warn
LBB0_19:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ams_delta_dai_ops,8,3          ## @ams_delta_dai_ops
	.comm	_ams_delta_digital_mute,8,3     ## @ams_delta_digital_mute
	.comm	_ams_delta_startup,4,2          ## @ams_delta_startup
	.comm	_ams_delta_ops,8,2              ## @ams_delta_ops
	.comm	_ams_delta_shutdown,4,2         ## @ams_delta_shutdown
	.comm	_SND_SOC_BIAS_STANDBY,4,2       ## @SND_SOC_BIAS_STANDBY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hook_switch"

	.comm	_SND_JACK_HEADSET,4,2           ## @SND_JACK_HEADSET
	.comm	_ams_delta_hook_switch,4,2      ## @ams_delta_hook_switch
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate resources for hook switch, will continue without one.\n"

	.comm	_ams_delta_hook_switch_gpios,4,2 ## @ams_delta_hook_switch_gpios
L_.str.2:                               ## @.str.2
	.asciz	"Failed to set up hook switch GPIO line, will continue with hook switch inactive.\n"

	.comm	_N_V253,4,2                     ## @N_V253
	.comm	_cx81801_ops,4,2                ## @cx81801_ops
L_.str.3:                               ## @.str.3
	.asciz	"Failed to register line discipline, will continue without any controls.\n"

	.comm	_ams_delta_dapm_widgets,4,2     ## @ams_delta_dapm_widgets
L_.str.4:                               ## @.str.4
	.asciz	"Failed to register DAPM controls, will continue without any.\n"

	.comm	_ams_delta_audio_map,4,2        ## @ams_delta_audio_map
L_.str.5:                               ## @.str.5
	.asciz	"Failed to set up DAPM routes, will continue with codec default map.\n"

L_.str.6:                               ## @.str.6
	.asciz	"Mouthpiece"

L_.str.7:                               ## @.str.7
	.asciz	"Earpiece"

L_.str.8:                               ## @.str.8
	.asciz	"Microphone"

L_.str.9:                               ## @.str.9
	.asciz	"Speaker"

L_.str.10:                              ## @.str.10
	.asciz	"AGCIN"

L_.str.11:                              ## @.str.11
	.asciz	"AGCOUT"

	.comm	_ams_delta_audio_controls,4,2   ## @ams_delta_audio_controls
L_.str.12:                              ## @.str.12
	.asciz	"Failed to register audio mode control, will continue without it.\n"

	.no_dead_strip	_ams_delta_cx20442_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ams_delta_cx20442_init
_ams_delta_cx20442_init:                ; @ams_delta_cx20442_init
	.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	x20, x0
	ldp	x8, x9, [x0]
	ldr	x19, [x8]
	ldr	x8, [x9]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x9, [x8]
	cbz	x9, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _ams_delta_startup@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ams_delta_startup@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ams_delta_ops@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ams_delta_ops@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x10, _ams_delta_shutdown@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ams_delta_shutdown@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	stp	w10, w8, [x9]
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _ams_delta_dai_ops@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ams_delta_dai_ops@GOTPAGEOFF]
	str	x8, [x9]
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x9, _ams_delta_digital_mute@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ams_delta_digital_mute@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	str	x9, [x8]
LBB0_5:
Lloh13:
	adrp	x8, _SND_SOC_BIAS_STANDBY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SND_SOC_BIAS_STANDBY@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ams_delta_set_bias_level
Lloh16:
	adrp	x8, _SND_JACK_HEADSET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SND_JACK_HEADSET@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
Lloh21:
	adrp	x3, _ams_delta_hook_switch@GOTPAGE
Lloh22:
	ldr	x3, [x3, _ams_delta_hook_switch@GOTPAGEOFF]
	mov	x0, x19
	bl	_snd_soc_jack_new
	cbz	w0, LBB0_7
; %bb.6:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh25:
	adrp	x21, _ams_delta_hook_switch_gpios@GOTPAGE
Lloh26:
	ldr	x21, [x21, _ams_delta_hook_switch_gpios@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	w2, [x21]
Lloh27:
	adrp	x0, _ams_delta_hook_switch@GOTPAGE
Lloh28:
	ldr	x0, [x0, _ams_delta_hook_switch@GOTPAGEOFF]
	bl	_snd_soc_jack_add_gpios
	cbz	w0, LBB0_10
; %bb.8:
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	ldr	w0, [x19]
	bl	_dev_warn
LBB0_10:
Lloh31:
	adrp	x8, _N_V253@GOTPAGE
Lloh32:
	ldr	x8, [x8, _N_V253@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, _cx81801_ops@GOTPAGE
Lloh35:
	ldr	x1, [x1, _cx81801_ops@GOTPAGEOFF]
	bl	_tty_register_ldisc
	cbz	w0, LBB0_12
; %bb.11:
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_18
LBB0_12:
Lloh38:
	adrp	x8, _ams_delta_dapm_widgets@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ams_delta_dapm_widgets@GOTPAGEOFF]
Lloh40:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_snd_soc_dapm_new_controls
	cbz	w0, LBB0_14
; %bb.13:
Lloh41:
	adrp	x1, l_.str.4@PAGE
Lloh42:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_18
LBB0_14:
Lloh43:
	adrp	x8, _ams_delta_audio_map@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ams_delta_audio_map@GOTPAGEOFF]
Lloh45:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_snd_soc_dapm_add_routes
	cbz	w0, LBB0_16
; %bb.15:
Lloh46:
	adrp	x1, l_.str.5@PAGE
Lloh47:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_18
LBB0_16:
Lloh48:
	adrp	x1, l_.str.6@PAGE
Lloh49:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_snd_soc_dapm_disable_pin
Lloh50:
	adrp	x1, l_.str.7@PAGE
Lloh51:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_snd_soc_dapm_enable_pin
Lloh52:
	adrp	x1, l_.str.8@PAGE
Lloh53:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_snd_soc_dapm_enable_pin
Lloh54:
	adrp	x1, l_.str.9@PAGE
Lloh55:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_snd_soc_dapm_disable_pin
Lloh56:
	adrp	x1, l_.str.10@PAGE
Lloh57:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x20
	bl	_snd_soc_dapm_disable_pin
Lloh58:
	adrp	x1, l_.str.11@PAGE
Lloh59:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x20
	bl	_snd_soc_dapm_disable_pin
	mov	x0, x20
	bl	_snd_soc_dapm_sync
Lloh60:
	adrp	x8, _ams_delta_audio_controls@GOTPAGE
Lloh61:
	ldr	x8, [x8, _ams_delta_audio_controls@GOTPAGEOFF]
Lloh62:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_snd_soc_add_controls
	cbz	w0, LBB0_19
; %bb.17:
Lloh63:
	adrp	x1, l_.str.12@PAGE
Lloh64:
	add	x1, x1, l_.str.12@PAGEOFF
LBB0_18:
	ldr	w0, [x19]
	bl	_dev_warn
LBB0_19:
	mov	w0, #0
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_ams_delta_dai_ops,8,3          ; @ams_delta_dai_ops
	.comm	_ams_delta_digital_mute,8,3     ; @ams_delta_digital_mute
	.comm	_ams_delta_startup,4,2          ; @ams_delta_startup
	.comm	_ams_delta_ops,8,2              ; @ams_delta_ops
	.comm	_ams_delta_shutdown,4,2         ; @ams_delta_shutdown
	.comm	_SND_SOC_BIAS_STANDBY,4,2       ; @SND_SOC_BIAS_STANDBY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hook_switch"

	.comm	_SND_JACK_HEADSET,4,2           ; @SND_JACK_HEADSET
	.comm	_ams_delta_hook_switch,4,2      ; @ams_delta_hook_switch
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate resources for hook switch, will continue without one.\n"

	.comm	_ams_delta_hook_switch_gpios,4,2 ; @ams_delta_hook_switch_gpios
l_.str.2:                               ; @.str.2
	.asciz	"Failed to set up hook switch GPIO line, will continue with hook switch inactive.\n"

	.comm	_N_V253,4,2                     ; @N_V253
	.comm	_cx81801_ops,4,2                ; @cx81801_ops
l_.str.3:                               ; @.str.3
	.asciz	"Failed to register line discipline, will continue without any controls.\n"

	.comm	_ams_delta_dapm_widgets,4,2     ; @ams_delta_dapm_widgets
l_.str.4:                               ; @.str.4
	.asciz	"Failed to register DAPM controls, will continue without any.\n"

	.comm	_ams_delta_audio_map,4,2        ; @ams_delta_audio_map
l_.str.5:                               ; @.str.5
	.asciz	"Failed to set up DAPM routes, will continue with codec default map.\n"

l_.str.6:                               ; @.str.6
	.asciz	"Mouthpiece"

l_.str.7:                               ; @.str.7
	.asciz	"Earpiece"

l_.str.8:                               ; @.str.8
	.asciz	"Microphone"

l_.str.9:                               ; @.str.9
	.asciz	"Speaker"

l_.str.10:                              ; @.str.10
	.asciz	"AGCIN"

l_.str.11:                              ; @.str.11
	.asciz	"AGCOUT"

	.comm	_ams_delta_audio_controls,4,2   ; @ams_delta_audio_controls
l_.str.12:                              ; @.str.12
	.asciz	"Failed to register audio mode control, will continue without it.\n"

	.no_dead_strip	_ams_delta_cx20442_init
.subsections_via_symbols
