	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1c_link_chg_event
_atl1c_link_chg_event:                  ## @atl1c_link_chg_event
	.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, %r13
	movq	24(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	32(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	12(%rdi), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	leaq	16(%r13), %rbx
	movq	_MII_BMSR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-52(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_atl1c_read_phy_reg
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_atl1c_read_phy_reg
	movq	%r12, %rdi
	callq	_spin_unlock
	movq	_BMSR_LSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -52(%rbp)
	jne	LBB0_5
## %bb.1:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_carrier_off
	movq	%r13, %rdi
	callq	_netif_msg_link
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_atl1c_driver_name@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_info
LBB0_4:
	movq	_SPEED_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
LBB0_5:
	movq	_ATL1C_WORK_EVENT_LINK_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r13), %rsi
	callq	_set_bit
	movq	%r13, %rdi
	callq	_schedule_work
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BMSR,4,2                   ## @MII_BMSR
	.comm	_BMSR_LSTATUS,4,2               ## @BMSR_LSTATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s NIC Link is Down\n"

	.comm	_atl1c_driver_name,4,2          ## @atl1c_driver_name
	.comm	_SPEED_0,4,2                    ## @SPEED_0
	.comm	_ATL1C_WORK_EVENT_LINK_CHANGE,4,2 ## @ATL1C_WORK_EVENT_LINK_CHANGE
	.no_dead_strip	_atl1c_link_chg_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1c_link_chg_event
_atl1c_link_chg_event:                  ; @atl1c_link_chg_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldp	x20, x21, [x0, #24]
	add	x22, x0, #12
	mov	x0, x22
	bl	_spin_lock
	add	x23, x19, #16
Lloh0:
	adrp	x24, _MII_BMSR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MII_BMSR@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x23
	bl	_atl1c_read_phy_reg
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x23
	bl	_atl1c_read_phy_reg
	mov	x0, x22
	bl	_spin_unlock
	ldr	w8, [sp, #12]
Lloh2:
	adrp	x9, _BMSR_LSTATUS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BMSR_LSTATUS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x21
	bl	_netif_carrier_ok
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x21
	bl	_netif_carrier_off
	mov	x0, x19
	bl	_netif_msg_link
	cbz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _atl1c_driver_name@GOTPAGE
Lloh6:
	ldr	x8, [x8, _atl1c_driver_name@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	ldr	w3, [x21]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_info
LBB0_4:
Lloh10:
	adrp	x8, _SPEED_0@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SPEED_0@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_5:
Lloh13:
	adrp	x8, _ATL1C_WORK_EVENT_LINK_CHANGE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ATL1C_WORK_EVENT_LINK_CHANGE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_set_bit
	mov	x0, x19
	bl	_schedule_work
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BMSR,4,2                   ; @MII_BMSR
	.comm	_BMSR_LSTATUS,4,2               ; @BMSR_LSTATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s NIC Link is Down\n"

	.comm	_atl1c_driver_name,4,2          ; @atl1c_driver_name
	.comm	_SPEED_0,4,2                    ; @SPEED_0
	.comm	_ATL1C_WORK_EVENT_LINK_CHANGE,4,2 ; @ATL1C_WORK_EVENT_LINK_CHANGE
	.no_dead_strip	_atl1c_link_chg_event
.subsections_via_symbols
