	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jme_link_change_tasklet
_jme_link_change_tasklet:               ## @jme_link_change_tasklet
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_atomic_dec_and_test
	testl	%eax, %eax
	je	LBB0_3
LBB0_1:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_jme_check_link
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	(%r15), %rax
	cmpq	%rax, (%rbx)
	jne	LBB0_9
	jmp	LBB0_27
LBB0_3:
	movq	_intr@GOTPCREL(%rip), %r15
	leaq	L_.str(%rip), %r12
	leaq	L_.str.1(%rip), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_atomic_dec_and_test
	testl	%eax, %eax
	jne	LBB0_1
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%r14, %rdi
	callq	_atomic_inc
	movl	(%r15), %esi
	movq	32(%rbx), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rcx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	callq	_netif_info
	movq	%r14, %rdi
	callq	_atomic_read
	cmpl	$1, %eax
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	(%r15), %esi
	movq	32(%rbx), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rcx
	jmp	LBB0_6
LBB0_8:
	movq	(%r15), %rax
LBB0_9:
	movq	%rax, (%rbx)
	movq	%r15, %rdi
	callq	_netif_stop_queue
	movq	%rbx, %rdi
	callq	_jme_pseudo_hotplug_enabled
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_jme_stop_shutdown_timer
LBB0_11:
	movq	%rbx, %rdi
	callq	_jme_stop_pcc_timer
	leaq	20(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_tasklet_disable
	leaq	16(%rbx), %r13
	movq	%r13, %rdi
	callq	_tasklet_disable
	leaq	12(%rbx), %r12
	movq	%r12, %rdi
	callq	_tasklet_disable
	movq	%r15, %rdi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movq	%rbx, %rdi
	callq	_jme_disable_rx_engine
	movq	%rbx, %rdi
	callq	_jme_disable_tx_engine
	movq	%rbx, %rdi
	callq	_jme_reset_mac_processor
	movq	%rbx, %rdi
	callq	_jme_free_rx_resources
	movq	%rbx, %rdi
	callq	_jme_free_tx_resources
	movq	_JME_FLAG_POLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_jme_polling_mode
LBB0_14:
	movq	%r15, %rdi
	callq	_netif_carrier_off
LBB0_15:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_jme_check_link
	movq	%r15, %rdi
	callq	_netif_carrier_ok
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	callq	_jme_setup_rx_resources
	testl	%eax, %eax
	je	LBB0_20
## %bb.17:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_25
LBB0_18:
	callq	_jme_pseudo_hotplug_enabled
	testq	%rax, %rax
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_26
## %bb.19:
	movq	%rbx, %rdi
	callq	_jme_start_shutdown_timer
	jmp	LBB0_26
LBB0_20:
	movq	%rbx, %rdi
	callq	_jme_setup_tx_resources
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_err
	movq	%rbx, %rdi
	callq	_jme_free_rx_resources
	jmp	LBB0_25
LBB0_22:
	movq	%rbx, %rdi
	callq	_jme_enable_rx_engine
	movq	%rbx, %rdi
	callq	_jme_enable_tx_engine
	movq	%r15, %rdi
	callq	_netif_start_queue
	movq	_JME_FLAG_POLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%rbx, %rdi
	callq	_jme_interrupt_mode
LBB0_24:
	movq	%rbx, %rdi
	callq	_jme_start_pcc_timer
LBB0_25:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_26:
	movq	%r15, %rdi
	callq	_tasklet_enable
	movq	%r13, %rdi
	callq	_tasklet_enable
	movq	%r12, %rdi
	callq	_tasklet_enable
LBB0_27:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atomic_inc                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_intr,4,2                       ## @intr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Get link change lock failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"Waiting link change lock\n"

	.comm	_JME_FLAG_POLL,4,2              ## @JME_FLAG_POLL
L_.str.2:                               ## @.str.2
	.asciz	"Allocating resources for RX error, Device STOPPED!\n"

L_.str.3:                               ## @.str.3
	.asciz	"Allocating resources for TX error, Device STOPPED!\n"

	.no_dead_strip	_jme_link_change_tasklet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jme_link_change_tasklet
_jme_link_change_tasklet:               ; @jme_link_change_tasklet
	.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	x20, x0
	ldr	x21, [x0, #32]
	add	x19, x0, #8
	mov	x0, x19
	bl	_atomic_dec_and_test
	cbz	w0, LBB0_3
LBB0_1:
	mov	x0, x21
	mov	w1, #1
	bl	_jme_check_link
	cbz	x0, LBB0_8
; %bb.2:
	ldr	x9, [x20]
	ldr	x8, [x21]
	cmp	x9, x8
	b.ne	LBB0_9
	b	LBB0_26
LBB0_3:
Lloh0:
	adrp	x24, _intr@GOTPAGE
Lloh1:
	ldr	x24, [x24, _intr@GOTPAGEOFF]
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
Lloh4:
	adrp	x23, l_.str.1@PAGE
Lloh5:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_atomic_dec_and_test
	cbnz	w0, LBB0_1
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x0, x19
	bl	_atomic_inc
	ldr	w1, [x24]
	ldr	x2, [x20, #32]
	mov	x0, x20
	mov	x3, x22
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_netif_info
	mov	x0, x19
	bl	_atomic_read
	cmp	w0, #1
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w1, [x24]
	ldr	x2, [x20, #32]
	mov	x0, x20
	mov	x3, x23
	b	LBB0_6
LBB0_8:
	ldr	x8, [x21]
LBB0_9:
	str	x8, [x20]
	mov	x0, x21
	bl	_netif_stop_queue
	mov	x0, x20
	bl	_jme_pseudo_hotplug_enabled
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_jme_stop_shutdown_timer
LBB0_11:
	mov	x0, x20
	bl	_jme_stop_pcc_timer
	add	x22, x20, #20
	mov	x0, x22
	bl	_tasklet_disable
	add	x23, x20, #16
	mov	x0, x23
	bl	_tasklet_disable
	add	x24, x20, #12
	mov	x0, x24
	bl	_tasklet_disable
	mov	x0, x21
	bl	_netif_carrier_ok
	cbz	x0, LBB0_15
; %bb.12:
	mov	x0, x20
	bl	_jme_disable_rx_engine
	mov	x0, x20
	bl	_jme_disable_tx_engine
	mov	x0, x20
	bl	_jme_reset_mac_processor
	mov	x0, x20
	bl	_jme_free_rx_resources
	mov	x0, x20
	bl	_jme_free_tx_resources
Lloh6:
	adrp	x8, _JME_FLAG_POLL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _JME_FLAG_POLL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, x20, #24
	bl	_test_bit
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_jme_polling_mode
LBB0_14:
	mov	x0, x21
	bl	_netif_carrier_off
LBB0_15:
	mov	x0, x21
	mov	w1, #0
	bl	_jme_check_link
	mov	x0, x21
	bl	_netif_carrier_ok
	cbz	x0, LBB0_18
; %bb.16:
	mov	x0, x20
	bl	_jme_setup_rx_resources
	cbz	w0, LBB0_20
; %bb.17:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	b	LBB0_25
LBB0_18:
	mov	x0, x20
	bl	_jme_pseudo_hotplug_enabled
	cbz	x0, LBB0_25
; %bb.19:
	mov	x0, x20
	bl	_jme_start_shutdown_timer
	b	LBB0_25
LBB0_20:
	mov	x0, x20
	bl	_jme_setup_tx_resources
	cbz	w0, LBB0_22
; %bb.21:
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
	mov	x0, x20
	bl	_jme_free_rx_resources
	b	LBB0_25
LBB0_22:
	mov	x0, x20
	bl	_jme_enable_rx_engine
	mov	x0, x20
	bl	_jme_enable_tx_engine
	mov	x0, x21
	bl	_netif_start_queue
Lloh13:
	adrp	x8, _JME_FLAG_POLL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _JME_FLAG_POLL@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	add	x1, x20, #24
	bl	_test_bit
	cbz	x0, LBB0_24
; %bb.23:
	mov	x0, x20
	bl	_jme_interrupt_mode
LBB0_24:
	mov	x0, x20
	bl	_jme_start_pcc_timer
LBB0_25:
	mov	x0, x22
	bl	_tasklet_enable
	mov	x0, x23
	bl	_tasklet_enable
	mov	x0, x24
	bl	_tasklet_enable
LBB0_26:
	mov	x0, x19
	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
	b	_atomic_inc
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_intr,4,2                       ; @intr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Get link change lock failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"Waiting link change lock\n"

	.comm	_JME_FLAG_POLL,4,2              ; @JME_FLAG_POLL
l_.str.2:                               ; @.str.2
	.asciz	"Allocating resources for RX error, Device STOPPED!\n"

l_.str.3:                               ; @.str.3
	.asciz	"Allocating resources for TX error, Device STOPPED!\n"

	.no_dead_strip	_jme_link_change_tasklet
.subsections_via_symbols
