	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xircom_up
_xircom_up:                             ## @xircom_up
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	8(%rdi), %edi
	movq	_PCI_POWERMGMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_pci_write_config_dword
	movq	%r15, %rdi
	callq	_setup_descriptors
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, %rdi
	callq	_enable_link_interrupt
	movq	%r15, %rdi
	callq	_enable_transmit_interrupt
	movq	%r15, %rdi
	callq	_enable_receive_interrupt
	movq	%r15, %rdi
	callq	_enable_common_interrupts
	movq	%r15, %rdi
	callq	_enable_promisc
	movq	_NUMDESCRIPTORS@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_bufferoffsets@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_investigate_read_descriptor
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	callq	_trigger_receive
	movq	%r15, %rdi
	callq	_trigger_transmit
	movl	(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_start_queue              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_POWERMGMT,4,2              ## @PCI_POWERMGMT
	.comm	_NUMDESCRIPTORS,4,2             ## @NUMDESCRIPTORS
	.comm	_bufferoffsets,8,3              ## @bufferoffsets
	.no_dead_strip	_xircom_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xircom_up
_xircom_up:                             ; @xircom_up
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _PCI_POWERMGMT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_POWERMGMT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_pci_write_config_dword
	mov	x0, x19
	bl	_setup_descriptors
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_enable_link_interrupt
	mov	x0, x19
	bl	_enable_transmit_interrupt
	mov	x0, x19
	bl	_enable_receive_interrupt
	mov	x0, x19
	bl	_enable_common_interrupts
	mov	x0, x19
	bl	_enable_promisc
Lloh3:
	adrp	x22, _NUMDESCRIPTORS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _NUMDESCRIPTORS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
Lloh5:
	adrp	x23, _bufferoffsets@GOTPAGE
Lloh6:
	ldr	x23, [x23, _bufferoffsets@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	ldr	x8, [x23]
	ldr	w3, [x8, x21, lsl #2]
	mov	x1, x19
	mov	x2, x21
	bl	_investigate_read_descriptor
	add	x21, x21, #1
	ldrsw	x8, [x22]
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_trigger_receive
	mov	x0, x19
	bl	_trigger_transmit
	ldr	w0, [x19]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_netif_start_queue
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_POWERMGMT,4,2              ; @PCI_POWERMGMT
	.comm	_NUMDESCRIPTORS,4,2             ; @NUMDESCRIPTORS
	.comm	_bufferoffsets,8,3              ; @bufferoffsets
	.no_dead_strip	_xircom_up
.subsections_via_symbols
