	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fr_set_link_state
_fr_set_link_state:                     ## @fr_set_link_state
	.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
	movq	%rsi, %r15
	movl	%edi, %r12d
	movq	%rsi, %rdi
	callq	_dev_to_hdlc
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_state
	movq	32(%rax), %rbx
	movq	%r14, %rdi
	callq	_state
	movl	%r12d, (%rax)
	movq	%r15, %rdi
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.1:
	callq	_netif_dormant_off
	movq	%r14, %rdi
	callq	_state
	movq	$0, 24(%rax)
	movq	%r14, %rdi
	callq	_state
	movl	$1, 4(%rax)
	movq	%r14, %rdi
	callq	_state
	movq	8(%rax), %rax
	movq	_LMI_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.3:
	movabsq	$4294967297, %r14               ## imm = 0x100000001
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	movq	%rbx, %rsi
	callq	_pvc_carrier
	movq	%r14, 8(%rbx)
	movq	$0, 24(%rbx)
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	_netif_dormant_on
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rbx), %rbx
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_pvc_carrier
	movq	$0, 8(%rbx)
	movq	$0, 24(%rbx)
	movq	%r14, %rdi
	callq	_state
	cmpl	$0, 16(%rax)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	$0, 16(%rbx)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_LMI_NONE,8,3                   ## @LMI_NONE
	.no_dead_strip	_fr_set_link_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fr_set_link_state
_fr_set_link_state:                     ; @fr_set_link_state
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -56
	.cfi_offset b9, -64
	mov	x21, x1
	mov	x22, x0
	mov	x0, x1
	bl	_dev_to_hdlc
	mov	x20, x0
	bl	_state
	ldr	x19, [x0, #32]
	mov	x0, x20
	bl	_state
	str	w22, [x0]
	mov	x0, x21
	cbz	w22, LBB0_4
; %bb.1:
	bl	_netif_dormant_off
	mov	x0, x20
	bl	_state
	str	xzr, [x0, #24]
	mov	x0, x20
	bl	_state
	mov	w8, #1
	str	w8, [x0, #4]
	mov	x0, x20
	bl	_state
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _LMI_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LMI_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	x19, #0, #4, eq
	b.eq	LBB0_5
; %bb.2:
	movi.2s	v8, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	mov	x1, x19
	bl	_pvc_carrier
	str	d8, [x19, #8]
	str	xzr, [x19, #24]
	ldr	x19, [x19]
	cbnz	x19, LBB0_3
	b	LBB0_5
LBB0_4:
	bl	_netif_dormant_on
	cbnz	x19, LBB0_7
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
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x19, [x19]
	cbz	x19, LBB0_5
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	mov	x1, x19
	bl	_pvc_carrier
	str	xzr, [x19, #8]
	str	xzr, [x19, #24]
	mov	x0, x20
	bl	_state
	ldr	w8, [x0, #16]
	cbnz	w8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	str	xzr, [x19, #16]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LMI_NONE,8,3                   ; @LMI_NONE
	.no_dead_strip	_fr_set_link_state
.subsections_via_symbols
