	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a2065_init_one
_a2065_init_one:                        ## @a2065_init_one
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	movq	_A2065_LANCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r12, %rdi
	movq	_A2065_RAM@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	addq	%r12, %r15
	leaq	L_.str(%rip), %rdx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	$4, %esi
	callq	_request_mem_region
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movq	_A2065_RAM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_request_mem_region
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movl	$72, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %r15
	movl	48(%r12), %eax
	movl	%eax, (%r13)
	movl	%eax, (%r14)
	movl	8(%rbx), %edi
	callq	_be32_to_cpu
	movq	(%r12), %rcx
	movl	$0, (%rcx)
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rdx
	movq	_ZORRO_PROD_AMERISTAR_A2065@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	cmpq	(%rsi), %rdx
	setne	%dil
	movl	$159, %edx
	movl	$16, %esi
	cmovel	%edx, %esi
	shll	$7, %edi
	movl	%edi, 4(%rcx)
	movl	%esi, 8(%rcx)
	movzbl	%ah, %edx
	movzbl	%al, %esi
	shrl	$16, %eax
	movzbl	%al, %eax
	movl	%eax, 12(%rcx)
	movl	%edx, 16(%rcx)
	movl	%esi, 20(%rcx)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_ZTWO_VADDR
	movq	%rax, 8(%r12)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ZTWO_VADDR
	movq	%rax, 16(%r12)
	movq	_A2065_RAM_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	movl	%ecx, 24(%r12)
	movq	8(%r12), %rcx
	movq	%rcx, 64(%r15)
	movq	%rax, 56(%r15)
	movq	_A2065_RAM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%r15)
	movq	$0, 40(%r15)
	movq	_LE_C3_BSWP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	_LANCE_LOG_RX_BUFFERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	movq	_LANCE_LOG_TX_BUFFERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_RX_RING_MOD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_TX_RING_MOD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	%r12, 8(%r15)
	movq	_lance_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r12)
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, 28(%r12)
	movq	$0, 32(%r12)
	movq	_lance_set_multicast_retry@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	%r12, %r15
	movq	%r12, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_release_mem_region
	movq	_A2065_RAM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_release_mem_region
	movq	%r15, %rdi
	callq	_free_netdev
	movl	%ebx, %r14d
	jmp	LBB0_10
LBB0_4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %esi
	callq	_release_mem_region
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %esi
	callq	_release_mem_region
	movq	_A2065_RAM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_release_mem_region
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_zorro_set_drvdata
	movq	(%r15), %rcx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_netdev_info
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_A2065_LANCE,8,3                ## @A2065_LANCE
	.comm	_A2065_RAM,8,3                  ## @A2065_RAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Am7990"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_A2065_RAM_SIZE,4,2             ## @A2065_RAM_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"RAM"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ZORRO_PROD_AMERISTAR_A2065,8,3 ## @ZORRO_PROD_AMERISTAR_A2065
	.comm	_LE_C3_BSWP,4,2                 ## @LE_C3_BSWP
	.comm	_LANCE_LOG_RX_BUFFERS,4,2       ## @LANCE_LOG_RX_BUFFERS
	.comm	_LANCE_LOG_TX_BUFFERS,4,2       ## @LANCE_LOG_TX_BUFFERS
	.comm	_RX_RING_MOD_MASK,4,2           ## @RX_RING_MOD_MASK
	.comm	_TX_RING_MOD_MASK,4,2           ## @TX_RING_MOD_MASK
	.comm	_lance_netdev_ops,4,2           ## @lance_netdev_ops
	.comm	_HZ,4,2                         ## @HZ
	.comm	_lance_set_multicast_retry,4,2  ## @lance_set_multicast_retry
L_.str.2:                               ## @.str.2
	.asciz	"A2065 at 0x%08lx, Ethernet Address %pM\n"

	.no_dead_strip	_a2065_init_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function a2065_init_one
lCPI0_0:
	.long	128                             ; 0x80
	.long	16                              ; 0x10
lCPI0_1:
	.long	0                               ; 0x0
	.long	159                             ; 0x9f
lCPI0_2:
	.long	4294967280                      ; 0xfffffff0
	.long	4294967288                      ; 0xfffffff8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_a2065_init_one:                        ; @a2065_init_one
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x0
Lloh0:
	adrp	x8, _A2065_LANCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _A2065_LANCE@GOTPAGEOFF]
	ldr	x19, [x0, #16]
Lloh2:
	ldr	x8, [x8]
	add	x20, x8, x19
Lloh3:
	adrp	x28, _A2065_RAM@GOTPAGE
Lloh4:
	ldr	x28, [x28, _A2065_RAM@GOTPAGEOFF]
	ldr	x22, [x28]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #4
	bl	_request_mem_region
	cbz	x0, LBB0_6
; %bb.1:
	mov	x25, x0
	add	x22, x22, x19
Lloh7:
	adrp	x27, _A2065_RAM_SIZE@GOTPAGE
Lloh8:
	ldr	x27, [x27, _A2065_RAM_SIZE@GOTPAGEOFF]
	ldr	w1, [x27]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_request_mem_region
	cbz	x0, LBB0_5
; %bb.2:
	mov	x26, x0
	mov	w0, #72
	bl	_alloc_etherdev
	cbz	x0, LBB0_9
; %bb.3:
	mov	x23, x0
	bl	_netdev_priv
	mov	x24, x0
	ldr	w8, [x23, #48]
	str	w8, [x25]
	str	w8, [x26]
	ldr	w0, [x21, #8]
	bl	_be32_to_cpu
	ldr	x8, [x23]
	str	wzr, [x8]
Lloh11:
	adrp	x9, _ZORRO_PROD_AMERISTAR_A2065@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ZORRO_PROD_AMERISTAR_A2065@GOTPAGEOFF]
	ldr	x10, [x21]
Lloh13:
	ldr	x9, [x9]
	cmp	x10, x9
	cset	w9, eq
	dup.2s	v0, w9
	shl.2s	v0, v0, #31
	cmlt.2s	v0, v0, #0
Lloh14:
	adrp	x9, lCPI0_0@PAGE
Lloh15:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
Lloh16:
	adrp	x9, lCPI0_1@PAGE
Lloh17:
	ldr	d2, [x9, lCPI0_1@PAGEOFF]
	bsl.8b	v0, v2, v1
	stur	d0, [x8, #4]
	dup.2s	v0, w0
Lloh18:
	adrp	x9, lCPI0_2@PAGE
Lloh19:
	ldr	d1, [x9, lCPI0_2@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	stur	d0, [x8, #12]
	and	w9, w0, #0xff
	str	w9, [x8, #20]
	mov	x0, x20
	bl	_ZTWO_VADDR
	str	x0, [x23, #8]
	mov	x0, x22
	bl	_ZTWO_VADDR
	str	x0, [x23, #16]
	ldr	w8, [x27]
	add	w8, w8, w0
	ldr	x9, [x23, #8]
	stp	x0, x9, [x24, #56]
	ldr	x9, [x28]
	stp	xzr, x9, [x24, #40]
Lloh20:
	adrp	x9, _LE_C3_BSWP@GOTPAGE
Lloh21:
	ldr	x9, [x9, _LE_C3_BSWP@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	str	w9, [x24, #32]
Lloh23:
	adrp	x9, _LANCE_LOG_RX_BUFFERS@GOTPAGE
Lloh24:
	ldr	x9, [x9, _LANCE_LOG_RX_BUFFERS@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
Lloh26:
	adrp	x10, _LANCE_LOG_TX_BUFFERS@GOTPAGE
Lloh27:
	ldr	x10, [x10, _LANCE_LOG_TX_BUFFERS@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	stp	w10, w9, [x24, #24]
Lloh29:
	adrp	x9, _RX_RING_MOD_MASK@GOTPAGE
Lloh30:
	ldr	x9, [x9, _RX_RING_MOD_MASK@GOTPAGEOFF]
Lloh31:
	adrp	x10, _TX_RING_MOD_MASK@GOTPAGE
Lloh32:
	ldr	x10, [x10, _TX_RING_MOD_MASK@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
Lloh34:
	ldr	w10, [x10]
	stp	w10, w9, [x24, #16]
Lloh35:
	adrp	x9, _lance_netdev_ops@GOTPAGE
Lloh36:
	ldr	x9, [x9, _lance_netdev_ops@GOTPAGEOFF]
	str	x23, [x24, #8]
Lloh37:
	adrp	x10, _HZ@GOTPAGE
Lloh38:
	ldr	x10, [x10, _HZ@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	add	w10, w10, w10, lsl #2
	stp	w8, w10, [x23, #24]
	stp	xzr, x9, [x23, #32]
Lloh40:
	adrp	x8, _lance_set_multicast_retry@GOTPAGE
Lloh41:
	ldr	x8, [x8, _lance_set_multicast_retry@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x24
	mov	w2, #0
	bl	_timer_setup
	mov	x0, x23
	bl	_register_netdev
	mov	x24, x0
	cbz	w0, LBB0_10
; %bb.4:
	mov	x0, x20
	mov	w1, #4
	bl	_release_mem_region
	ldr	w1, [x27]
	mov	x0, x22
	bl	_release_mem_region
	mov	x0, x23
	bl	_free_netdev
	b	LBB0_8
LBB0_5:
	mov	x0, x20
	mov	w1, #4
	bl	_release_mem_region
LBB0_6:
Lloh43:
	adrp	x8, _EBUSY@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_8:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x20
	mov	w1, #4
	bl	_release_mem_region
	ldr	w1, [x27]
	mov	x0, x22
	bl	_release_mem_region
Lloh45:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_10:
	mov	x0, x21
	mov	x1, x23
	bl	_zorro_set_drvdata
	ldr	x3, [x23]
Lloh47:
	adrp	x1, l_.str.2@PAGE
Lloh48:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	mov	x2, x19
	bl	_netdev_info
	b	LBB0_8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh33
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdr	Lloh18, Lloh19
	.loh AdrpAdrp	Lloh16, Lloh18
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpAdrp	Lloh14, Lloh16
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_A2065_LANCE,8,3                ; @A2065_LANCE
	.comm	_A2065_RAM,8,3                  ; @A2065_RAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Am7990"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_A2065_RAM_SIZE,4,2             ; @A2065_RAM_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"RAM"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ZORRO_PROD_AMERISTAR_A2065,8,3 ; @ZORRO_PROD_AMERISTAR_A2065
	.comm	_LE_C3_BSWP,4,2                 ; @LE_C3_BSWP
	.comm	_LANCE_LOG_RX_BUFFERS,4,2       ; @LANCE_LOG_RX_BUFFERS
	.comm	_LANCE_LOG_TX_BUFFERS,4,2       ; @LANCE_LOG_TX_BUFFERS
	.comm	_RX_RING_MOD_MASK,4,2           ; @RX_RING_MOD_MASK
	.comm	_TX_RING_MOD_MASK,4,2           ; @TX_RING_MOD_MASK
	.comm	_lance_netdev_ops,4,2           ; @lance_netdev_ops
	.comm	_HZ,4,2                         ; @HZ
	.comm	_lance_set_multicast_retry,4,2  ; @lance_set_multicast_retry
l_.str.2:                               ; @.str.2
	.asciz	"A2065 at 0x%08lx, Ethernet Address %pM\n"

	.no_dead_strip	_a2065_init_one
.subsections_via_symbols
