	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_link_status_update          ## -- Begin function be_link_status_update
	.p2align	4, 0x90
_be_link_status_update:                 ## @be_link_status_update
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	8(%rdi), %r14
	movq	_BE_FLAGS_LINK_STATUS_INIT@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, (%rdi)
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movl	(%r12), %eax
	orl	%eax, (%rbx)
LBB0_2:
	movq	_LINK_STATUS_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	_LINK_UP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_carrier_on               ## TAILCALL
LBB0_4:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_carrier_off              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BE_FLAGS_LINK_STATUS_INIT,4,2  ## @BE_FLAGS_LINK_STATUS_INIT
	.comm	_LINK_STATUS_MASK,4,2           ## @LINK_STATUS_MASK
	.comm	_LINK_UP,4,2                    ## @LINK_UP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_link_status_update          ; -- Begin function be_link_status_update
	.p2align	2
_be_link_status_update:                 ; @be_link_status_update
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	ldr	x19, [x0, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x22, _BE_FLAGS_LINK_STATUS_INIT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BE_FLAGS_LINK_STATUS_INIT@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	bl	_netif_carrier_off
	ldr	w8, [x22]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_2:
Lloh2:
	adrp	x8, _LINK_STATUS_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LINK_STATUS_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh5:
	adrp	x9, _LINK_UP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LINK_UP@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	mov	x0, x19
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_netif_carrier_on
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_netif_carrier_off
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BE_FLAGS_LINK_STATUS_INIT,4,2  ; @BE_FLAGS_LINK_STATUS_INIT
	.comm	_LINK_STATUS_MASK,4,2           ; @LINK_STATUS_MASK
	.comm	_LINK_UP,4,2                    ; @LINK_UP
.subsections_via_symbols
