	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nb8800_open
_nb8800_open:                           ## @nb8800_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	%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, %r14
	movq	_NB8800_RXC_SR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$15, %edx
	callq	_nb8800_writel
	movq	_NB8800_TXC_SR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$15, %edx
	callq	_nb8800_writel
	movq	%r15, %rdi
	callq	_nb8800_dma_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	(%r15), %r12d
	movq	_nb8800_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	4(%r15), %rdi
	callq	_dev_name
	movl	%r12d, %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	movq	%r15, %r8
	callq	_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_4:
	movq	%r15, %rdi
	callq	_nb8800_dma_free
	jmp	LBB0_5
LBB0_2:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_nb8800_mac_rx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_nb8800_mac_tx
	movl	4(%r14), %r8d
	movl	8(%r14), %esi
	movq	_nb8800_link_reconfigure@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_of_phy_connect
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_nb8800_pause_adv
	movq	%r15, %rdi
	callq	_netdev_reset_queue
	movq	%r14, %rdi
	callq	_napi_enable
	movq	%r15, %rdi
	callq	_netif_start_queue
	movq	%r15, %rdi
	callq	_nb8800_start_rx
	movq	%r12, %rdi
	callq	_phy_start
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	(%r15), %edi
	movq	%r15, %rsi
	callq	_free_irq
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_NB8800_RXC_SR,4,2              ## @NB8800_RXC_SR
	.comm	_NB8800_TXC_SR,4,2              ## @NB8800_TXC_SR
	.comm	_nb8800_irq,4,2                 ## @nb8800_irq
	.comm	_nb8800_link_reconfigure,4,2    ## @nb8800_link_reconfigure
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_nb8800_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nb8800_open
_nb8800_open:                           ; @nb8800_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
Lloh0:
	adrp	x8, _NB8800_RXC_SR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NB8800_RXC_SR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #15
	bl	_nb8800_writel
Lloh3:
	adrp	x8, _NB8800_TXC_SR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NB8800_TXC_SR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #15
	bl	_nb8800_writel
	mov	x0, x19
	bl	_nb8800_dma_init
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	ldr	w21, [x0], #4
Lloh6:
	adrp	x8, _nb8800_irq@GOTPAGE
Lloh7:
	ldr	x8, [x8, _nb8800_irq@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	bl	_dev_name
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	mov	x21, x0
	cbz	w0, LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_nb8800_dma_free
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	mov	w1, #1
	bl	_nb8800_mac_rx
	mov	x0, x19
	mov	w1, #1
	bl	_nb8800_mac_tx
Lloh9:
	adrp	x8, _nb8800_link_reconfigure@GOTPAGE
Lloh10:
	ldr	x8, [x8, _nb8800_link_reconfigure@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	ldp	w4, w1, [x20, #4]
	mov	x0, x19
	mov	w3, #0
	bl	_of_phy_connect
	cbz	x0, LBB0_6
; %bb.4:
	mov	x21, x0
	mov	x0, x19
	bl	_nb8800_pause_adv
	mov	x0, x19
	bl	_netdev_reset_queue
	mov	x0, x20
	bl	_napi_enable
	mov	x0, x19
	bl	_netif_start_queue
	mov	x0, x19
	bl	_nb8800_start_rx
	mov	x0, x21
	bl	_phy_start
	mov	w21, #0
LBB0_5:
	mov	x0, x21
	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
LBB0_6:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	w0, [x19]
	mov	x1, x19
	bl	_free_irq
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NB8800_RXC_SR,4,2              ; @NB8800_RXC_SR
	.comm	_NB8800_TXC_SR,4,2              ; @NB8800_TXC_SR
	.comm	_nb8800_irq,4,2                 ; @nb8800_irq
	.comm	_nb8800_link_reconfigure,4,2    ; @nb8800_link_reconfigure
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_nb8800_open
.subsections_via_symbols
