	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_netif_dbg
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_au1000_enable_mac
	leaq	12(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	16(%r12), %rsi
	addq	$4, %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	32(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	shrl	$2, %eax
	andl	$3, %eax
	movl	%eax, (%r12)
	movl	%eax, 4(%r12)
	movq	16(%r12), %rsi
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	shrl	$2, %eax
	andl	$3, %eax
	movl	%eax, 8(%r12)
	movq	(%r15), %rax
	movl	20(%rax), %edi
	shll	$8, %edi
	orl	16(%rax), %edi
	addq	$12, %rsi
	callq	_writel
	movq	(%r15), %rax
	movl	12(%rax), %ecx
	shll	$24, %ecx
	movl	4(%rax), %edi
	movl	8(%rax), %edx
	shll	$16, %edx
	orl	%ecx, %edx
	shll	$8, %edi
	orl	%edx, %edi
	orl	(%rax), %edi
	movq	16(%r12), %rsi
	addq	$8, %rsi
	callq	_writel
	movq	_NUM_RX_DMA@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	movq	24(%r12), %rcx
	xorl	%edx, %edx
	movq	_RX_DMA_ENABLE@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	movq	(%rcx,%rdx,8), %rbx
	orl	%edi, (%rbx)
	incq	%rdx
	movslq	(%rax), %rdi
	cmpq	%rdi, %rdx
	jl	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	callq	_wmb
	movq	_MAC_RX_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MAC_TX_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_MAC_BIG_ENDIAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%r15), %rsi
	movq	_MAC_FULL_DUPLEX@GOTPCREL(%rip), %rdx
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.4:
	cmpq	$0, 8(%rsi)
	je	LBB0_6
## %bb.5:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rbx
	cmpq	(%rsi), %rbx
	je	LBB0_7
LBB0_6:
	movq	_MAC_DISABLE_RX_OWN@GOTPCREL(%rip), %rdx
LBB0_7:
	orl	%eax, %edi
	orl	%ecx, %edi
	orl	(%rdx), %edi
	movq	16(%r12), %rsi
	addq	$4, %rsi
	callq	_writel
	movq	16(%r12), %rsi
	movl	$33024, %edi                    ## imm = 0x8100
	callq	_writel
	xorl	%eax, %eax
	callq	_wmb
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"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, _hw@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x2, x21
	bl	_netif_dbg
	mov	x0, x21
	mov	w1, #1
	bl	_au1000_enable_mac
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #16]
	add	x1, x8, #4
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	w8, [x8]
	ubfx	w8, w8, #2, #2
	stp	w8, w8, [x19]
	ldp	x9, x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w8, [x8]
	ubfx	w8, w8, #2, #2
	str	w8, [x19, #8]
	ldr	x8, [x21]
	ldp	w8, w10, [x8, #16]
	orr	w0, w8, w10, lsl #8
	add	x1, x9, #12
	bl	_writel
	ldr	x8, [x21]
	ldp	w10, w9, [x8, #8]
	lsl	w10, w10, #16
	orr	w9, w10, w9, lsl #24
	ldp	w8, w10, [x8]
	orr	w9, w9, w10, lsl #8
	orr	w0, w9, w8
	ldr	x8, [x19, #16]
	add	x1, x8, #8
	bl	_writel
Lloh5:
	adrp	x8, _NUM_RX_DMA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NUM_RX_DMA@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
	ldr	x10, [x19, #24]
Lloh7:
	adrp	x11, _RX_DMA_ENABLE@GOTPAGE
Lloh8:
	ldr	x11, [x11, _RX_DMA_ENABLE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	ldr	x13, [x10, x9, lsl #3]
	ldr	w14, [x13]
	orr	w12, w14, w12
	str	w12, [x13]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_2
LBB0_3:
	bl	_wmb
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, [x21, #8]
	cbz	x11, LBB0_6
; %bb.4:
	ldr	x12, [x11, #8]
	cbz	x12, LBB0_7
; %bb.5:
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_7
LBB0_6:
Lloh21:
	adrp	x11, _MAC_FULL_DUPLEX@GOTPAGE
Lloh22:
	ldr	x11, [x11, _MAC_FULL_DUPLEX@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh23:
	adrp	x11, _MAC_DISABLE_RX_OWN@GOTPAGE
Lloh24:
	ldr	x11, [x11, _MAC_DISABLE_RX_OWN@GOTPAGEOFF]
LBB0_8:
	orr	w8, w9, w8
	orr	w8, w8, w10
	ldr	w9, [x11]
	orr	w0, w8, w9
	ldr	x8, [x19, #16]
	add	x1, x8, #4
	bl	_writel
	ldr	x1, [x19, #16]
	mov	w0, #33024
	bl	_writel
	bl	_wmb
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"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
