	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mic_set_reg_on
_mic_set_reg_on:                        ## @mic_set_reg_on
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_MIC_OP@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_MIC_MODE_SEL_MASK@GOTPCREL(%rip), %rcx
	movq	_MIC_CORE_VER_CONTROL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_MIC_PSR_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%edx, %eax
	movq	_MIC_CORE_EN@GOTPCREL(%rip), %rcx
	movq	_MIC_BS_CHG_OUT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	orl	%eax, %edi
	movq	_MIC_ON_REG@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_MIC_MODE_SEL_COMMAND_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	notl	%ecx
	andl	%edi, %ecx
	orl	%eax, %edi
	cmpq	$0, 8(%r14)
	cmovel	%ecx, %edi
	jmp	LBB0_3
LBB0_2:
	movq	_MIC_CORE_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, %edi
LBB0_3:
	movq	_MIC_UPD_REG@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MIC_OP,8,3                     ## @MIC_OP
	.comm	_MIC_MODE_SEL_MASK,4,2          ## @MIC_MODE_SEL_MASK
	.comm	_MIC_CORE_VER_CONTROL,4,2       ## @MIC_CORE_VER_CONTROL
	.comm	_MIC_PSR_EN,4,2                 ## @MIC_PSR_EN
	.comm	_MIC_CORE_EN,4,2                ## @MIC_CORE_EN
	.comm	_MIC_BS_CHG_OUT,4,2             ## @MIC_BS_CHG_OUT
	.comm	_MIC_ON_REG,4,2                 ## @MIC_ON_REG
	.comm	_MIC_MODE_SEL_COMMAND_MODE,4,2  ## @MIC_MODE_SEL_COMMAND_MODE
	.comm	_MIC_UPD_REG,4,2                ## @MIC_UPD_REG
	.no_dead_strip	_mic_set_reg_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mic_set_reg_on
_mic_set_reg_on:                        ; @mic_set_reg_on
	.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, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _MIC_OP@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MIC_OP@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	cbz	w20, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _MIC_MODE_SEL_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MIC_MODE_SEL_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _MIC_CORE_VER_CONTROL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MIC_CORE_VER_CONTROL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _MIC_PSR_EN@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MIC_PSR_EN@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh10:
	ldr	w9, [x10]
	orr	w8, w8, w9
	bic	w8, w0, w8
Lloh11:
	adrp	x9, _MIC_CORE_EN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MIC_CORE_EN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _MIC_BS_CHG_OUT@GOTPAGE
Lloh15:
	ldr	x10, [x10, _MIC_BS_CHG_OUT@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x11, _MIC_ON_REG@GOTPAGE
Lloh18:
	ldr	x11, [x11, _MIC_ON_REG@GOTPAGEOFF]
	orr	w9, w10, w9
Lloh19:
	ldr	w10, [x11]
	orr	w8, w9, w8
	orr	w8, w8, w10
Lloh20:
	adrp	x9, _MIC_MODE_SEL_COMMAND_MODE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MIC_MODE_SEL_COMMAND_MODE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	bic	w10, w8, w9
	ldr	x11, [x19, #8]
	orr	w8, w8, w9
	cmp	x11, #0
	csel	w8, w10, w8, eq
	b	LBB0_3
LBB0_2:
Lloh23:
	adrp	x8, _MIC_CORE_EN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MIC_CORE_EN@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	bic	w8, w0, w8
LBB0_3:
Lloh26:
	adrp	x9, _MIC_UPD_REG@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MIC_UPD_REG@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	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
	b	_writel
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MIC_OP,8,3                     ; @MIC_OP
	.comm	_MIC_MODE_SEL_MASK,4,2          ; @MIC_MODE_SEL_MASK
	.comm	_MIC_CORE_VER_CONTROL,4,2       ; @MIC_CORE_VER_CONTROL
	.comm	_MIC_PSR_EN,4,2                 ; @MIC_PSR_EN
	.comm	_MIC_CORE_EN,4,2                ; @MIC_CORE_EN
	.comm	_MIC_BS_CHG_OUT,4,2             ; @MIC_BS_CHG_OUT
	.comm	_MIC_ON_REG,4,2                 ; @MIC_ON_REG
	.comm	_MIC_MODE_SEL_COMMAND_MODE,4,2  ; @MIC_MODE_SEL_COMMAND_MODE
	.comm	_MIC_UPD_REG,4,2                ; @MIC_UPD_REG
	.no_dead_strip	_mic_set_reg_on
.subsections_via_symbols
