	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvt_cir_ldev_init
_nvt_cir_ldev_init:                     ## @nvt_cir_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_is_w83667hg
	movq	_OUTPUT_ENABLE_CIR@GOTPCREL(%rip), %rcx
	movq	_MULTIFUNC_ENABLE_CIR@GOTPCREL(%rip), %rdx
	movq	_OUTPUT_ENABLE_CIRWB@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movq	_MULTIFUNC_ENABLE_CIRWB@GOTPCREL(%rip), %rdi
	orl	(%rcx), %esi
	movl	(%rdi), %r12d
	orl	(%rdx), %r12d
	testq	%rax, %rax
	movq	_MULTIFUNC_PIN_SEL_MASK@GOTPCREL(%rip), %rax
	cmoveq	_OUTPUT_PIN_SEL_MASK@GOTPCREL(%rip), %rax
	cmovel	%esi, %r12d
	movl	(%rax), %ebx
	movq	_CR_MULTIFUNC_PIN_SEL@GOTPCREL(%rip), %rax
	cmoveq	_CR_OUTPUT_PIN_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_nvt_cr_read
	andl	%eax, %ebx
	orl	%r12d, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_nvt_cr_write
	movq	_LOGICAL_DEV_CIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_nvt_select_logical_dev
	leaq	4(%r14), %rsi
	movq	%r14, %rdi
	callq	_nvt_set_ioaddr
	movl	(%r14), %esi
	movq	_CR_CIR_IRQ_RSRC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_nvt_cr_write
	movl	(%r14), %edx
	movl	4(%r14), %esi
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvt_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CR_MULTIFUNC_PIN_SEL,4,2       ## @CR_MULTIFUNC_PIN_SEL
	.comm	_MULTIFUNC_PIN_SEL_MASK,4,2     ## @MULTIFUNC_PIN_SEL_MASK
	.comm	_MULTIFUNC_ENABLE_CIR,4,2       ## @MULTIFUNC_ENABLE_CIR
	.comm	_MULTIFUNC_ENABLE_CIRWB,4,2     ## @MULTIFUNC_ENABLE_CIRWB
	.comm	_CR_OUTPUT_PIN_SEL,4,2          ## @CR_OUTPUT_PIN_SEL
	.comm	_OUTPUT_PIN_SEL_MASK,4,2        ## @OUTPUT_PIN_SEL_MASK
	.comm	_OUTPUT_ENABLE_CIR,4,2          ## @OUTPUT_ENABLE_CIR
	.comm	_OUTPUT_ENABLE_CIRWB,4,2        ## @OUTPUT_ENABLE_CIRWB
	.comm	_LOGICAL_DEV_CIR,4,2            ## @LOGICAL_DEV_CIR
	.comm	_CR_CIR_IRQ_RSRC,4,2            ## @CR_CIR_IRQ_RSRC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CIR initialized, base io port address: 0x%lx, irq: %d"

	.no_dead_strip	_nvt_cir_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_ldev_init
_nvt_cir_ldev_init:                     ; @nvt_cir_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
	bl	_is_w83667hg
Lloh0:
	adrp	x8, _OUTPUT_ENABLE_CIR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OUTPUT_ENABLE_CIR@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MULTIFUNC_ENABLE_CIR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MULTIFUNC_ENABLE_CIR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _OUTPUT_ENABLE_CIRWB@GOTPAGE
Lloh7:
	ldr	x10, [x10, _OUTPUT_ENABLE_CIRWB@GOTPAGEOFF]
Lloh8:
	adrp	x11, _MULTIFUNC_ENABLE_CIRWB@GOTPAGE
Lloh9:
	ldr	x11, [x11, _MULTIFUNC_ENABLE_CIRWB@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	ldr	w11, [x11]
	orr	w8, w10, w8
	orr	w9, w11, w9
Lloh12:
	adrp	x10, _OUTPUT_PIN_SEL_MASK@GOTPAGE
Lloh13:
	ldr	x10, [x10, _OUTPUT_PIN_SEL_MASK@GOTPAGEOFF]
Lloh14:
	adrp	x11, _MULTIFUNC_PIN_SEL_MASK@GOTPAGE
Lloh15:
	ldr	x11, [x11, _MULTIFUNC_PIN_SEL_MASK@GOTPAGEOFF]
	cmp	x0, #0
	csel	x10, x10, x11, eq
	csel	w21, w8, w9, eq
	ldr	w22, [x10]
Lloh16:
	adrp	x8, _CR_OUTPUT_PIN_SEL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CR_OUTPUT_PIN_SEL@GOTPAGEOFF]
Lloh18:
	adrp	x9, _CR_MULTIFUNC_PIN_SEL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CR_MULTIFUNC_PIN_SEL@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_nvt_cr_read
	and	w8, w0, w22
	orr	w1, w8, w21
	mov	x0, x19
	mov	x2, x20
	bl	_nvt_cr_write
Lloh20:
	adrp	x8, _LOGICAL_DEV_CIR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LOGICAL_DEV_CIR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nvt_select_logical_dev
	add	x1, x19, #4
	mov	x0, x19
	bl	_nvt_set_ioaddr
	ldr	w1, [x19]
Lloh23:
	adrp	x8, _CR_CIR_IRQ_RSRC@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CR_CIR_IRQ_RSRC@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_nvt_cr_write
	ldp	w2, w1, [x19]
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	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	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CR_MULTIFUNC_PIN_SEL,4,2       ; @CR_MULTIFUNC_PIN_SEL
	.comm	_MULTIFUNC_PIN_SEL_MASK,4,2     ; @MULTIFUNC_PIN_SEL_MASK
	.comm	_MULTIFUNC_ENABLE_CIR,4,2       ; @MULTIFUNC_ENABLE_CIR
	.comm	_MULTIFUNC_ENABLE_CIRWB,4,2     ; @MULTIFUNC_ENABLE_CIRWB
	.comm	_CR_OUTPUT_PIN_SEL,4,2          ; @CR_OUTPUT_PIN_SEL
	.comm	_OUTPUT_PIN_SEL_MASK,4,2        ; @OUTPUT_PIN_SEL_MASK
	.comm	_OUTPUT_ENABLE_CIR,4,2          ; @OUTPUT_ENABLE_CIR
	.comm	_OUTPUT_ENABLE_CIRWB,4,2        ; @OUTPUT_ENABLE_CIRWB
	.comm	_LOGICAL_DEV_CIR,4,2            ; @LOGICAL_DEV_CIR
	.comm	_CR_CIR_IRQ_RSRC,4,2            ; @CR_CIR_IRQ_RSRC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CIR initialized, base io port address: 0x%lx, irq: %d"

	.no_dead_strip	_nvt_cir_ldev_init
.subsections_via_symbols
