	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc586
_alloc586:                              ## @alloc586
	.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, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_sun3_reset586
	movl	$1, %edi
	callq	_DELAY
	movq	_SCP_DEFAULT_ADDRESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	32(%rbx), %rax
	movq	%rax, 24(%rbx)
	movl	4(%r14), %edi
	callq	_dvma_btov
	movq	%rax, 16(%rbx)
	leaq	24(%rax), %rcx
	movq	%rcx, (%rbx)
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	24(%rbx), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	16(%rbx), %rdi
	callq	_make24
	movq	24(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	_SYSBUSVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movq	(%rbx), %rdi
	callq	_make16
	movq	16(%rbx), %rcx
	movl	%eax, 16(%rcx)
	movl	4(%r14), %edi
	callq	_dvma_btov
	movq	%rax, %rdi
	callq	_make24
	movq	16(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movl	$1, (%rcx)
	xorl	%eax, %eax
	callq	_sun3_reset586
	xorl	%eax, %eax
	callq	_sun3_attn586
	movl	$1, %edi
	callq	_DELAY
	movq	16(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_printk
LBB0_2:
	movq	$0, 8(%rbx)
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SCP_DEFAULT_ADDRESS,8,3        ## @SCP_DEFAULT_ADDRESS
	.comm	_SYSBUSVAL,4,2                  ## @SYSBUSVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Init-Problems (alloc).\n"

	.no_dead_strip	_alloc586
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc586
_alloc586:                              ; @alloc586
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	bl	_sun3_reset586
	mov	w21, #1
	mov	w0, #1
	bl	_DELAY
	ldr	x8, [x19, #32]
Lloh0:
	adrp	x9, _SCP_DEFAULT_ADDRESS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SCP_DEFAULT_ADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x19, #24]
	ldr	w0, [x20, #4]
	bl	_dvma_btov
	str	x0, [x19, #16]
	add	x8, x0, #24
	str	x8, [x19]
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	x0, [x19, #24]
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x0, [x19, #16]
	bl	_make24
	ldr	x8, [x19, #24]
	str	x0, [x8, #8]
Lloh3:
	adrp	x9, _SYSBUSVAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SYSBUSVAL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [x8]
	ldr	x0, [x19]
	bl	_make16
	ldr	x8, [x19, #16]
	str	w0, [x8, #16]
	ldr	w0, [x20, #4]
	bl	_dvma_btov
	bl	_make24
	ldr	x8, [x19, #16]
	str	x0, [x8, #8]
	str	w21, [x8]
	bl	_sun3_reset586
	bl	_sun3_attn586
	mov	w0, #1
	bl	_DELAY
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w1, [x20]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
LBB0_2:
	str	xzr, [x19, #8]
	ldr	x0, [x19]
	mov	w1, #0
	mov	w2, #4
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_memset
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SCP_DEFAULT_ADDRESS,8,3        ; @SCP_DEFAULT_ADDRESS
	.comm	_SYSBUSVAL,4,2                  ; @SYSBUSVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Init-Problems (alloc).\n"

	.no_dead_strip	_alloc586
.subsections_via_symbols
