	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amg88xx_set_power_on
_amg88xx_set_power_on:                  ## @amg88xx_set_power_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movq	_AMG88XX_REG_PCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AMG88XX_PCTL_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	$50, %edi
	callq	_msleep
	movl	(%rbx), %edi
	movq	_AMG88XX_REG_RST@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_AMG88XX_RST_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$3000, %esi                     ## imm = 0xBB8
	callq	_usleep_range
	movl	(%rbx), %edi
	movl	(%r14), %esi
	movq	_AMG88XX_RST_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	$200, %edi
	callq	_msleep
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMG88XX_REG_PCTL,4,2           ## @AMG88XX_REG_PCTL
	.comm	_AMG88XX_PCTL_NORMAL,4,2        ## @AMG88XX_PCTL_NORMAL
	.comm	_AMG88XX_REG_RST,4,2            ## @AMG88XX_REG_RST
	.comm	_AMG88XX_RST_INIT,4,2           ## @AMG88XX_RST_INIT
	.comm	_AMG88XX_RST_FLAG,4,2           ## @AMG88XX_RST_FLAG
	.no_dead_strip	_amg88xx_set_power_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amg88xx_set_power_on
_amg88xx_set_power_on:                  ; @amg88xx_set_power_on
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _AMG88XX_REG_PCTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMG88XX_REG_PCTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _AMG88XX_PCTL_NORMAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AMG88XX_PCTL_NORMAL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_regmap_write
	cbnz	w0, LBB0_4
; %bb.1:
	mov	w0, #50
	bl	_msleep
	ldr	w0, [x19]
Lloh6:
	adrp	x20, _AMG88XX_REG_RST@GOTPAGE
Lloh7:
	ldr	x20, [x20, _AMG88XX_REG_RST@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh8:
	adrp	x8, _AMG88XX_RST_INIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AMG88XX_RST_INIT@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_regmap_write
	cbnz	w0, LBB0_4
; %bb.2:
	mov	w0, #2000
	mov	w1, #3000
	bl	_usleep_range
	ldr	w0, [x19]
	ldr	w1, [x20]
Lloh11:
	adrp	x8, _AMG88XX_RST_FLAG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AMG88XX_RST_FLAG@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_regmap_write
	cbnz	w0, LBB0_4
; %bb.3:
	mov	w0, #200
	bl	_msleep
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AMG88XX_REG_PCTL,4,2           ; @AMG88XX_REG_PCTL
	.comm	_AMG88XX_PCTL_NORMAL,4,2        ; @AMG88XX_PCTL_NORMAL
	.comm	_AMG88XX_REG_RST,4,2            ; @AMG88XX_REG_RST
	.comm	_AMG88XX_RST_INIT,4,2           ; @AMG88XX_RST_INIT
	.comm	_AMG88XX_RST_FLAG,4,2           ; @AMG88XX_RST_FLAG
	.no_dead_strip	_amg88xx_set_power_on
.subsections_via_symbols
