	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axienet_open
_axienet_open:                          ## @axienet_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, %rbx
	leaq	4(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	40(%rbx), %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_axienet_mdio_disable
	movq	%r14, %rdi
	callq	_axienet_device_reset
	movq	%rbx, %rdi
	callq	_axienet_mdio_enable
	movl	%eax, %r15d
	movq	40(%rbx), %rdi
	callq	_mutex_unlock
	testl	%r15d, %r15d
	js	LBB0_10
## %bb.1:
	movl	36(%rbx), %edi
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_phylink_of_phy_connect
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r15d
	movq	24(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_3:
	movl	36(%rbx), %edi
	callq	_phylink_start
	movq	%rbx, %r12
	addq	$32, %r12
	movq	_axienet_dma_err_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_tasklet_init
	movq	(%rbx), %rdi
	movq	_axienet_tx_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	(%r14), %ecx
	movq	%r14, %r8
	callq	_request_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movq	8(%rbx), %rdi
	movq	_axienet_rx_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movl	(%r14), %ecx
	movq	%r14, %r8
	callq	_request_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	16(%rbx), %rdi
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	jle	LBB0_10
## %bb.6:
	movq	_axienet_eth_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movl	(%r14), %ecx
	movq	%r14, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movl	%eax, %r13d
	movq	8(%rbx), %rdi
	movq	%r14, %rsi
	callq	_free_irq
	movl	%r13d, %r15d
LBB0_8:
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	callq	_free_irq
LBB0_9:
	movl	36(%rbx), %edi
	callq	_phylink_stop
	movl	36(%rbx), %edi
	callq	_phylink_disconnect_phy
	movq	%r12, %rdi
	callq	_tasklet_kill
	movq	24(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"axienet_open()\n"

L_.str.1:                               ## @.str.1
	.asciz	"phylink_of_phy_connect() failed: %d\n"

	.comm	_axienet_dma_err_handler,4,2    ## @axienet_dma_err_handler
	.comm	_axienet_tx_irq,4,2             ## @axienet_tx_irq
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_axienet_rx_irq,4,2             ## @axienet_rx_irq
	.comm	_axienet_eth_irq,4,2            ## @axienet_eth_irq
L_.str.2:                               ## @.str.2
	.asciz	"request_irq() failed\n"

	.no_dead_strip	_axienet_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axienet_open
_axienet_open:                          ; @axienet_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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	add	x0, x20, #4
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x19, #40]
	bl	_mutex_lock
	mov	x0, x19
	bl	_axienet_mdio_disable
	mov	x0, x20
	bl	_axienet_device_reset
	mov	x0, x19
	bl	_axienet_mdio_enable
	mov	x22, x0
	ldr	x0, [x19, #40]
	bl	_mutex_unlock
	tbnz	w22, #31, LBB0_8
; %bb.1:
	ldr	w0, [x19, #36]
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
	mov	w2, #0
	bl	_phylink_of_phy_connect
	cbz	w0, LBB0_3
; %bb.2:
	mov	x22, x0
	ldr	x0, [x19, #24]
	str	x22, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_3:
	ldr	w0, [x19, #36]
	bl	_phylink_start
	add	x21, x19, #32
Lloh4:
	adrp	x8, _axienet_dma_err_handler@GOTPAGE
Lloh5:
	ldr	x8, [x8, _axienet_dma_err_handler@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x19
	bl	_tasklet_init
Lloh7:
	adrp	x8, _axienet_tx_irq@GOTPAGE
Lloh8:
	ldr	x8, [x8, _axienet_tx_irq@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x23, _IRQF_SHARED@GOTPAGE
Lloh11:
	ldr	x23, [x23, _IRQF_SHARED@GOTPAGEOFF]
	ldr	w2, [x23]
	ldr	w3, [x20]
	mov	x4, x20
	bl	_request_irq
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	x0, [x19, #8]
Lloh12:
	adrp	x8, _axienet_rx_irq@GOTPAGE
Lloh13:
	ldr	x8, [x8, _axienet_rx_irq@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x23]
	ldr	w3, [x20]
	mov	x4, x20
	bl	_request_irq
	mov	x22, x0
	cbz	w0, LBB0_9
LBB0_5:
	ldr	x0, [x19]
	mov	x1, x20
	bl	_free_irq
LBB0_6:
	ldr	w0, [x19, #36]
	bl	_phylink_stop
	ldr	w0, [x19, #36]
	bl	_phylink_disconnect_phy
	mov	x0, x21
	bl	_tasklet_kill
	ldr	x0, [x19, #24]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_7:
	bl	_dev_err
LBB0_8:
	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_9:
	ldr	x0, [x19, #16]
	cmp	x0, #1
	b.lt	LBB0_12
; %bb.10:
Lloh17:
	adrp	x8, _axienet_eth_irq@GOTPAGE
Lloh18:
	ldr	x8, [x8, _axienet_eth_irq@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [x23]
	ldr	w3, [x20]
	mov	x4, x20
	bl	_request_irq
	mov	x22, x0
	cbz	w0, LBB0_8
; %bb.11:
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_free_irq
	b	LBB0_5
LBB0_12:
	mov	w22, #0
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"axienet_open()\n"

l_.str.1:                               ; @.str.1
	.asciz	"phylink_of_phy_connect() failed: %d\n"

	.comm	_axienet_dma_err_handler,4,2    ; @axienet_dma_err_handler
	.comm	_axienet_tx_irq,4,2             ; @axienet_tx_irq
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_axienet_rx_irq,4,2             ; @axienet_rx_irq
	.comm	_axienet_eth_irq,4,2            ; @axienet_eth_irq
l_.str.2:                               ; @.str.2
	.asciz	"request_irq() failed\n"

	.no_dead_strip	_axienet_open
.subsections_via_symbols
