	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nj_reset
_nj_reset:                              ## @nj_reset
	.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	_NJ_CTRL@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	16(%rdi), %rsi
	movl	$255, %edi
	callq	_outb
	movl	$1, %edi
	callq	_mdelay
	movq	(%rbx), %rax
	movq	_NETJET_S_TJ320@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	shll	$6, %edi
	movl	%edi, 8(%rbx)
	movq	(%r14), %rsi
	addq	16(%rbx), %rsi
	callq	_outb
	movl	$10, %edi
	callq	_mdelay
	movl	$0, 12(%rbx)
	movq	$0, 24(%rbx)
	movq	_NJ_ISACIRQ@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	notl	%edi
	movq	_NJ_AUXCTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_outb
	movl	(%r14), %edi
	movq	_NJ_IRQMASK1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_outb
	movl	12(%rbx), %edi
	movq	_NJ_AUXDATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_outb                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NJ_CTRL,8,3                    ## @NJ_CTRL
	.comm	_NETJET_S_TJ320,8,3             ## @NETJET_S_TJ320
	.comm	_NJ_ISACIRQ,4,2                 ## @NJ_ISACIRQ
	.comm	_NJ_AUXCTRL,8,3                 ## @NJ_AUXCTRL
	.comm	_NJ_IRQMASK1,8,3                ## @NJ_IRQMASK1
	.comm	_NJ_AUXDATA,8,3                 ## @NJ_AUXDATA
	.no_dead_strip	_nj_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nj_reset
_nj_reset:                              ; @nj_reset
	.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	x8, [x0, #16]
Lloh0:
	adrp	x20, _NJ_CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NJ_CTRL@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #255
	bl	_outb
	mov	w0, #1
	bl	_mdelay
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _NETJET_S_TJ320@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NETJET_S_TJ320@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	lsl	w0, w8, #6
	str	w0, [x19, #8]
	ldr	x8, [x19, #16]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_outb
	mov	w0, #10
	bl	_mdelay
	str	wzr, [x19, #12]
	str	xzr, [x19, #24]
Lloh5:
	adrp	x20, _NJ_ISACIRQ@GOTPAGE
Lloh6:
	ldr	x20, [x20, _NJ_ISACIRQ@GOTPAGEOFF]
	ldr	w8, [x20]
	mvn	w0, w8
	ldr	x8, [x19, #16]
Lloh7:
	adrp	x9, _NJ_AUXCTRL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NJ_AUXCTRL@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outb
	ldr	w0, [x20]
	ldr	x8, [x19, #16]
Lloh10:
	adrp	x9, _NJ_IRQMASK1@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NJ_IRQMASK1@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outb
	ldr	w0, [x19, #12]
	ldr	x8, [x19, #16]
Lloh13:
	adrp	x9, _NJ_AUXDATA@GOTPAGE
Lloh14:
	ldr	x9, [x9, _NJ_AUXDATA@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_outb
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NJ_CTRL,8,3                    ; @NJ_CTRL
	.comm	_NETJET_S_TJ320,8,3             ; @NETJET_S_TJ320
	.comm	_NJ_ISACIRQ,4,2                 ; @NJ_ISACIRQ
	.comm	_NJ_AUXCTRL,8,3                 ; @NJ_AUXCTRL
	.comm	_NJ_IRQMASK1,8,3                ; @NJ_IRQMASK1
	.comm	_NJ_AUXDATA,8,3                 ; @NJ_AUXDATA
	.no_dead_strip	_nj_reset
.subsections_via_symbols
