	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ariadne_init_one
_ariadne_init_one:                      ## @ariadne_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movq	_ARIADNE_LANCE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	addq	%rbx, %r14
	movq	_ARIADNE_RAM@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	addq	%rbx, %r15
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_request_mem_region
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	_ARIADNE_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, %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	$4, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	movl	40(%rax), %eax
	movl	%eax, (%r13)
	movl	%eax, (%r12)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %edi
	callq	_be32_to_cpu
	movq	(%rbx), %rcx
	movabsq	$412316860416, %rdx             ## imm = 0x6000000000
	movq	%rdx, (%rcx)
	movl	$48, 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	%r14, %rdi
	callq	_ZTWO_VADDR
	movq	%rax, 8(%rbx)
	movq	%r15, %rdi
	callq	_ZTWO_VADDR
	movq	%rax, 16(%rbx)
	movq	_ARIADNE_RAM_SIZE@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movl	%eax, 24(%rbx)
	movq	_ariadne_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, 28(%rbx)
	movq	%rbx, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r12d
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_release_mem_region
	movq	_ARIADNE_RAM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_release_mem_region
	movq	%rbx, %rdi
	callq	_free_netdev
	jmp	LBB0_10
LBB0_4:
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_release_mem_region
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_release_mem_region
	movq	_ARIADNE_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	%r13, %rdi
	movq	%rbx, %rsi
	callq	_zorro_set_drvdata
	movq	(%rbx), %rcx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_netdev_info
	xorl	%r12d, %r12d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ARIADNE_LANCE,8,3              ## @ARIADNE_LANCE
	.comm	_ARIADNE_RAM,8,3                ## @ARIADNE_RAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Am79C960"

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

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ariadne_netdev_ops,4,2         ## @ariadne_netdev_ops
	.comm	_HZ,4,2                         ## @HZ
L_.str.2:                               ## @.str.2
	.asciz	"Ariadne at 0x%08lx, Ethernet Address %pM\n"

	.no_dead_strip	_ariadne_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 ariadne_init_one
lCPI0_0:
	.long	0                               ; 0x0
	.long	96                              ; 0x60
lCPI0_1:
	.long	4294967280                      ; 0xfffffff0
	.long	4294967288                      ; 0xfffffff8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ariadne_init_one:                      ; @ariadne_init_one
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x0
Lloh0:
	adrp	x8, _ARIADNE_LANCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARIADNE_LANCE@GOTPAGEOFF]
	ldr	x19, [x0, #8]
Lloh2:
	ldr	x8, [x8]
	add	x20, x8, x19
Lloh3:
	adrp	x8, _ARIADNE_RAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARIADNE_RAM@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #4
	bl	_request_mem_region
	cbz	x0, LBB0_6
; %bb.1:
	mov	x24, x0
	add	x22, x22, x19
Lloh8:
	adrp	x26, _ARIADNE_RAM_SIZE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _ARIADNE_RAM_SIZE@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_request_mem_region
	cbz	x0, LBB0_5
; %bb.2:
	mov	x25, x0
	mov	w0, #4
	bl	_alloc_etherdev
	cbz	x0, LBB0_9
; %bb.3:
	mov	x23, x0
	ldr	w8, [x0, #40]
	str	w8, [x24]
	str	w8, [x25]
	ldr	w0, [x21]
	bl	_be32_to_cpu
	ldr	x8, [x23]
Lloh12:
	adrp	x9, lCPI0_0@PAGE
Lloh13:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8]
	mov	w9, #48
	str	w9, [x8, #8]
	dup.2s	v0, w0
Lloh14:
	adrp	x9, lCPI0_1@PAGE
Lloh15:
	ldr	d1, [x9, lCPI0_1@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, [x26]
	add	w8, w8, w0
Lloh16:
	adrp	x9, _ariadne_netdev_ops@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ariadne_netdev_ops@GOTPAGEOFF]
	str	x9, [x23, #32]
Lloh18:
	adrp	x9, _HZ@GOTPAGE
Lloh19:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	add	w9, w9, w9, lsl #2
	stp	w8, w9, [x23, #24]
	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, [x26]
	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:
Lloh21:
	adrp	x8, _EBUSY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_8:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x20
	mov	w1, #4
	bl	_release_mem_region
	ldr	w1, [x26]
	mov	x0, x22
	bl	_release_mem_region
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_10:
	mov	x0, x21
	mov	x1, x23
	bl	_zorro_set_drvdata
	ldr	x3, [x23]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	mov	x2, x19
	bl	_netdev_info
	b	LBB0_8
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ARIADNE_LANCE,8,3              ; @ARIADNE_LANCE
	.comm	_ARIADNE_RAM,8,3                ; @ARIADNE_RAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Am79C960"

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

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ariadne_netdev_ops,4,2         ; @ariadne_netdev_ops
	.comm	_HZ,4,2                         ; @HZ
l_.str.2:                               ; @.str.2
	.asciz	"Ariadne at 0x%08lx, Ethernet Address %pM\n"

	.no_dead_strip	_ariadne_init_one
.subsections_via_symbols
