	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function link_changed
_link_changed:                          ## @link_changed
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_netdev_priv
	testq	%r15, %r15
	je	LBB0_4
## %bb.1:
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_netif_carrier_on
	movq	(%r14), %rax
	movq	_IW_MODE_INFRA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.5:
	leaq	-32(%rbp), %r14
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_prism54_get_wap
	movq	_SIOCGIWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_wireless_send_event
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	callq	_netif_carrier_off
	movq	%rbx, %rdi
	callq	_netdev_priv
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_netdev_priv
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_send_simple_event              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IW_MODE_INFRA,8,3              ## @IW_MODE_INFRA
	.comm	_SIOCGIWAP,4,2                  ## @SIOCGIWAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Link established"

L_.str.1:                               ## @.str.1
	.asciz	"Link lost"

	.no_dead_strip	_link_changed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function link_changed
_link_changed:                          ; @link_changed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	cbz	x21, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_netif_carrier_on
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _IW_MODE_INFRA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IW_MODE_INFRA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, #0
	mov	x3, #0
	bl	_prism54_get_wap
Lloh3:
	adrp	x8, _SIOCGIWAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIOCGIWAP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	x3, #0
	bl	_wireless_send_event
	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
	add	sp, sp, #64
	ret
LBB0_3:
	mov	x0, x19
	bl	_netif_carrier_off
	mov	x0, x19
	bl	_netdev_priv
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_netdev_priv
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	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
	add	sp, sp, #64
	b	_send_simple_event
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IW_MODE_INFRA,8,3              ; @IW_MODE_INFRA
	.comm	_SIOCGIWAP,4,2                  ; @SIOCGIWAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Link established"

l_.str.1:                               ; @.str.1
	.asciz	"Link lost"

	.no_dead_strip	_link_changed
.subsections_via_symbols
