	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bdx_link_changed
_bdx_link_changed:                      ## @bdx_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_regMAC_LNK_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_READ_REG
	movl	%eax, %ebx
	movq	_MAC_LINK_STAT@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	(%r14), %edi
	callq	_netif_carrier_ok
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.3:
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movl	(%r14), %edi
	callq	_netif_wake_queue
	movl	(%r14), %edi
	callq	_netif_carrier_on
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_1:
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	(%r14), %edi
	callq	_netif_stop_queue
	movl	(%r14), %edi
	callq	_netif_carrier_off
	leaq	L_.str(%rip), %rsi
LBB0_5:
	movl	(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_regMAC_LNK_STAT,4,2            ## @regMAC_LNK_STAT
	.comm	_MAC_LINK_STAT,4,2              ## @MAC_LINK_STAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Link Down\n"

L_.str.1:                               ## @.str.1
	.asciz	"Link Up\n"

	.no_dead_strip	_bdx_link_changed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bdx_link_changed
_bdx_link_changed:                      ; @bdx_link_changed
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _regMAC_LNK_STAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _regMAC_LNK_STAT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_READ_REG
Lloh3:
	adrp	x8, _MAC_LINK_STAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAC_LINK_STAT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w20, w8, w0
	ldr	w0, [x19]
	bl	_netif_carrier_ok
	cbz	w20, LBB0_3
; %bb.1:
	cbnz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x19]
	bl	_netif_wake_queue
	ldr	w0, [x19]
	bl	_netif_carrier_on
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w0, [x19]
	bl	_netif_stop_queue
	ldr	w0, [x19]
	bl	_netif_carrier_off
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_netdev_err
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_regMAC_LNK_STAT,4,2            ; @regMAC_LNK_STAT
	.comm	_MAC_LINK_STAT,4,2              ; @MAC_LINK_STAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Link Down\n"

l_.str.1:                               ; @.str.1
	.asciz	"Link Up\n"

	.no_dead_strip	_bdx_link_changed
.subsections_via_symbols
