	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_frontend_power          ## -- Begin function mantis_frontend_power
	.p2align	4, 0x90
_mantis_frontend_power:                 ## @mantis_frontend_power
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	cmpl	$129, %esi
	je	LBB0_3
## %bb.1:
	movl	%esi, %ecx
	movq	_MANTIS_DEBUG@GOTPCREL(%rip), %rax
	cmpl	$128, %esi
	jne	LBB0_5
## %bb.2:
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$128, %edx
	callq	_mantis_gpio_set_bits
	movl	$100, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$128, %edx
	jmp	LBB0_4
LBB0_3:
	movq	_MANTIS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rdx
	xorl	%r14d, %r14d
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$129, %edx
LBB0_4:
	callq	_mantis_gpio_set_bits
	movl	$100, %edi
	callq	_msleep
	jmp	LBB0_6
LBB0_5:
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rdx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movl	$-1, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MANTIS_DEBUG,4,2               ## @MANTIS_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Power ON"

L_.str.1:                               ## @.str.1
	.asciz	"Power OFF"

L_.str.2:                               ## @.str.2
	.asciz	"Unknown state <%02x>"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_frontend_power          ; -- Begin function mantis_frontend_power
	.p2align	2
_mantis_frontend_power:                 ; @mantis_frontend_power
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _MANTIS_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MANTIS_DEBUG@GOTPAGEOFF]
	cmp	w1, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #128
	b.ne	LBB0_5
; %bb.2:
	ldr	w0, [x8]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #128
	bl	_mantis_gpio_set_bits
	mov	w0, #100
	bl	_msleep
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #128
	b	LBB0_4
LBB0_3:
	ldr	w0, [x8]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #129
LBB0_4:
	bl	_mantis_gpio_set_bits
	mov	w0, #100
	bl	_msleep
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	w0, [x8]
	str	x1, [sp]
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MANTIS_DEBUG,4,2               ; @MANTIS_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Power ON"

l_.str.1:                               ; @.str.1
	.asciz	"Power OFF"

l_.str.2:                               ; @.str.2
	.asciz	"Unknown state <%02x>"

.subsections_via_symbols
