	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxt5051_init
_cxt5051_init:                          ## @cxt5051_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	callq	_conexant_init
	movl	(%r14), %eax
	movq	_AUTO_MIC_PORTB@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_CXT5051_PORTB_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$23, %esi
	callq	_cxt5051_init_mic_port
	movl	(%r14), %eax
LBB0_2:
	movq	_AUTO_MIC_PORTC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_CXT5051_PORTC_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_cxt5051_init_mic_port
LBB0_4:
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_cxt5051_hp_automute
	movq	%rbx, %rdi
	callq	_cxt5051_portb_automic
	movq	%rbx, %rdi
	callq	_cxt5051_portc_automic
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTO_MIC_PORTB,4,2             ## @AUTO_MIC_PORTB
	.comm	_CXT5051_PORTB_EVENT,4,2        ## @CXT5051_PORTB_EVENT
	.comm	_AUTO_MIC_PORTC,4,2             ## @AUTO_MIC_PORTC
	.comm	_CXT5051_PORTC_EVENT,4,2        ## @CXT5051_PORTC_EVENT
	.no_dead_strip	_cxt5051_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxt5051_init
_cxt5051_init:                          ; @cxt5051_init
	.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
	ldr	x20, [x0, #8]
	bl	_conexant_init
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _AUTO_MIC_PORTB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AUTO_MIC_PORTB@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _CXT5051_PORTB_EVENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CXT5051_PORTB_EVENT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #23
	bl	_cxt5051_init_mic_port
	ldr	w8, [x20]
LBB0_2:
Lloh6:
	adrp	x9, _AUTO_MIC_PORTC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AUTO_MIC_PORTC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _CXT5051_PORTC_EVENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CXT5051_PORTC_EVENT@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_cxt5051_init_mic_port
LBB0_4:
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_cxt5051_hp_automute
	mov	x0, x19
	bl	_cxt5051_portb_automic
	mov	x0, x19
	bl	_cxt5051_portc_automic
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTO_MIC_PORTB,4,2             ; @AUTO_MIC_PORTB
	.comm	_CXT5051_PORTB_EVENT,4,2        ; @CXT5051_PORTB_EVENT
	.comm	_AUTO_MIC_PORTC,4,2             ; @AUTO_MIC_PORTC
	.comm	_CXT5051_PORTC_EVENT,4,2        ; @CXT5051_PORTC_EVENT
	.no_dead_strip	_cxt5051_init
.subsections_via_symbols
