	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1000_init
_au1000_init:                           ## @au1000_init
	.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, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rax, %r15
	movq	_au1000_debug@GOTPCREL(%rip), %rax
	cmpl	$5, (%rax)
	jl	LBB0_2
## %bb.1:
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_printk
LBB0_2:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_enable_mac
	addq	$12, %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	16(%r15), %r9
	movl	$0, (%r9)
	movq	32(%r15), %rax
	movq	40(%r15), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx), %edx
	shrl	$2, %edx
	andl	$3, %edx
	movl	%edx, (%r15)
	movl	%edx, 4(%r15)
	movq	(%rax), %r8
	movl	(%r8), %esi
	movl	%esi, %edi
	shrl	$2, %edi
	andl	$3, %edi
	movl	%edi, 8(%r15)
	movq	(%rbx), %rdi
	movl	20(%rdi), %ebx
	shll	$8, %ebx
	orl	16(%rdi), %ebx
	movl	%ebx, 4(%r9)
	movl	12(%rdi), %ebx
	shll	$24, %ebx
	movl	4(%rdi), %edx
	movl	8(%rdi), %ecx
	shll	$16, %ecx
	orl	%ebx, %ecx
	shll	$8, %edx
	orl	%ecx, %edx
	orl	(%rdi), %edx
	movl	%edx, 8(%r9)
	movq	_NUM_RX_DMA@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_6
## %bb.3:
	movq	_RX_DMA_ENABLE@GOTPCREL(%rip), %rdi
	orl	(%rdi), %esi
	movl	%esi, (%r8)
	cmpl	$2, (%rcx)
	jl	LBB0_6
## %bb.4:
	movl	$1, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rdx,8), %rsi
	movl	(%rdi), %ebx
	orl	%ebx, (%rsi)
	incq	%rdx
	movslq	(%rcx), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	callq	_au_sync
	movq	_MAC_RX_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MAC_TX_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MAC_BIG_ENDIAN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	24(%r15), %rdi
	movq	_MAC_FULL_DUPLEX@GOTPCREL(%rip), %rsi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.7:
	cmpq	$0, 8(%rdi)
	je	LBB0_9
## %bb.8:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rbx
	cmpq	(%rdi), %rbx
	je	LBB0_10
LBB0_9:
	movq	_MAC_DISABLE_RX_OWN@GOTPCREL(%rip), %rsi
LBB0_10:
	orl	%ecx, %eax
	orl	%edx, %eax
	orl	(%rsi), %eax
	movq	16(%r15), %rcx
	movl	%eax, (%rcx)
	movl	$33024, 12(%rcx)                ## imm = 0x8100
	xorl	%eax, %eax
	callq	_au_sync
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_au1000_debug,4,2               ## @au1000_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: au1000_init\n"

	.comm	_NUM_RX_DMA,4,2                 ## @NUM_RX_DMA
	.comm	_RX_DMA_ENABLE,4,2              ## @RX_DMA_ENABLE
	.comm	_MAC_RX_ENABLE,4,2              ## @MAC_RX_ENABLE
	.comm	_MAC_TX_ENABLE,4,2              ## @MAC_TX_ENABLE
	.comm	_MAC_BIG_ENDIAN,4,2             ## @MAC_BIG_ENDIAN
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_MAC_FULL_DUPLEX,4,2            ## @MAC_FULL_DUPLEX
	.comm	_MAC_DISABLE_RX_OWN,4,2         ## @MAC_DISABLE_RX_OWN
	.no_dead_strip	_au1000_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1000_init
_au1000_init:                           ; @au1000_init
	.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	x21, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _au1000_debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _au1000_debug@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #5
	b.lt	LBB0_2
; %bb.1:
	ldr	w1, [x21, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
LBB0_2:
	mov	x0, x21
	mov	w1, #1
	bl	_enable_mac
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x9, [x19, #16]
	str	wzr, [x9]
	ldp	x8, x10, [x19, #32]
	ldr	x10, [x10]
	ldr	w10, [x10]
	ubfx	w10, w10, #2, #2
	stp	w10, w10, [x19]
	ldr	x11, [x8]
	ldr	w12, [x11]
	ubfx	w10, w12, #2, #2
	str	w10, [x19, #8]
	ldr	x10, [x21]
	ldp	w14, w13, [x10, #16]
	orr	w13, w14, w13, lsl #8
	str	w13, [x9, #4]
	ldp	w14, w13, [x10, #8]
	lsl	w14, w14, #16
	orr	w13, w14, w13, lsl #24
	ldp	w10, w14, [x10]
	orr	w13, w13, w14, lsl #8
	orr	w10, w13, w10
	str	w10, [x9, #8]
Lloh5:
	adrp	x9, _NUM_RX_DMA@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NUM_RX_DMA@GOTPAGEOFF]
	ldr	w10, [x9]
	cmp	w10, #1
	b.lt	LBB0_6
; %bb.3:
Lloh7:
	adrp	x10, _RX_DMA_ENABLE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _RX_DMA_ENABLE@GOTPAGEOFF]
	ldr	w13, [x10]
	orr	w12, w12, w13
	str	w12, [x11]
	ldr	w11, [x9]
	cmp	w11, #2
	b.lt	LBB0_6
; %bb.4:
	mov	w11, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x8, x11, lsl #3]
	ldr	w13, [x12]
	ldr	w14, [x10]
	orr	w13, w13, w14
	str	w13, [x12]
	add	x11, x11, #1
	ldrsw	x12, [x9]
	cmp	x11, x12
	b.lt	LBB0_5
LBB0_6:
	bl	_au_sync
Lloh9:
	adrp	x8, _MAC_RX_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAC_RX_ENABLE@GOTPAGEOFF]
Lloh11:
	adrp	x9, _MAC_TX_ENABLE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MAC_TX_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _MAC_BIG_ENDIAN@GOTPAGE
Lloh16:
	ldr	x10, [x10, _MAC_BIG_ENDIAN@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	ldr	x11, [x19, #24]
	cbz	x11, LBB0_9
; %bb.7:
	ldr	x12, [x11, #8]
	cbz	x12, LBB0_10
; %bb.8:
Lloh18:
	adrp	x12, _DUPLEX_FULL@GOTPAGE
Lloh19:
	ldr	x12, [x12, _DUPLEX_FULL@GOTPAGEOFF]
Lloh20:
	ldr	x12, [x12]
	ldr	x11, [x11]
	cmp	x12, x11
	b.ne	LBB0_10
LBB0_9:
Lloh21:
	adrp	x11, _MAC_FULL_DUPLEX@GOTPAGE
Lloh22:
	ldr	x11, [x11, _MAC_FULL_DUPLEX@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh23:
	adrp	x11, _MAC_DISABLE_RX_OWN@GOTPAGE
Lloh24:
	ldr	x11, [x11, _MAC_DISABLE_RX_OWN@GOTPAGEOFF]
LBB0_11:
	orr	w8, w9, w8
	orr	w8, w8, w10
	ldr	w9, [x11]
	orr	w8, w8, w9
	ldr	x9, [x19, #16]
	str	w8, [x9]
	mov	w8, #33024
	str	w8, [x9, #12]
	bl	_au_sync
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_au1000_debug,4,2               ; @au1000_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: au1000_init\n"

	.comm	_NUM_RX_DMA,4,2                 ; @NUM_RX_DMA
	.comm	_RX_DMA_ENABLE,4,2              ; @RX_DMA_ENABLE
	.comm	_MAC_RX_ENABLE,4,2              ; @MAC_RX_ENABLE
	.comm	_MAC_TX_ENABLE,4,2              ; @MAC_TX_ENABLE
	.comm	_MAC_BIG_ENDIAN,4,2             ; @MAC_BIG_ENDIAN
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_MAC_FULL_DUPLEX,4,2            ; @MAC_FULL_DUPLEX
	.comm	_MAC_DISABLE_RX_OWN,4,2         ; @MAC_DISABLE_RX_OWN
	.no_dead_strip	_au1000_init
.subsections_via_symbols
