	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fjes_open
_fjes_open:                             ## @fjes_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, %r14
	callq	_netdev_priv
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_fjes_setup_resources
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	%r15, %r12
	addq	$16, %r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12)
	movq	%r15, %rdi
	callq	_napi_enable
	movq	%r12, %rdi
	callq	_fjes_hw_capture_interrupt_status
	movq	%r15, %rdi
	callq	_fjes_request_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_fjes_free_irq
	movq	%r15, %rdi
	callq	_napi_disable
LBB0_6:
	movq	%r15, %rdi
	callq	_fjes_free_resources
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_REG_ICTL_MASK_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_fjes_hw_set_irqmask
	movq	%r14, %rdi
	callq	_netif_tx_start_all_queues
	movq	%r14, %rdi
	callq	_netif_carrier_on
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_REG_ICTL_MASK_ALL,4,2          ## @REG_ICTL_MASK_ALL
	.no_dead_strip	_fjes_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fjes_open
_fjes_open:                             ; @fjes_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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_2:
	mov	x20, x0
	bl	_fjes_setup_resources
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.3:
	add	x22, x20, #16
	stp	xzr, xzr, [x22]
	mov	x0, x20
	bl	_napi_enable
	mov	x0, x22
	bl	_fjes_hw_capture_interrupt_status
	mov	x0, x20
	bl	_fjes_request_irq
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.4:
	mov	x0, x20
	bl	_fjes_free_irq
	mov	x0, x20
	bl	_napi_disable
LBB0_5:
	mov	x0, x20
	bl	_fjes_free_resources
LBB0_6:
	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_7:
Lloh3:
	adrp	x8, _REG_ICTL_MASK_ALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_ICTL_MASK_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	bl	_fjes_hw_set_irqmask
	mov	x0, x19
	bl	_netif_tx_start_all_queues
	mov	x0, x19
	bl	_netif_carrier_on
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_REG_ICTL_MASK_ALL,4,2          ; @REG_ICTL_MASK_ALL
	.no_dead_strip	_fjes_open
.subsections_via_symbols
