	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cgx_link_change_handler
_cgx_link_change_handler:               ## @cgx_link_change_handler
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r12d
	movq	48(%rsi), %r15
	movq	8(%r15), %r14
	movl	24(%rsi), %ecx
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdx
	callq	_link_status_user_format
	movq	_RESP_LINKSTAT_ERRTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_FIELD_GET
	movl	%eax, %r12d
	movl	(%r15), %eax
	movl	%eax, -36(%rbp)
	movl	24(%rbx), %eax
	movl	%eax, -40(%rbp)
	movups	-56(%rbp), %xmm0
	movups	%xmm0, 32(%rbx)
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movl	8(%rbx), %esi
	leaq	-56(%rbp), %rdi
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_6
LBB0_1:
	movl	(%r15), %edx
	movl	24(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	_CGX_ERR_NONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_3
## %bb.2:
	movl	(%r15), %edx
	movl	24(%rbx), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_dev_err
LBB0_3:
	movl	(%r15), %edx
	cmpq	$0, 40(%rbx)
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %r8
	cmoveq	%rax, %r8
	movl	24(%rbx), %ecx
	movl	32(%rbx), %r9d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
LBB0_6:
	movq	%rbx, %rdi
	callq	_spin_unlock
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RESP_LINKSTAT_ERRTYPE,4,2      ## @RESP_LINKSTAT_ERRTYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cgx port %d:%d Link change handler null"

	.comm	_CGX_ERR_NONE,4,2               ## @CGX_ERR_NONE
L_.str.1:                               ## @.str.1
	.asciz	"cgx port %d:%d Link error %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"cgx port %d:%d Link is %s %d Mbps\n"

L_.str.3:                               ## @.str.3
	.asciz	"UP"

L_.str.4:                               ## @.str.4
	.asciz	"DOWN"

L_.str.5:                               ## @.str.5
	.asciz	"event notification failure\n"

	.no_dead_strip	_cgx_link_change_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cgx_link_change_handler
_cgx_link_change_handler:               ; @cgx_link_change_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x22, x0
	ldr	x21, [x1, #48]
	ldr	x20, [x21, #8]
	ldr	w3, [x1, #24]
	add	x1, sp, #24
	mov	x2, x21
	bl	_link_status_user_format
Lloh0:
	adrp	x8, _RESP_LINKSTAT_ERRTYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RESP_LINKSTAT_ERRTYPE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_FIELD_GET
	mov	x22, x0
	ldr	w8, [x21]
	ldr	w9, [x19, #24]
	stp	w9, w8, [sp, #40]
	ldur	q0, [sp, #24]
	str	q0, [x19, #32]
	mov	x0, x19
	bl	_spin_lock
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w1, [x19, #8]
	add	x0, sp, #24
	blr	x8
	cbz	x0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x1, l_.str.5@PAGE
Lloh4:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_6
LBB0_3:
	ldr	w2, [x21]
	ldr	w3, [x19, #24]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
Lloh7:
	adrp	x8, _CGX_ERR_NONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CGX_ERR_NONE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w22, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x21]
	ldr	w9, [x19, #24]
	stp	x9, x22, [sp, #8]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_5:
	ldr	w2, [x21]
	ldr	w3, [x19, #24]
Lloh12:
	adrp	x8, l_.str.3@PAGE
Lloh13:
	add	x8, x8, l_.str.3@PAGEOFF
	ldr	x9, [x19, #40]
Lloh14:
	adrp	x10, l_.str.4@PAGE
Lloh15:
	add	x10, x10, l_.str.4@PAGEOFF
	cmp	x9, #0
	csel	x4, x10, x8, eq
	ldr	w5, [x19, #32]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_info
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_RESP_LINKSTAT_ERRTYPE,4,2      ; @RESP_LINKSTAT_ERRTYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cgx port %d:%d Link change handler null"

	.comm	_CGX_ERR_NONE,4,2               ; @CGX_ERR_NONE
l_.str.1:                               ; @.str.1
	.asciz	"cgx port %d:%d Link error %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"cgx port %d:%d Link is %s %d Mbps\n"

l_.str.3:                               ; @.str.3
	.asciz	"UP"

l_.str.4:                               ; @.str.4
	.asciz	"DOWN"

l_.str.5:                               ; @.str.5
	.asciz	"event notification failure\n"

	.no_dead_strip	_cgx_link_change_handler
.subsections_via_symbols
