	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_CR_OUTPUT_PIN_SEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_nvt_cr_read
	movq	_OUTPUT_PIN_SEL_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_OUTPUT_ENABLE_CIR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_OUTPUT_ENABLE_CIRWB@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nvt_cr_write
	movq	_LOGICAL_DEV_CIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nvt_select_logical_dev
	movq	_LOGICAL_DEV_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CR_LOGICAL_DEV_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %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
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_nvt_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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	_LOGICAL_DEV_ENABLE,4,2         ## @LOGICAL_DEV_ENABLE
	.comm	_CR_LOGICAL_DEV_EN,4,2          ## @CR_LOGICAL_DEV_EN
	.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 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	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
Lloh0:
	adrp	x20, _CR_OUTPUT_PIN_SEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CR_OUTPUT_PIN_SEL@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_nvt_cr_read
Lloh2:
	adrp	x8, _OUTPUT_PIN_SEL_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OUTPUT_PIN_SEL_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh5:
	adrp	x9, _OUTPUT_ENABLE_CIR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _OUTPUT_ENABLE_CIR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _OUTPUT_ENABLE_CIRWB@GOTPAGE
Lloh9:
	ldr	x10, [x10, _OUTPUT_ENABLE_CIRWB@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w8, w8, w9
	orr	w1, w8, w10
	ldr	w2, [x20]
	mov	x0, x19
	bl	_nvt_cr_write
Lloh11:
	adrp	x8, _LOGICAL_DEV_CIR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LOGICAL_DEV_CIR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nvt_select_logical_dev
Lloh14:
	adrp	x8, _LOGICAL_DEV_ENABLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LOGICAL_DEV_ENABLE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _CR_LOGICAL_DEV_EN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CR_LOGICAL_DEV_EN@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_nvt_cr_write
	ldr	w8, [x19]
	asr	w1, w8, #8
Lloh20:
	adrp	x8, _CR_CIR_BASE_ADDR_HI@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CR_CIR_BASE_ADDR_HI@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_nvt_cr_write
	ldrb	w1, [x19]
Lloh23:
	adrp	x8, _CR_CIR_BASE_ADDR_LO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CR_CIR_BASE_ADDR_LO@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_nvt_cr_write
	ldr	w1, [x19, #4]
Lloh26:
	adrp	x8, _CR_CIR_IRQ_RSRC@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CR_CIR_IRQ_RSRC@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_nvt_cr_write
	ldp	w1, w2, [x19]
Lloh29:
	adrp	x0, l_.str@PAGE
Lloh30:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nvt_dbg
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.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	_LOGICAL_DEV_ENABLE,4,2         ; @LOGICAL_DEV_ENABLE
	.comm	_CR_LOGICAL_DEV_EN,4,2          ; @CR_LOGICAL_DEV_EN
	.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 initialized, base io port address: 0x%lx, irq: %d"

	.no_dead_strip	_nvt_cir_ldev_init
.subsections_via_symbols
