	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_eth_open
_sh_eth_open:                           ## @sh_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	8(%rax), %rdi
	callq	_pm_runtime_get_sync
	leaq	16(%r14), %r15
	movq	%r15, %rdi
	callq	_napi_enable
	movq	_sh_eth_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%r14), %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:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_err
	jmp	LBB0_7
LBB0_2:
	movq	%rbx, %rdi
	callq	_sh_eth_ring_init
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_sh_eth_dev_init
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_sh_eth_phy_start
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
LBB0_7:
	movq	%r15, %rdi
	callq	_napi_disable
	movq	8(%r14), %rdi
	callq	_pm_runtime_put_sync
LBB0_8:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	callq	_netif_start_queue
	movl	$1, (%r14)
	xorl	%r12d, %r12d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_sh_eth_interrupt,4,2           ## @sh_eth_interrupt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can not assign IRQ number\n"

	.no_dead_strip	_sh_eth_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_eth_open
_sh_eth_open:                           ; @sh_eth_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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_pm_runtime_get_sync
	add	x21, x19, #16
	mov	x0, x21
	bl	_napi_enable
Lloh0:
	adrp	x8, _sh_eth_interrupt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sh_eth_interrupt@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x8, [x19, #24]
	ldr	w2, [x8]
	ldp	w0, w3, [x20]
	mov	x4, x20
	bl	_request_irq
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	b	LBB0_6
LBB0_2:
	mov	x0, x20
	bl	_sh_eth_ring_init
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_sh_eth_dev_init
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_sh_eth_phy_start
	mov	x22, x0
	cbz	w0, LBB0_8
LBB0_5:
	ldr	w0, [x20]
	mov	x1, x20
	bl	_free_irq
LBB0_6:
	mov	x0, x21
	bl	_napi_disable
	ldr	x0, [x19, #8]
	bl	_pm_runtime_put_sync
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
LBB0_8:
	mov	x0, x20
	bl	_netif_start_queue
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_sh_eth_interrupt,4,2           ; @sh_eth_interrupt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can not assign IRQ number\n"

	.no_dead_strip	_sh_eth_open
.subsections_via_symbols
