	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	32(%rdi), %r15
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_atomic_dec_and_test
	testl	%eax, %eax
	je	LBB0_3
LBB0_1:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_jme_check_link
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	(%r15), %rax
	cmpq	%rax, (%r13)
	jne	LBB0_9
	jmp	LBB0_27
LBB0_3:
	leaq	L_.str(%rip), %r12
	leaq	L_.str.1(%rip), %rbx
	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
	movq	%r13, %rdi
	movq	%r12, %rsi
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	callq	_msg_intr
	movq	%r14, %rdi
	callq	_atomic_read
	cmpl	$1, %eax
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	%r13, %rdi
	movq	%rbx, %rsi
	jmp	LBB0_6
LBB0_8:
	movq	(%r15), %rax
LBB0_9:
	movq	%rax, (%r13)
	movq	%r15, %rdi
	callq	_netif_stop_queue
	movq	%r13, %rdi
	callq	_jme_pseudo_hotplug_enabled
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	callq	_jme_stop_shutdown_timer
LBB0_11:
	movq	%r13, %rdi
	callq	_jme_stop_pcc_timer
	leaq	20(%r13), %rdi
	movq	%rdi, %rbx
	callq	_tasklet_disable
	leaq	16(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_tasklet_disable
	leaq	12(%r13), %r12
	movq	%r12, %rdi
	callq	_tasklet_disable
	movq	%r15, %rdi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movq	%r13, %rdi
	callq	_jme_reset_ghc_speed
	movq	%r13, %rdi
	callq	_jme_disable_rx_engine
	movq	%r13, %rdi
	callq	_jme_disable_tx_engine
	movq	%r13, %rdi
	callq	_jme_reset_mac_processor
	movq	%r13, %rdi
	callq	_jme_free_rx_resources
	movq	%r13, %rdi
	callq	_jme_free_tx_resources
	movq	_JME_FLAG_POLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r13), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r13, %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	%r13, %rdi
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	callq	_jme_setup_rx_resources
	testl	%eax, %eax
	je	LBB0_20
## %bb.17:
	movl	28(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_jeprintk
	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	%r13, %rdi
	callq	_jme_start_shutdown_timer
	jmp	LBB0_26
LBB0_20:
	movq	%r13, %rdi
	callq	_jme_setup_tx_resources
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	28(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_jeprintk
	movq	%r13, %rdi
	callq	_jme_free_rx_resources
	jmp	LBB0_25
LBB0_22:
	movq	%r13, %rdi
	callq	_jme_enable_rx_engine
	movq	%r13, %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(%r13), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%r13, %rdi
	callq	_jme_interrupt_mode
LBB0_24:
	movq	%r13, %rdi
	callq	_jme_start_pcc_timer
LBB0_25:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_26:
	movq	%rbx, %rdi
	callq	_tasklet_enable
	movq	%r15, %rdi
	callq	_tasklet_hi_enable
	movq	%r12, %rdi
	callq	_tasklet_hi_enable
LBB0_27:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atomic_inc                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
Lloh2:
	adrp	x23, l_.str.1@PAGE
Lloh3:
	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
	mov	x0, x20
	mov	x1, x22
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_msg_intr
	mov	x0, x19
	bl	_atomic_read
	cmp	w0, #1
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x20
	mov	x1, 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_reset_ghc_speed
	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
Lloh4:
	adrp	x8, _JME_FLAG_POLL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _JME_FLAG_POLL@GOTPAGEOFF]
Lloh6:
	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:
	ldr	w0, [x20, #28]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_jeprintk
	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:
	ldr	w0, [x20, #28]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_jeprintk
	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
Lloh11:
	adrp	x8, _JME_FLAG_POLL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _JME_FLAG_POLL@GOTPAGEOFF]
Lloh13:
	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_hi_enable
	mov	x0, x24
	bl	_tasklet_hi_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	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.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
