	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i596_scp_setup
_i596_scp_setup:                        ## @i596_scp_setup
	.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, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	leaq	56(%rax), %r12
	movl	$4456448, 56(%rax)              ## imm = 0x440000
	movq	$0, 104(%rax)
	movq	%rax, %rdi
	callq	_va_to_pa
	movq	%rax, 96(%r15)
	movl	$1, 4(%r15)
	leaq	136(%r15), %rdi
	callq	_va_to_pa
	movq	%rax, 32(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 152(%r15)
	movq	_I596_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 144(%r15)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 128(%r15)
	movups	%xmm0, 112(%r15)
	movq	_PORT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	callq	_PORT
	movl	$100, %edi
	callq	_udelay
	movq	%r12, %rdi
	callq	_va_to_pa
	movq	_PORT_ALTSCP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_PORT
	xorl	%eax, %eax
	callq	_CA
	cmpl	$0, 4(%r15)
	je	LBB0_5
## %bb.1:
	movl	$-100, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$5, %edi
	callq	_udelay
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_barrier
	cmpl	$0, 4(%r15)
	jne	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_printk
	movl	$1, %r13d
LBB0_5:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I596_NULL,4,2                  ## @I596_NULL
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_PORT_RESET,4,2                 ## @PORT_RESET
	.comm	_PORT_ALTSCP,4,2                ## @PORT_ALTSCP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: i82596 initialization timed out\n"

	.no_dead_strip	_i596_scp_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i596_scp_setup
_i596_scp_setup:                        ; @i596_scp_setup
	.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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	w8, #4456448
	mov	x21, x0
	str	w8, [x21, #56]!
	str	xzr, [x0, #104]
	bl	_va_to_pa
	str	x0, [x20, #96]
	mov	w8, #1
	str	w8, [x20, #4]
	add	x0, x20, #136
	bl	_va_to_pa
	str	x0, [x20, #32]
Lloh0:
	adrp	x8, _I596_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I596_NULL@GOTPAGEOFF]
	stp	xzr, xzr, [x20, #152]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #144]
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #128]
	stp	xzr, xzr, [x20, #112]
Lloh6:
	adrp	x8, _PORT_RESET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PORT_RESET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, #0
	bl	_PORT
	mov	w0, #100
	bl	_udelay
	mov	x0, x21
	bl	_va_to_pa
Lloh9:
	adrp	x8, _PORT_ALTSCP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PORT_ALTSCP@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_PORT
	bl	_CA
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_4
; %bb.1:
	mov	w21, #-100
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	adds	w21, w21, #1
	b.hs	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #5
	bl	_udelay
	bl	_barrier
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	w1, [x19]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	mov	w0, #1
LBB0_6:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_I596_NULL,4,2                  ; @I596_NULL
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_PORT_RESET,4,2                 ; @PORT_RESET
	.comm	_PORT_ALTSCP,4,2                ; @PORT_ALTSCP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: i82596 initialization timed out\n"

	.no_dead_strip	_i596_scp_setup
.subsections_via_symbols
