	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvt_cir_wake_ldev_init
_nvt_cir_wake_ldev_init:                ## @nvt_cir_wake_ldev_init
	.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	_LOGICAL_DEV_ACPI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_nvt_select_logical_dev
	movq	_LOGICAL_DEV_ENABLE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_CR_LOGICAL_DEV_EN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_nvt_cr_write
	movq	_CIR_WAKE_ENABLE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CR_ACPI_CIR_WAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_nvt_set_reg_bit
	movq	_CIR_INTR_MOUSE_IRQ_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CR_ACPI_IRQ_EVENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_nvt_set_reg_bit
	movq	_PME_INTR_CIR_PASS_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CR_ACPI_IRQ_EVENTS2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_nvt_set_reg_bit
	movq	_LOGICAL_DEV_CIR_WAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nvt_select_logical_dev
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_nvt_cr_write
	movl	(%rbx), %esi
	sarl	$8, %esi
	movq	_CR_CIR_BASE_ADDR_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_nvt_cr_write
	movzbl	(%rbx), %esi
	movq	_CR_CIR_BASE_ADDR_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_nvt_cr_write
	movl	4(%rbx), %esi
	movq	_CR_CIR_IRQ_RSRC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_nvt_cr_write
	movl	(%rbx), %esi
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvt_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LOGICAL_DEV_ACPI,4,2           ## @LOGICAL_DEV_ACPI
	.comm	_LOGICAL_DEV_ENABLE,4,2         ## @LOGICAL_DEV_ENABLE
	.comm	_CR_LOGICAL_DEV_EN,4,2          ## @CR_LOGICAL_DEV_EN
	.comm	_CIR_WAKE_ENABLE_BIT,4,2        ## @CIR_WAKE_ENABLE_BIT
	.comm	_CR_ACPI_CIR_WAKE,4,2           ## @CR_ACPI_CIR_WAKE
	.comm	_CIR_INTR_MOUSE_IRQ_BIT,4,2     ## @CIR_INTR_MOUSE_IRQ_BIT
	.comm	_CR_ACPI_IRQ_EVENTS,4,2         ## @CR_ACPI_IRQ_EVENTS
	.comm	_PME_INTR_CIR_PASS_BIT,4,2      ## @PME_INTR_CIR_PASS_BIT
	.comm	_CR_ACPI_IRQ_EVENTS2,4,2        ## @CR_ACPI_IRQ_EVENTS2
	.comm	_LOGICAL_DEV_CIR_WAKE,4,2       ## @LOGICAL_DEV_CIR_WAKE
	.comm	_CR_CIR_BASE_ADDR_HI,4,2        ## @CR_CIR_BASE_ADDR_HI
	.comm	_CR_CIR_BASE_ADDR_LO,4,2        ## @CR_CIR_BASE_ADDR_LO
	.comm	_CR_CIR_IRQ_RSRC,4,2            ## @CR_CIR_IRQ_RSRC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CIR Wake initialized, base io port address: 0x%lx, irq: %d"

	.no_dead_strip	_nvt_cir_wake_ldev_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvt_cir_wake_ldev_init
_nvt_cir_wake_ldev_init:                ; @nvt_cir_wake_ldev_init
	.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	x19, x0
Lloh0:
	adrp	x8, _LOGICAL_DEV_ACPI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOGICAL_DEV_ACPI@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_nvt_select_logical_dev
Lloh3:
	adrp	x20, _LOGICAL_DEV_ENABLE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _LOGICAL_DEV_ENABLE@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh5:
	adrp	x21, _CR_LOGICAL_DEV_EN@GOTPAGE
Lloh6:
	ldr	x21, [x21, _CR_LOGICAL_DEV_EN@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_nvt_cr_write
Lloh7:
	adrp	x8, _CIR_WAKE_ENABLE_BIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CIR_WAKE_ENABLE_BIT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _CR_ACPI_CIR_WAKE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CR_ACPI_CIR_WAKE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_nvt_set_reg_bit
Lloh13:
	adrp	x8, _CIR_INTR_MOUSE_IRQ_BIT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CIR_INTR_MOUSE_IRQ_BIT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _CR_ACPI_IRQ_EVENTS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CR_ACPI_IRQ_EVENTS@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_nvt_set_reg_bit
Lloh19:
	adrp	x8, _PME_INTR_CIR_PASS_BIT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PME_INTR_CIR_PASS_BIT@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _CR_ACPI_IRQ_EVENTS2@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CR_ACPI_IRQ_EVENTS2@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_nvt_set_reg_bit
Lloh25:
	adrp	x8, _LOGICAL_DEV_CIR_WAKE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LOGICAL_DEV_CIR_WAKE@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nvt_select_logical_dev
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_nvt_cr_write
	ldr	w8, [x19]
	asr	w1, w8, #8
Lloh28:
	adrp	x8, _CR_CIR_BASE_ADDR_HI@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CR_CIR_BASE_ADDR_HI@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_nvt_cr_write
	ldrb	w1, [x19]
Lloh31:
	adrp	x8, _CR_CIR_BASE_ADDR_LO@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CR_CIR_BASE_ADDR_LO@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_nvt_cr_write
	ldr	w1, [x19, #4]
Lloh34:
	adrp	x8, _CR_CIR_IRQ_RSRC@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CR_CIR_IRQ_RSRC@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_nvt_cr_write
	ldp	w1, w2, [x19]
Lloh37:
	adrp	x0, l_.str@PAGE
Lloh38:
	add	x0, x0, l_.str@PAGEOFF
	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	_nvt_dbg
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LOGICAL_DEV_ACPI,4,2           ; @LOGICAL_DEV_ACPI
	.comm	_LOGICAL_DEV_ENABLE,4,2         ; @LOGICAL_DEV_ENABLE
	.comm	_CR_LOGICAL_DEV_EN,4,2          ; @CR_LOGICAL_DEV_EN
	.comm	_CIR_WAKE_ENABLE_BIT,4,2        ; @CIR_WAKE_ENABLE_BIT
	.comm	_CR_ACPI_CIR_WAKE,4,2           ; @CR_ACPI_CIR_WAKE
	.comm	_CIR_INTR_MOUSE_IRQ_BIT,4,2     ; @CIR_INTR_MOUSE_IRQ_BIT
	.comm	_CR_ACPI_IRQ_EVENTS,4,2         ; @CR_ACPI_IRQ_EVENTS
	.comm	_PME_INTR_CIR_PASS_BIT,4,2      ; @PME_INTR_CIR_PASS_BIT
	.comm	_CR_ACPI_IRQ_EVENTS2,4,2        ; @CR_ACPI_IRQ_EVENTS2
	.comm	_LOGICAL_DEV_CIR_WAKE,4,2       ; @LOGICAL_DEV_CIR_WAKE
	.comm	_CR_CIR_BASE_ADDR_HI,4,2        ; @CR_CIR_BASE_ADDR_HI
	.comm	_CR_CIR_BASE_ADDR_LO,4,2        ; @CR_CIR_BASE_ADDR_LO
	.comm	_CR_CIR_IRQ_RSRC,4,2            ; @CR_CIR_IRQ_RSRC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CIR Wake initialized, base io port address: 0x%lx, irq: %d"

	.no_dead_strip	_nvt_cir_wake_ldev_init
.subsections_via_symbols
