	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function micpath_event
_micpath_event:                         ## @micpath_event
	.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, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r12
	movl	(%rdi), %edi
	movq	_TWL4030_REG_ADCMICSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_twl4030_read_reg_cache
	movl	%eax, %r14d
	movl	(%rbx), %edi
	movq	_TWL4030_REG_MICBIAS_CTL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_twl4030_read_reg_cache
	cmpq	$0, (%r12)
	je	LBB0_4
## %bb.1:
	movq	_TWL4030_TX2IN_SEL@GOTPCREL(%rip), %rdx
	movq	_TWL4030_MICBIAS2_CTL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_TWL4030_TX1IN_SEL@GOTPCREL(%rip), %rdx
	movq	_TWL4030_MICBIAS1_CTL@GOTPCREL(%rip), %rcx
LBB0_2:
	movb	(%rcx), %cl
	testb	%r14b, (%rdx)
	je	LBB0_5
## %bb.3:
	orb	%al, %cl
	jmp	LBB0_6
LBB0_5:
	notb	%cl
	andb	%al, %cl
LBB0_6:
	movl	(%rbx), %edi
	movl	(%r15), %esi
	movzbl	%cl, %edx
	callq	_twl4030_write
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TWL4030_REG_ADCMICSEL,4,2      ## @TWL4030_REG_ADCMICSEL
	.comm	_TWL4030_REG_MICBIAS_CTL,4,2    ## @TWL4030_REG_MICBIAS_CTL
	.comm	_TWL4030_TX2IN_SEL,1,0          ## @TWL4030_TX2IN_SEL
	.comm	_TWL4030_MICBIAS2_CTL,1,0       ## @TWL4030_MICBIAS2_CTL
	.comm	_TWL4030_TX1IN_SEL,1,0          ## @TWL4030_TX1IN_SEL
	.comm	_TWL4030_MICBIAS1_CTL,1,0       ## @TWL4030_MICBIAS1_CTL
	.no_dead_strip	_micpath_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function micpath_event
_micpath_event:                         ; @micpath_event
	.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
	ldr	x8, [x0, #8]
	ldr	x22, [x8]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _TWL4030_REG_ADCMICSEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TWL4030_REG_ADCMICSEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_twl4030_read_reg_cache
	mov	x20, x0
	ldr	w0, [x19]
Lloh3:
	adrp	x21, _TWL4030_REG_MICBIAS_CTL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _TWL4030_REG_MICBIAS_CTL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_twl4030_read_reg_cache
	ldr	x8, [x22]
	cbz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _TWL4030_TX2IN_SEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TWL4030_TX2IN_SEL@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w20
Lloh7:
	adrp	x8, _TWL4030_MICBIAS2_CTL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TWL4030_MICBIAS2_CTL@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _TWL4030_TX1IN_SEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TWL4030_TX1IN_SEL@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w20
Lloh11:
	adrp	x8, _TWL4030_MICBIAS1_CTL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TWL4030_MICBIAS1_CTL@GOTPAGEOFF]
LBB0_3:
	ldrb	w8, [x8]
	bic	w9, w0, w8
	orr	w8, w8, w0
	csel	w2, w9, w8, eq
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_twl4030_write
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TWL4030_REG_ADCMICSEL,4,2      ; @TWL4030_REG_ADCMICSEL
	.comm	_TWL4030_REG_MICBIAS_CTL,4,2    ; @TWL4030_REG_MICBIAS_CTL
	.comm	_TWL4030_TX2IN_SEL,1,0          ; @TWL4030_TX2IN_SEL
	.comm	_TWL4030_MICBIAS2_CTL,1,0       ; @TWL4030_MICBIAS2_CTL
	.comm	_TWL4030_TX1IN_SEL,1,0          ; @TWL4030_TX1IN_SEL
	.comm	_TWL4030_MICBIAS1_CTL,1,0       ; @TWL4030_MICBIAS1_CTL
	.no_dead_strip	_micpath_event
.subsections_via_symbols
