	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nixge_open
_nixge_open:                            ## @nixge_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
	movq	%r14, %rdi
	callq	_nixge_device_reset
	movl	16(%rbx), %r8d
	movl	20(%rbx), %esi
	movq	_nixge_handle_link_change@GOTPCREL(%rip), %rdx
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_of_phy_connect
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_phy_start
	movq	_nixge_dma_err_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%rbx, %rdx
	callq	_tasklet_init
	movq	%rbx, %rdi
	addq	$12, %rdi
	callq	_napi_enable
	movl	4(%rbx), %edi
	movq	_nixge_tx_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_request_irq
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movl	8(%rbx), %edi
	movq	_nixge_rx_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %r13d
	movl	4(%rbx), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movl	%r13d, %r12d
LBB0_6:
	movq	%r15, %rdi
	callq	_phy_stop
	movq	%r15, %rdi
	callq	_phy_disconnect
	movq	%rbx, %rdi
	callq	_tasklet_kill
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	jmp	LBB0_7
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_7
LBB0_4:
	movq	%r14, %rdi
	callq	_netif_start_queue
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nixge_handle_link_change,4,2   ## @nixge_handle_link_change
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_nixge_dma_err_handler,4,2      ## @nixge_dma_err_handler
	.comm	_nixge_tx_irq,4,2               ## @nixge_tx_irq
	.comm	_nixge_rx_irq,4,2               ## @nixge_rx_irq
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"request_irq() failed\n"

	.no_dead_strip	_nixge_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nixge_open
_nixge_open:                            ; @nixge_open
	.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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x19
	bl	_nixge_device_reset
	ldp	w4, w1, [x20, #16]
Lloh0:
	adrp	x2, _nixge_handle_link_change@GOTPAGE
Lloh1:
	ldr	x2, [x2, _nixge_handle_link_change@GOTPAGEOFF]
	mov	x0, x19
	mov	w3, #0
	bl	_of_phy_connect
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	bl	_phy_start
Lloh2:
	adrp	x8, _nixge_dma_err_handler@GOTPAGE
Lloh3:
	ldr	x8, [x8, _nixge_dma_err_handler@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x20
	bl	_tasklet_init
	add	x0, x20, #12
	bl	_napi_enable
	ldr	w0, [x20, #4]
Lloh5:
	adrp	x8, _nixge_tx_irq@GOTPAGE
Lloh6:
	ldr	x8, [x8, _nixge_tx_irq@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w3, [x19]
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x20, #8]
Lloh8:
	adrp	x8, _nixge_rx_irq@GOTPAGE
Lloh9:
	ldr	x8, [x8, _nixge_rx_irq@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w3, [x19]
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.3:
	ldr	w0, [x20, #4]
	mov	x1, x19
	bl	_free_irq
LBB0_4:
	mov	x0, x21
	bl	_phy_stop
	mov	x0, x21
	bl	_phy_disconnect
	mov	x0, x20
	bl	_tasklet_kill
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	b	LBB0_7
LBB0_5:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_netif_start_queue
LBB0_7:
	mov	x0, x22
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_nixge_handle_link_change,4,2   ; @nixge_handle_link_change
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_nixge_dma_err_handler,4,2      ; @nixge_dma_err_handler
	.comm	_nixge_tx_irq,4,2               ; @nixge_tx_irq
	.comm	_nixge_rx_irq,4,2               ; @nixge_rx_irq
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"request_irq() failed\n"

	.no_dead_strip	_nixge_open
.subsections_via_symbols
