	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fjes_close
_fjes_close:                            ## @fjes_close
	.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, %rbx
	callq	_netdev_priv
	movq	%rax, %r12
	leaq	24(%rax), %r14
	movq	%rbx, %rdi
	callq	_netif_tx_stop_all_queues
	movq	%rbx, %rdi
	callq	_netif_carrier_off
	movq	%r14, %rdi
	callq	_fjes_hw_raise_epstop
	leaq	56(%r12), %rdi
	callq	_napi_disable
	leaq	40(%r12), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	cmpl	$0, 24(%r12)
	jle	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	movq	_EP_PARTNER_SHARED@GOTPCREL(%rip), %r13
	movq	_FJES_RX_POLL_WORK@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	28(%r12), %eax
	cmpq	%rax, %rbx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_fjes_hw_get_partner_ep_status
	cmpq	(%r13), %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %eax
	notl	%eax
	movq	48(%r12), %rcx
	movq	(%rcx,%rbx,8), %rcx
	andl	%eax, (%rcx)
	jmp	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	%r12, %rdi
	callq	_fjes_free_irq
	leaq	20(%r12), %rdi
	callq	_cancel_delayed_work_sync
	leaq	16(%r12), %rdi
	callq	_cancel_work_sync
	movq	$0, 8(%r12)
	leaq	4(%r12), %rdi
	callq	_cancel_work_sync
	movq	%r12, %rdi
	callq	_cancel_work_sync
	leaq	36(%r12), %rdi
	callq	_cancel_work_sync
	movq	%r12, %rdi
	addq	$32, %rdi
	callq	_cancel_work_sync
	movq	%r14, %rdi
	callq	_fjes_hw_wait_epstop
	movq	%r12, %rdi
	callq	_fjes_free_resources
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EP_PARTNER_SHARED,8,3          ## @EP_PARTNER_SHARED
	.comm	_FJES_RX_POLL_WORK,4,2          ## @FJES_RX_POLL_WORK
	.no_dead_strip	_fjes_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fjes_close
_fjes_close:                            ; @fjes_close
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	add	x20, x0, #24
	mov	x0, x21
	bl	_netif_tx_stop_all_queues
	mov	x0, x21
	bl	_netif_carrier_off
	mov	x0, x20
	bl	_fjes_hw_raise_epstop
	add	x0, x19, #56
	bl	_napi_disable
	add	x21, x19, #40
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #24]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x22, #0
Lloh0:
	adrp	x23, _EP_PARTNER_SHARED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EP_PARTNER_SHARED@GOTPAGEOFF]
Lloh2:
	adrp	x24, _FJES_RX_POLL_WORK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _FJES_RX_POLL_WORK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20]
	cmp	x22, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #28]
	cmp	x22, x8
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_fjes_hw_get_partner_ep_status
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x24]
	ldr	x9, [x19, #48]
	ldr	x9, [x9, x22, lsl #3]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
	b	LBB0_2
LBB0_6:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_fjes_free_irq
	add	x0, x19, #20
	bl	_cancel_delayed_work_sync
	add	x0, x19, #16
	bl	_cancel_work_sync
	str	xzr, [x19, #8]
	add	x0, x19, #4
	bl	_cancel_work_sync
	mov	x0, x19
	bl	_cancel_work_sync
	add	x0, x19, #36
	bl	_cancel_work_sync
	add	x0, x19, #32
	bl	_cancel_work_sync
	mov	x0, x20
	bl	_fjes_hw_wait_epstop
	mov	x0, x19
	bl	_fjes_free_resources
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EP_PARTNER_SHARED,8,3          ; @EP_PARTNER_SHARED
	.comm	_FJES_RX_POLL_WORK,4,2          ; @FJES_RX_POLL_WORK
	.no_dead_strip	_fjes_close
.subsections_via_symbols
