	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tse_open
_tse_open:                              ## @tse_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, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	24(%rax), %rax
	movq	%r12, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_26
LBB0_3:
	movq	%r12, %rdi
	callq	_netif_msg_ifup
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_warn
LBB0_5:
	movl	(%r12), %edx
	leal	-3585(%rdx), %eax
	cmpl	$-258, %eax                     ## imm = 0xFEFE
	ja	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_netdev_warn
LBB0_7:
	leaq	16(%r12), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movq	%r14, %rdi
	callq	_init_sgmii_pcs
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	movq	%r15, %rdi
	callq	_spin_unlock
	jmp	LBB0_26
LBB0_9:
	movq	%r12, %rdi
	callq	_reset_mac
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_netdev_dbg
LBB0_11:
	movq	%r12, %rdi
	callq	_init_mac
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_spin_unlock
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_26:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	24(%r12), %rax
	movq	%r12, %rdi
	callq	*40(%rax)
	movq	_dma_rx_num@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_dma_tx_num@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r12)
	movq	%r12, %rdi
	callq	_alloc_init_skbufs
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_2
LBB0_15:
	movl	8(%r12), %edi
	movq	_altera_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	16(%r14), %ecx
	movq	%r14, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:
	movl	%eax, %ebx
	movl	8(%r12), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_17
LBB0_18:
	movl	12(%r12), %edi
	movq	_altera_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movl	16(%r14), %ecx
	movq	%r14, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %ebx
	movl	12(%r12), %edx
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movl	8(%r12), %edi
	movq	%r14, %rsi
	callq	_free_irq
LBB0_17:
	movq	%r14, %rdi
	callq	_free_skbufs
	jmp	LBB0_26
LBB0_20:
	leaq	36(%r12), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	24(%r12), %rax
	movq	%r12, %rdi
	callq	*32(%rax)
	movq	24(%r12), %rax
	movq	%r12, %rdi
	callq	*24(%rax)
	cmpl	$0, 4(%r12)
	jle	LBB0_23
## %bb.21:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movq	40(%r12), %rsi
	addq	%rbx, %rsi
	movq	%r12, %rdi
	callq	*16(%rax)
	incq	%r13
	movslq	4(%r12), %rax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_22
LBB0_23:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.24:
	callq	_phy_start
LBB0_25:
	movq	%r12, %rdi
	addq	$32, %rdi
	callq	_napi_enable
	movq	%r14, %rdi
	callq	_netif_start_queue
	movq	24(%r12), %rax
	movq	%r12, %rdi
	callq	*8(%rax)
	movq	%r15, %rdi
	callq	_spin_lock
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_tse_set_mac
	movq	%r15, %rdi
	callq	_spin_unlock
	xorl	%ebx, %ebx
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot initialize DMA\n"

L_.str.1:                               ## @.str.1
	.asciz	"device MAC address %pM\n"

L_.str.2:                               ## @.str.2
	.asciz	"TSE revision %x\n"

L_.str.3:                               ## @.str.3
	.asciz	"Cannot init the SGMII PCS (error: %d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"Cannot reset MAC core (error: %d)\n"

L_.str.5:                               ## @.str.5
	.asciz	"Cannot init MAC core (error: %d)\n"

	.comm	_dma_rx_num,4,2                 ## @dma_rx_num
	.comm	_dma_tx_num,4,2                 ## @dma_tx_num
L_.str.6:                               ## @.str.6
	.asciz	"DMA descriptors initialization failed\n"

	.comm	_altera_isr,4,2                 ## @altera_isr
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.7:                               ## @.str.7
	.asciz	"Unable to register RX interrupt %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"Unable to register TX interrupt %d\n"

	.no_dead_strip	_tse_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tse_open
_tse_open:                              ; @tse_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	blr	x8
	cbz	w0, LBB0_3
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	bl	_netdev_err
	b	LBB0_13
LBB0_3:
	mov	x0, x20
	bl	_netif_msg_ifup
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w2, [x19]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_warn
LBB0_5:
	ldr	w2, [x20]
	sub	w8, w2, #3585
	cmn	w8, #258
	b.hi	LBB0_7
; %bb.6:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netdev_warn
LBB0_7:
	add	x21, x20, #16
	mov	x0, x21
	bl	_spin_lock
	mov	x0, x19
	bl	_init_sgmii_pcs
	cbz	w0, LBB0_9
; %bb.8:
	mov	x22, x0
	str	x22, [sp]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	mov	x0, x21
	bl	_spin_unlock
	b	LBB0_13
LBB0_9:
	mov	x0, x20
	bl	_reset_mac
	cbz	w0, LBB0_11
; %bb.10:
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
LBB0_11:
	mov	x0, x20
	bl	_init_mac
	mov	x22, x0
	mov	x0, x21
	bl	_spin_unlock
	cbz	w22, LBB0_14
; %bb.12:
	str	x22, [sp]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
LBB0_13:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_14:
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #40]
	mov	x0, x20
	blr	x8
Lloh12:
	adrp	x8, _dma_rx_num@GOTPAGE
Lloh13:
	ldr	x8, [x8, _dma_rx_num@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x20, #4]
Lloh15:
	adrp	x8, _dma_tx_num@GOTPAGE
Lloh16:
	ldr	x8, [x8, _dma_tx_num@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x20, #48]
	mov	x0, x20
	bl	_alloc_init_skbufs
	cbz	w0, LBB0_16
; %bb.15:
	mov	x22, x0
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_2
LBB0_16:
Lloh20:
	adrp	x23, _altera_isr@GOTPAGE
Lloh21:
	ldr	x23, [x23, _altera_isr@GOTPAGEOFF]
	ldr	w0, [x20, #8]
	ldr	w1, [x23]
Lloh22:
	adrp	x24, _IRQF_SHARED@GOTPAGE
Lloh23:
	ldr	x24, [x24, _IRQF_SHARED@GOTPAGEOFF]
	ldr	w2, [x24]
	ldr	w3, [x19, #16]
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_18
; %bb.17:
	mov	x22, x0
	ldr	w8, [x20, #8]
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str.7@PAGE
Lloh25:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	b	LBB0_20
LBB0_18:
	ldr	w0, [x20, #12]
	ldr	w1, [x23]
	ldr	w2, [x24]
	ldr	w3, [x19, #16]
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_21
; %bb.19:
	mov	x22, x0
	ldr	w8, [x20, #12]
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.8@PAGE
Lloh27:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	ldr	w0, [x20, #8]
	mov	x1, x19
	bl	_free_irq
LBB0_20:
	mov	x0, x19
	bl	_free_skbufs
	b	LBB0_13
LBB0_21:
	add	x22, x20, #36
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #32]
	mov	x0, x20
	blr	x8
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #24]
	mov	x0, x20
	blr	x8
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.22:
	mov	x23, #0
	mov	x24, #0
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #16]
	ldr	x9, [x20, #40]
	add	x1, x9, x23
	mov	x0, x20
	blr	x8
	add	x24, x24, #1
	ldrsw	x8, [x20, #4]
	add	x23, x23, #4
	cmp	x24, x8
	b.lt	LBB0_23
LBB0_24:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_26
; %bb.25:
	bl	_phy_start
LBB0_26:
	add	x0, x20, #32
	bl	_napi_enable
	mov	x0, x19
	bl	_netif_start_queue
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #8]
	mov	x0, x20
	blr	x8
	mov	x0, x21
	bl	_spin_lock
	mov	x0, x20
	mov	w1, #1
	bl	_tse_set_mac
	mov	x0, x21
	bl	_spin_unlock
	mov	w22, #0
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot initialize DMA\n"

l_.str.1:                               ; @.str.1
	.asciz	"device MAC address %pM\n"

l_.str.2:                               ; @.str.2
	.asciz	"TSE revision %x\n"

l_.str.3:                               ; @.str.3
	.asciz	"Cannot init the SGMII PCS (error: %d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"Cannot reset MAC core (error: %d)\n"

l_.str.5:                               ; @.str.5
	.asciz	"Cannot init MAC core (error: %d)\n"

	.comm	_dma_rx_num,4,2                 ; @dma_rx_num
	.comm	_dma_tx_num,4,2                 ; @dma_tx_num
l_.str.6:                               ; @.str.6
	.asciz	"DMA descriptors initialization failed\n"

	.comm	_altera_isr,4,2                 ; @altera_isr
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.7:                               ; @.str.7
	.asciz	"Unable to register RX interrupt %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"Unable to register TX interrupt %d\n"

	.no_dead_strip	_tse_open
.subsections_via_symbols
