	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlsi_start_hw
_vlsi_start_hw:                         ## @vlsi_start_hw
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_pci_get_drvdata
	movl	(%rax), %r14d
	movq	_VLSI_PCI_IRMISC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_byte
	movq	_IRMISC_UARTEN@GOTPCREL(%rip), %rax
	movq	_IRMISC_UARTTST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	notl	%edx
	andl	-36(%rbp), %edx
	movl	%edx, -36(%rbp)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_pci_write_config_byte
	movq	_VLSI_PCI_MSTRPAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSTRPAGE_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_pci_write_config_byte
	movq	%rbx, %rdi
	callq	_pci_set_master
	movq	%rbx, %rdi
	callq	_vlsi_init_chip
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	4(%r15), %edi
	callq	_vlsi_fill_rx
	movq	%r15, %rdi
	callq	_do_gettimeofday
	movq	_VLSI_PIO_PROMPT@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	_outw
	jmp	LBB0_3
LBB0_1:
	movq	%rbx, %rdi
	callq	_pci_disable_device
	movl	$-1, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VLSI_PCI_IRMISC,4,2            ## @VLSI_PCI_IRMISC
	.comm	_IRMISC_UARTEN,4,2              ## @IRMISC_UARTEN
	.comm	_IRMISC_UARTTST,4,2             ## @IRMISC_UARTTST
	.comm	_VLSI_PCI_MSTRPAGE,4,2          ## @VLSI_PCI_MSTRPAGE
	.comm	_MSTRPAGE_VALUE,4,2             ## @MSTRPAGE_VALUE
	.comm	_VLSI_PIO_PROMPT,8,3            ## @VLSI_PIO_PROMPT
	.no_dead_strip	_vlsi_start_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlsi_start_hw
_vlsi_start_hw:                         ; @vlsi_start_hw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x20, [x0, #8]
	mov	x0, x20
	bl	_pci_get_drvdata
	ldr	w21, [x0]
Lloh0:
	adrp	x22, _VLSI_PCI_IRMISC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VLSI_PCI_IRMISC@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x20
	bl	_pci_read_config_byte
Lloh2:
	adrp	x8, _IRMISC_UARTEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRMISC_UARTEN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _IRMISC_UARTTST@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IRMISC_UARTTST@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_pci_write_config_byte
Lloh8:
	adrp	x8, _VLSI_PCI_MSTRPAGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VLSI_PCI_MSTRPAGE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _MSTRPAGE_VALUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSTRPAGE_VALUE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_pci_write_config_byte
	mov	x0, x20
	bl	_pci_set_master
	mov	x0, x20
	bl	_vlsi_init_chip
	tbnz	x0, #63, LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_vlsi_fill_rx
	mov	x0, x19
	bl	_do_gettimeofday
Lloh14:
	adrp	x8, _VLSI_PIO_PROMPT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VLSI_PIO_PROMPT@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	w0, #0
	bl	_outw
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_pci_disable_device
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_VLSI_PCI_IRMISC,4,2            ; @VLSI_PCI_IRMISC
	.comm	_IRMISC_UARTEN,4,2              ; @IRMISC_UARTEN
	.comm	_IRMISC_UARTTST,4,2             ; @IRMISC_UARTTST
	.comm	_VLSI_PCI_MSTRPAGE,4,2          ; @VLSI_PCI_MSTRPAGE
	.comm	_MSTRPAGE_VALUE,4,2             ; @MSTRPAGE_VALUE
	.comm	_VLSI_PIO_PROMPT,8,3            ; @VLSI_PIO_PROMPT
	.no_dead_strip	_vlsi_start_hw
.subsections_via_symbols
