	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fr_destroy
_fr_destroy:                            ## @fr_destroy
	.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
	callq	_dev_to_hdlc
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_state
	movq	16(%rax), %rbx
	movq	%r14, %rdi
	callq	_state
	movq	$0, 16(%rax)
	movq	%r14, %rdi
	callq	_state
	movq	$0, 8(%rax)
	movq	%r14, %rdi
	callq	_state
	movl	$1, (%rax)
	testq	%rbx, %rbx
	jne	LBB0_1
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_kfree
	movq	%r14, %rbx
	testq	%r14, %r14
	je	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	movq	16(%rbx), %r14
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	callq	_unregister_netdevice
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	callq	_unregister_netdevice
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fr_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fr_destroy
_fr_destroy:                            ; @fr_destroy
	.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
	bl	_dev_to_hdlc
	mov	x20, x0
	bl	_state
	ldr	x19, [x0, #16]
	mov	x0, x20
	bl	_state
	str	xzr, [x0, #16]
	mov	x0, x20
	bl	_state
	str	xzr, [x0, #8]
	mov	x0, x20
	bl	_state
	mov	w8, #1
	str	w8, [x0]
	cbnz	x19, LBB0_3
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_kfree
	mov	x19, x20
	cbz	x20, LBB0_1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x0, x20, [x19, #8]
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_unregister_netdevice
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_unregister_netdevice
	b	LBB0_2
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_fr_destroy
.subsections_via_symbols
