	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reset_enpci
_reset_enpci:                           ## @reset_enpci
	.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	_L1_DEB_ISAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_debugl1
LBB0_2:
	movl	$7, 8(%rbx)
	movq	_NETJET_CTRL@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	24(%rbx), %rsi
	movl	$7, %edi
	callq	_outb
	movl	$20, %edi
	callq	_mdelay
	movl	$48, 8(%rbx)
	movq	(%r14), %rsi
	addq	24(%rbx), %rsi
	movl	$48, %edi
	callq	_outb
	movl	$20, %edi
	callq	_mdelay
	movl	$0, 12(%rbx)
	movq	$0, 32(%rbx)
	movq	_TJ_AMD_IRQ@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	notl	%edi
	movq	_NETJET_AUXCTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%rbx), %rsi
	callq	_outb
	movl	(%r14), %edi
	movq	_NETJET_IRQMASK1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%rbx), %rsi
	callq	_outb
	movl	12(%rbx), %edi
	movq	16(%rbx), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_outb                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_L1_DEB_ISAC,4,2                ## @L1_DEB_ISAC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enter:now PCI: reset"

	.comm	_NETJET_CTRL,8,3                ## @NETJET_CTRL
	.comm	_TJ_AMD_IRQ,4,2                 ## @TJ_AMD_IRQ
	.comm	_NETJET_AUXCTRL,8,3             ## @NETJET_AUXCTRL
	.comm	_NETJET_IRQMASK1,8,3            ## @NETJET_IRQMASK1
	.no_dead_strip	_reset_enpci
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reset_enpci
_reset_enpci:                           ; @reset_enpci
	.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	w8, [x0]
Lloh0:
	adrp	x9, _L1_DEB_ISAC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _L1_DEB_ISAC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_debugl1
LBB0_2:
	mov	w8, #7
	str	w8, [x19, #8]
	ldr	x8, [x19, #24]
Lloh5:
	adrp	x20, _NETJET_CTRL@GOTPAGE
Lloh6:
	ldr	x20, [x20, _NETJET_CTRL@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #7
	bl	_outb
	mov	w0, #20
	bl	_mdelay
	mov	w8, #48
	str	w8, [x19, #8]
	ldr	x8, [x19, #24]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #48
	bl	_outb
	mov	w0, #20
	bl	_mdelay
	str	wzr, [x19, #12]
	str	xzr, [x19, #32]
Lloh7:
	adrp	x20, _TJ_AMD_IRQ@GOTPAGE
Lloh8:
	ldr	x20, [x20, _TJ_AMD_IRQ@GOTPAGEOFF]
	ldr	w8, [x20]
	mvn	w0, w8
	ldr	x8, [x19, #24]
Lloh9:
	adrp	x9, _NETJET_AUXCTRL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NETJET_AUXCTRL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outb
	ldr	w0, [x20]
	ldr	x8, [x19, #24]
Lloh12:
	adrp	x9, _NETJET_IRQMASK1@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NETJET_IRQMASK1@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outb
	ldr	w0, [x19, #12]
	ldr	x1, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_outb
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_L1_DEB_ISAC,4,2                ; @L1_DEB_ISAC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enter:now PCI: reset"

	.comm	_NETJET_CTRL,8,3                ; @NETJET_CTRL
	.comm	_TJ_AMD_IRQ,4,2                 ; @TJ_AMD_IRQ
	.comm	_NETJET_AUXCTRL,8,3             ; @NETJET_AUXCTRL
	.comm	_NETJET_IRQMASK1,8,3            ; @NETJET_IRQMASK1
	.no_dead_strip	_reset_enpci
.subsections_via_symbols
