	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv643xx_eth_open
_mv643xx_eth_open:                      ## @mv643xx_eth_open
	.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, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_INT_CAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_wrlp
	movq	_INT_CAUSE_EXT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_wrlp
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_rdlp
	movq	_mv643xx_eth_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %edi
	movl	4(%rbx), %ecx
	movq	%rbx, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_err
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_23
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_mv643xx_eth_recalc_skb_size
	leaq	56(%r15), %rdi
	callq	_napi_enable
	movq	_INT_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	cmpl	$0, 4(%r15)
	jle	LBB0_10
## %bb.3:
	xorl	%ebx, %ebx
	movq	_INT_MAX@GOTPCREL(%rip), %r13
	movq	_INT_RX_0@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_rxq_init
	testl	%eax, %eax
	jne	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r15), %rdi
	addq	%rbx, %rdi
	movl	(%r13), %esi
	callq	_rxq_refill
	movl	(%r14), %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	orl	%eax, (%r15)
	incq	%rbx
	movslq	4(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_10:
	cmpq	$0, 48(%r15)
	je	LBB0_12
## %bb.11:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	addq	(%rax), %rcx
	leaq	40(%r15), %rdi
	movq	%rcx, 40(%r15)
	callq	_add_timer
LBB0_12:
	cmpl	$0, 8(%r15)
	jle	LBB0_22
## %bb.13:
	xorl	%ebx, %ebx
	movq	_INT_TX_END_0@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_txq_init
	testl	%eax, %eax
	jne	LBB0_15
## %bb.21:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r14), %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	orl	%eax, (%r15)
	incq	%rbx
	cmpl	8(%r15), %ebx
	jl	LBB0_14
LBB0_22:
	movq	%r15, %rdi
	addq	$24, %rdi
	callq	_add_timer
	movq	%r15, %rdi
	callq	_port_start
	movq	_INT_MASK_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INT_EXT_LINK_PHY@GOTPCREL(%rip), %rax
	movq	_INT_EXT_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_wrlp
	movq	_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%r15, %rdi
	callq	_wrlp
	xorl	%r12d, %r12d
	jmp	LBB0_23
LBB0_5:
	movl	%eax, %r12d
	testl	%ebx, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_8
## %bb.6:
	incq	%rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	leaq	(%rbx,%rax), %rdi
	addq	$-2, %rdi
	callq	_rxq_deinit
	decq	%rbx
	cmpq	$1, %rbx
	jg	LBB0_7
	jmp	LBB0_8
LBB0_15:
	movl	%eax, %r12d
	testl	%ebx, %ebx
	je	LBB0_18
## %bb.16:
	incq	%rbx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	leaq	(%rbx,%rax), %rdi
	addq	$-2, %rdi
	callq	_txq_deinit
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_17
LBB0_18:
	cmpl	$0, 4(%r15)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_8
## %bb.19:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	addq	%rbx, %rdi
	callq	_rxq_deinit
	incq	%rbx
	movslq	4(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_20
LBB0_8:
	movl	(%r14), %edi
	movq	%r14, %rsi
	callq	_free_irq
LBB0_23:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_CAUSE,4,2                  ## @INT_CAUSE
	.comm	_INT_CAUSE_EXT,4,2              ## @INT_CAUSE_EXT
	.comm	_mv643xx_eth_irq,4,2            ## @mv643xx_eth_irq
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't assign irq\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_INT_EXT,4,2                    ## @INT_EXT
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_INT_RX_0,4,2                   ## @INT_RX_0
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_INT_TX_END_0,4,2               ## @INT_TX_END_0
	.comm	_INT_MASK_EXT,4,2               ## @INT_MASK_EXT
	.comm	_INT_EXT_LINK_PHY,4,2           ## @INT_EXT_LINK_PHY
	.comm	_INT_EXT_TX,4,2                 ## @INT_EXT_TX
	.comm	_INT_MASK,4,2                   ## @INT_MASK
	.no_dead_strip	_mv643xx_eth_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv643xx_eth_open
_mv643xx_eth_open:                      ; @mv643xx_eth_open
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _INT_CAUSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_CAUSE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_wrlp
Lloh3:
	adrp	x21, _INT_CAUSE_EXT@GOTPAGE
Lloh4:
	ldr	x21, [x21, _INT_CAUSE_EXT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_wrlp
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rdlp
Lloh5:
	adrp	x8, _mv643xx_eth_irq@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mv643xx_eth_irq@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	ldp	w0, w3, [x20]
	mov	x4, x20
	bl	_request_irq
	cbz	w0, LBB0_2
; %bb.1:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
Lloh13:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_23
LBB0_2:
	mov	x0, x19
	bl	_mv643xx_eth_recalc_skb_size
	add	x0, x19, #56
	bl	_napi_enable
Lloh16:
	adrp	x8, _INT_EXT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _INT_EXT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x22, #0
Lloh19:
	adrp	x23, _INT_MAX@GOTPAGE
Lloh20:
	ldr	x23, [x23, _INT_MAX@GOTPAGEOFF]
Lloh21:
	adrp	x24, _INT_RX_0@GOTPAGE
Lloh22:
	ldr	x24, [x24, _INT_RX_0@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_rxq_init
	cbnz	w0, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #16]
	add	x0, x22, x8
	ldr	w1, [x23]
	bl	_rxq_refill
	ldr	w8, [x24]
	lsl	w8, w8, w22
	ldp	w9, w10, [x19]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	orr	w8, w9, w8
	str	w8, [x19]
	add	x22, x22, #1
	cmp	x22, x10
	b.lt	LBB0_4
LBB0_6:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_8
; %bb.7:
Lloh23:
	adrp	x8, _jiffies@GOTPAGE
Lloh24:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
Lloh26:
	adrp	x9, _HZ@GOTPAGE
Lloh27:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh28:
	ldrsw	x9, [x9]
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #34
	add	w9, w9, w10
	add	x8, x8, w9, sxtw
	mov	x0, x19
	str	x8, [x0, #40]!
	bl	_add_timer
LBB0_8:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.9:
	mov	x22, #0
Lloh29:
	adrp	x23, _INT_TX_END_0@GOTPAGE
Lloh30:
	ldr	x23, [x23, _INT_TX_END_0@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_txq_init
	cbnz	w0, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x23]
	lsl	w8, w8, w22
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w8, [x19, #8]
	add	x22, x22, #1
	cmp	w22, w8
	b.lt	LBB0_10
LBB0_12:
	add	x0, x19, #24
	bl	_add_timer
	mov	x0, x19
	bl	_port_start
Lloh31:
	adrp	x8, _INT_MASK_EXT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _INT_MASK_EXT@GOTPAGEOFF]
Lloh33:
	adrp	x9, _INT_EXT_LINK_PHY@GOTPAGE
Lloh34:
	ldr	x9, [x9, _INT_EXT_LINK_PHY@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	ldr	w8, [x9]
Lloh37:
	adrp	x9, _INT_EXT_TX@GOTPAGE
Lloh38:
	ldr	x9, [x9, _INT_EXT_TX@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_wrlp
Lloh40:
	adrp	x8, _INT_MASK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _INT_MASK@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_wrlp
	mov	w21, #0
	b	LBB0_23
LBB0_13:
	mov	x21, x0
	cbz	w22, LBB0_22
; %bb.14:
	add	x22, x22, #1
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x8, x22, x8
	sub	x0, x8, #2
	bl	_rxq_deinit
	sub	x22, x22, #1
	cmp	x22, #1
	b.gt	LBB0_15
	b	LBB0_22
LBB0_16:
	mov	x21, x0
	cbz	w22, LBB0_19
; %bb.17:
	add	x22, x22, #1
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x8, x22, x8
	sub	x0, x8, #2
	bl	_txq_deinit
	sub	x22, x22, #1
	cmp	x22, #1
	b.hi	LBB0_18
LBB0_19:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.20:
	mov	x22, #0
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x22, x8
	bl	_rxq_deinit
	add	x22, x22, #1
	ldrsw	x8, [x19, #4]
	cmp	x22, x8
	b.lt	LBB0_21
LBB0_22:
	ldr	w0, [x20]
	mov	x1, x20
	bl	_free_irq
LBB0_23:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_CAUSE,4,2                  ; @INT_CAUSE
	.comm	_INT_CAUSE_EXT,4,2              ; @INT_CAUSE_EXT
	.comm	_mv643xx_eth_irq,4,2            ; @mv643xx_eth_irq
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't assign irq\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_INT_EXT,4,2                    ; @INT_EXT
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_INT_RX_0,4,2                   ; @INT_RX_0
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_INT_TX_END_0,4,2               ; @INT_TX_END_0
	.comm	_INT_MASK_EXT,4,2               ; @INT_MASK_EXT
	.comm	_INT_EXT_LINK_PHY,4,2           ; @INT_EXT_LINK_PHY
	.comm	_INT_EXT_TX,4,2                 ; @INT_EXT_TX
	.comm	_INT_MASK,4,2                   ; @INT_MASK
	.no_dead_strip	_mv643xx_eth_open
.subsections_via_symbols
