	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ax25_rt_device_down            ## -- Begin function ax25_rt_device_down
	.p2align	4, 0x90
_ax25_rt_device_down:                   ## @ax25_rt_device_down
	.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	%rdi, %r14
	movq	_ax25_route_lock@GOTPCREL(%rip), %rdi
	callq	_write_lock_bh
	movq	_ax25_route_list@GOTPCREL(%rip), %r15
	movq	(%r15), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, (%rax)
	movq	(%rbx), %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_kfree
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testq	%r12, %r12
	je	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rbx
	movq	8(%r12), %r12
	cmpq	%r14, 16(%rbx)
	jne	LBB0_1
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rcx
	movq	%r15, %rax
	cmpq	%rbx, %rcx
	je	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rcx, %rax
	movq	8(%rcx), %rcx
	cmpq	%rbx, %rcx
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	$8, %rax
	jmp	LBB0_7
LBB0_8:
	movq	_ax25_route_lock@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_unlock_bh                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ax25_route_lock,4,2            ## @ax25_route_lock
	.comm	_ax25_route_list,8,3            ## @ax25_route_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ax25_rt_device_down            ; -- Begin function ax25_rt_device_down
	.p2align	2
_ax25_rt_device_down:                   ; @ax25_rt_device_down
	.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	x19, x0
Lloh0:
	adrp	x0, _ax25_route_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ax25_route_lock@GOTPAGEOFF]
	bl	_write_lock_bh
Lloh2:
	adrp	x21, _ax25_route_list@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ax25_route_list@GOTPAGEOFF]
	ldr	x22, [x21]
	cbnz	x22, LBB0_5
LBB0_1:
Lloh4:
	adrp	x0, _ax25_route_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _ax25_route_lock@GOTPAGEOFF]
	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	_write_unlock_bh
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, x21
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x22, [x8]
	ldr	x0, [x20]
	bl	_kfree
	mov	x0, x20
	bl	_kfree
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	x22, LBB0_1
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x20, x22
	ldr	x22, [x22, #8]
	ldr	x8, [x20, #16]
	cmp	x8, x19
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21]
	cmp	x8, x20
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	x8, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x9, x8
	ldr	x8, [x8, #8]
	cmp	x8, x20
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x9, #8
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ax25_route_lock,4,2            ; @ax25_route_lock
	.comm	_ax25_route_list,8,3            ; @ax25_route_list
.subsections_via_symbols
