	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_i596
_init_i596:                             ## @init_i596
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_i596_scp_setup
	movl	$1, %r14d
	testq	%rax, %rax
	je	LBB0_1
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	$0, (%rax)
	movq	32(%rax), %rdi
	movq	_init_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$14, %edx
	callq	_memcpy
	movq	_CmdConfigure@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	24(%rbx), %rsi
	movl	%eax, 24(%rbx)
	movq	%r15, %rdi
	callq	_i596_add_cmd
	movq	16(%rbx), %rdi
	movl	(%r15), %esi
	movl	$6, %edx
	callq	_memcpy
	movq	_CmdIASetup@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	12(%rbx), %rsi
	movl	%eax, 12(%rbx)
	movq	%r15, %rdi
	callq	_i596_add_cmd
	movq	_CmdTDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	8(%rbx), %rsi
	movl	%eax, 8(%rbx)
	movq	%r15, %rdi
	callq	_i596_add_cmd
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	$200, %edx
	callq	_i596_timeout
	testq	%rax, %rax
	jne	LBB0_6
LBB0_3:
	movq	_RX_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	callq	_CA
	xorl	%eax, %eax
	callq	_barrier
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	$100, %edx
	callq	_i596_timeout
	testq	%rax, %rax
	jne	LBB0_6
LBB0_5:
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_init_setup,4,2                 ## @init_setup
	.comm	_CmdConfigure,4,2               ## @CmdConfigure
	.comm	_CmdIASetup,4,2                 ## @CmdIASetup
	.comm	_CmdTDR,4,2                     ## @CmdTDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i82596 init"

	.comm	_RX_START,8,3                   ## @RX_START
L_.str.1:                               ## @.str.1
	.asciz	"Receive Unit start"

	.no_dead_strip	_init_i596
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_i596
_init_i596:                             ; @init_i596
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_i596_scp_setup
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #1
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	bl	_netdev_priv
	mov	x20, x0
	str	xzr, [x0]
	ldr	x0, [x0, #32]
Lloh0:
	adrp	x8, _init_setup@GOTPAGE
Lloh1:
	ldr	x8, [x8, _init_setup@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #14
	bl	_memcpy
Lloh3:
	adrp	x8, _CmdConfigure@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CmdConfigure@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x1, x20
	str	w8, [x1, #24]!
	mov	x0, x19
	bl	_i596_add_cmd
	ldr	x0, [x20, #16]
	ldr	w1, [x19]
	mov	w2, #6
	bl	_memcpy
Lloh6:
	adrp	x8, _CmdIASetup@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CmdIASetup@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	x1, x20
	str	w8, [x1, #12]!
	mov	x0, x19
	bl	_i596_add_cmd
Lloh9:
	adrp	x8, _CmdTDR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CmdTDR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	x1, x20
	str	w8, [x1, #8]!
	mov	x0, x19
	bl	_i596_add_cmd
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.4:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #200
	bl	_i596_timeout
	cbnz	x0, LBB0_1
LBB0_5:
Lloh14:
	adrp	x8, _RX_START@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RX_START@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [x20]
	bl	_CA
	bl	_barrier
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.6:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #100
	bl	_i596_timeout
	cbnz	x0, LBB0_1
LBB0_7:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_init_setup,4,2                 ; @init_setup
	.comm	_CmdConfigure,4,2               ; @CmdConfigure
	.comm	_CmdIASetup,4,2                 ; @CmdIASetup
	.comm	_CmdTDR,4,2                     ; @CmdTDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i82596 init"

	.comm	_RX_START,8,3                   ; @RX_START
l_.str.1:                               ; @.str.1
	.asciz	"Receive Unit start"

	.no_dead_strip	_init_i596
.subsections_via_symbols
