	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fintek_enable_wake
_fintek_enable_wake:                    ## @fintek_enable_wake
	.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
	callq	_fintek_config_mode_enable
	movq	_LOGICAL_DEV_ACPI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_fintek_select_logical_dev
	movq	_ACPI_WAKE_EN_CIR_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LDEV_ACPI_WAKE_EN_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_fintek_set_reg_bit
	movq	_ACPI_PME_CIR_BIT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_LDEV_ACPI_PME_EN_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_fintek_set_reg_bit
	movl	(%r14), %esi
	movq	_LDEV_ACPI_PME_CLR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_fintek_set_reg_bit
	movq	_ACPI_STATE_CIR_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LDEV_ACPI_STATE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_fintek_set_reg_bit
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fintek_config_mode_disable     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LOGICAL_DEV_ACPI,4,2           ## @LOGICAL_DEV_ACPI
	.comm	_ACPI_WAKE_EN_CIR_BIT,4,2       ## @ACPI_WAKE_EN_CIR_BIT
	.comm	_LDEV_ACPI_WAKE_EN_REG,4,2      ## @LDEV_ACPI_WAKE_EN_REG
	.comm	_ACPI_PME_CIR_BIT,4,2           ## @ACPI_PME_CIR_BIT
	.comm	_LDEV_ACPI_PME_EN_REG,4,2       ## @LDEV_ACPI_PME_EN_REG
	.comm	_LDEV_ACPI_PME_CLR_REG,4,2      ## @LDEV_ACPI_PME_CLR_REG
	.comm	_ACPI_STATE_CIR_BIT,4,2         ## @ACPI_STATE_CIR_BIT
	.comm	_LDEV_ACPI_STATE_REG,4,2        ## @LDEV_ACPI_STATE_REG
	.no_dead_strip	_fintek_enable_wake
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fintek_enable_wake
_fintek_enable_wake:                    ; @fintek_enable_wake
	.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
	bl	_fintek_config_mode_enable
Lloh0:
	adrp	x8, _LOGICAL_DEV_ACPI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOGICAL_DEV_ACPI@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_fintek_select_logical_dev
Lloh3:
	adrp	x8, _ACPI_WAKE_EN_CIR_BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_WAKE_EN_CIR_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _LDEV_ACPI_WAKE_EN_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDEV_ACPI_WAKE_EN_REG@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_fintek_set_reg_bit
Lloh9:
	adrp	x20, _ACPI_PME_CIR_BIT@GOTPAGE
Lloh10:
	ldr	x20, [x20, _ACPI_PME_CIR_BIT@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh11:
	adrp	x8, _LDEV_ACPI_PME_EN_REG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LDEV_ACPI_PME_EN_REG@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_fintek_set_reg_bit
	ldr	w1, [x20]
Lloh14:
	adrp	x8, _LDEV_ACPI_PME_CLR_REG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LDEV_ACPI_PME_CLR_REG@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_fintek_set_reg_bit
Lloh17:
	adrp	x8, _ACPI_STATE_CIR_BIT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ACPI_STATE_CIR_BIT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _LDEV_ACPI_STATE_REG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LDEV_ACPI_STATE_REG@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_fintek_set_reg_bit
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_fintek_config_mode_disable
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LOGICAL_DEV_ACPI,4,2           ; @LOGICAL_DEV_ACPI
	.comm	_ACPI_WAKE_EN_CIR_BIT,4,2       ; @ACPI_WAKE_EN_CIR_BIT
	.comm	_LDEV_ACPI_WAKE_EN_REG,4,2      ; @LDEV_ACPI_WAKE_EN_REG
	.comm	_ACPI_PME_CIR_BIT,4,2           ; @ACPI_PME_CIR_BIT
	.comm	_LDEV_ACPI_PME_EN_REG,4,2       ; @LDEV_ACPI_PME_EN_REG
	.comm	_LDEV_ACPI_PME_CLR_REG,4,2      ; @LDEV_ACPI_PME_CLR_REG
	.comm	_ACPI_STATE_CIR_BIT,4,2         ; @ACPI_STATE_CIR_BIT
	.comm	_LDEV_ACPI_STATE_REG,4,2        ; @LDEV_ACPI_STATE_REG
	.no_dead_strip	_fintek_enable_wake
.subsections_via_symbols
