	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxt5066_olpc_select_mic
_cxt5066_olpc_select_mic:               ## @cxt5066_olpc_select_mic
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %rbx
	cmpl	$0, 16(%rbx)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %r15
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.2:
	movl	$27, -80(%rbp)
	movq	_AC_VERB_SET_PIN_WIDGET_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movabsq	$128849018880, %rcx             ## imm = 0x1E00000000
	movq	%rcx, -72(%rbp)
	movl	%eax, -64(%rbp)
	movq	_PIN_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	$0, -56(%rbp)
	movl	$0, -48(%rbp)
	leaq	-80(%rbp), %rsi
	movq	%r15, %rdi
	callq	_snd_hda_sequence_write
	movq	%r15, %rdi
	callq	_cxt5066_set_olpc_dc_bias
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_11
## %bb.4:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movl	$30, %esi
	xorl	%edx, %edx
	callq	_snd_hda_set_pin_ctl
	cmpq	$0, (%rbx)
	movl	$0, %edx
	je	LBB0_7
## %bb.6:
	movq	_CXT5066_OLPC_EXT_MIC_BIAS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_7:
	movq	%r15, %rdi
	movl	$26, %esi
	callq	_snd_hda_set_pin_ctl
	cmpq	$0, (%rbx)
	jne	LBB0_9
## %bb.8:
	movq	_PIN_VREF80@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	movl	$27, %esi
	movl	%r14d, %edx
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_hda_set_pin_ctl            ## TAILCALL
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_VERB_SET_PIN_WIDGET_CONTROL,4,2 ## @AC_VERB_SET_PIN_WIDGET_CONTROL
	.comm	_PIN_IN,4,2                     ## @PIN_IN
	.comm	_CXT5066_OLPC_EXT_MIC_BIAS,4,2  ## @CXT5066_OLPC_EXT_MIC_BIAS
	.comm	_PIN_VREF80,4,2                 ## @PIN_VREF80
	.no_dead_strip	_cxt5066_olpc_select_mic
.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 cxt5066_olpc_select_mic
lCPI0_0:
	.long	0                               ; 0x0
	.long	30                              ; 0x1e
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_cxt5066_olpc_select_mic:               ; @cxt5066_olpc_select_mic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	x20, [x0]
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.2:
	mov	w8, #27
Lloh3:
	adrp	x9, _AC_VERB_SET_PIN_WIDGET_CONTROL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AC_VERB_SET_PIN_WIDGET_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
Lloh8:
	adrp	x8, _PIN_IN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PIN_IN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stp	w9, w8, [sp, #16]
	str	xzr, [sp, #24]
	str	wzr, [sp, #32]
	mov	x1, sp
	mov	x0, x19
	bl	_snd_hda_sequence_write
	mov	x0, x19
	bl	_cxt5066_set_olpc_dc_bias
LBB0_3:
	ldur	x8, [x29, #-24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	mov	x0, x19
	mov	w1, #30
	mov	w2, #0
	bl	_snd_hda_set_pin_ctl
	ldr	x8, [x20]
Lloh14:
	adrp	x9, _CXT5066_OLPC_EXT_MIC_BIAS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CXT5066_OLPC_EXT_MIC_BIAS@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w2, wzr, w9, eq
	mov	x0, x19
	mov	w1, #26
	bl	_snd_hda_set_pin_ctl
	ldr	x8, [x20]
Lloh17:
	adrp	x9, _PIN_VREF80@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PIN_VREF80@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w2, w9, wzr, eq
	ldur	x8, [x29, #-24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #27
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_snd_hda_set_pin_ctl
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdrp	Lloh6, Lloh8
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_VERB_SET_PIN_WIDGET_CONTROL,4,2 ; @AC_VERB_SET_PIN_WIDGET_CONTROL
	.comm	_PIN_IN,4,2                     ; @PIN_IN
	.comm	_CXT5066_OLPC_EXT_MIC_BIAS,4,2  ; @CXT5066_OLPC_EXT_MIC_BIAS
	.comm	_PIN_VREF80,4,2                 ; @PIN_VREF80
	.no_dead_strip	_cxt5066_olpc_select_mic
.subsections_via_symbols
