	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MT2063_SoftwareShutdown
_MT2063_SoftwareShutdown:               ## @MT2063_SoftwareShutdown
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_dprintk
	movq	(%rbx), %rax
	movq	_MT2063_REG_PWR_1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	leaq	(%rax,%rsi,4), %rdx
	movl	(%rax,%rsi,4), %eax
	cmpl	$1, %r14d
	jne	LBB0_1
## %bb.2:
	orl	$4, %eax
	movl	%eax, (%rdx)
	movq	%rbx, %rdi
	movl	$1, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt2063_write                   ## TAILCALL
LBB0_1:
	andl	$-5, %eax
	movl	%eax, (%rdx)
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_mt2063_write
	movl	%eax, %r14d
	movq	(%rbx), %rax
	movq	_MT2063_REG_BYP_CTRL@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	leaq	(%rax,%rsi,4), %rdx
	movl	$159, %ecx
	andl	(%rax,%rsi,4), %ecx
	orl	$64, %ecx
	movl	%ecx, (%rax,%rsi,4)
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_mt2063_write
	movl	%eax, %r15d
	orl	%r14d, %r15d
	movq	(%rbx), %rax
	movq	(%r12), %rsi
	leaq	(%rax,%rsi,4), %rdx
	andl	$159, (%rax,%rsi,4)
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_mt2063_write
	orl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_MT2063_REG_PWR_1,8,3           ## @MT2063_REG_PWR_1
	.comm	_MT2063_REG_BYP_CTRL,8,3        ## @MT2063_REG_BYP_CTRL
	.no_dead_strip	_MT2063_SoftwareShutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MT2063_SoftwareShutdown
_MT2063_SoftwareShutdown:               ; @MT2063_SoftwareShutdown
	.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
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _MT2063_REG_PWR_1@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MT2063_REG_PWR_1@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x9]
	add	x2, x8, x1, lsl #2
	ldr	w8, [x2]
	cmp	w20, #1
	b.ne	LBB0_2
; %bb.1:
	orr	w8, w8, #0x4
	str	w8, [x2]
	mov	x0, x19
	mov	w3, #1
	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	_mt2063_write
LBB0_2:
	and	w8, w8, #0xfffffffb
	str	w8, [x2]
	mov	x0, x19
	mov	w3, #1
	bl	_mt2063_write
	mov	x20, x0
	ldr	x8, [x19]
Lloh5:
	adrp	x21, _MT2063_REG_BYP_CTRL@GOTPAGE
Lloh6:
	ldr	x21, [x21, _MT2063_REG_BYP_CTRL@GOTPAGEOFF]
	ldr	x1, [x21]
	add	x2, x8, x1, lsl #2
	ldr	w8, [x2]
	mov	w22, #159
	and	w8, w8, w22
	orr	w8, w8, #0x40
	str	w8, [x2]
	mov	x0, x19
	mov	w3, #1
	bl	_mt2063_write
	orr	w20, w0, w20
	ldr	x8, [x19]
	ldr	x1, [x21]
	add	x2, x8, x1, lsl #2
	ldr	w8, [x2]
	and	w8, w8, w22
	str	w8, [x2]
	mov	x0, x19
	mov	w3, #1
	bl	_mt2063_write
	orr	w0, w20, w0
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_MT2063_REG_PWR_1,8,3           ; @MT2063_REG_PWR_1
	.comm	_MT2063_REG_BYP_CTRL,8,3        ; @MT2063_REG_BYP_CTRL
	.no_dead_strip	_MT2063_SoftwareShutdown
.subsections_via_symbols
