	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MT2063_ClearPowerMaskBits
_MT2063_ClearPowerMaskBits:             ## @MT2063_ClearPowerMaskBits
	.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
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_dprintk
	movq	_MT2063_ALL_SD@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	testl	$65280, %ebx                    ## imm = 0xFF00
	je	LBB0_1
## %bb.2:
	movl	%ebx, %eax
	shrl	$8, %eax
	notl	%eax
	movq	(%r14), %rcx
	movq	_MT2063_REG_PWR_2@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	leaq	(%rcx,%rsi,4), %rdx
	andl	%eax, (%rcx,%rsi,4)
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_mt2063_write
	movl	%eax, %r15d
	andl	$255, %ebx
	je	LBB0_5
LBB0_4:
	notl	%ebx
	movq	(%r14), %rax
	movq	_MT2063_REG_PWR_1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	leaq	(%rax,%rsi,4), %rdx
	andl	%ebx, (%rax,%rsi,4)
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_mt2063_write
	orl	%eax, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%r15d, %r15d
	andl	$255, %ebx
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_MT2063_ALL_SD,4,2              ## @MT2063_ALL_SD
	.comm	_MT2063_REG_PWR_2,8,3           ## @MT2063_REG_PWR_2
	.comm	_MT2063_REG_PWR_1,8,3           ## @MT2063_REG_PWR_1
	.no_dead_strip	_MT2063_ClearPowerMaskBits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MT2063_ClearPowerMaskBits
_MT2063_ClearPowerMaskBits:             ; @MT2063_ClearPowerMaskBits
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_dprintk
Lloh2:
	adrp	x8, _MT2063_ALL_SD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MT2063_ALL_SD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w21, w8, w20
	tst	w21, #0xff00
	b.eq	LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, _MT2063_REG_PWR_2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MT2063_REG_PWR_2@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh7:
	ldr	x1, [x8]
	add	x2, x9, x1, lsl #2
	ldr	w8, [x2]
	bic	w8, w8, w21, lsr #8
	str	w8, [x2]
	mov	x0, x19
	mov	w3, #1
	bl	_mt2063_write
	mov	x20, x0
	ands	w8, w21, #0xff
	b.eq	LBB0_3
LBB0_2:
Lloh8:
	adrp	x9, _MT2063_REG_PWR_1@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MT2063_REG_PWR_1@GOTPAGEOFF]
	ldr	x10, [x19]
Lloh10:
	ldr	x1, [x9]
	add	x2, x10, x1, lsl #2
	ldr	w9, [x2]
	bic	w8, w9, w8
	str	w8, [x2]
	mov	x0, x19
	mov	w3, #1
	bl	_mt2063_write
	orr	w20, w0, w20
LBB0_3:
	mov	x0, x20
	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
LBB0_4:
	mov	w20, #0
	ands	w8, w21, #0xff
	b.ne	LBB0_2
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_MT2063_ALL_SD,4,2              ; @MT2063_ALL_SD
	.comm	_MT2063_REG_PWR_2,8,3           ; @MT2063_REG_PWR_2
	.comm	_MT2063_REG_PWR_1,8,3           ; @MT2063_REG_PWR_1
	.no_dead_strip	_MT2063_ClearPowerMaskBits
.subsections_via_symbols
