	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ax25_dev_device_down           ## -- Begin function ax25_dev_device_down
	.p2align	4, 0x90
_ax25_dev_device_down:                  ## @ax25_dev_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_ax25_dev_ax25dev
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_ax25_unregister_sysctl
	movq	_ax25_dev_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_bh
	movq	_ax25_dev_list@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %rdx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rdx), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, 8(%rdx)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, 8(%rdx)
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rcx
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, %rax
	jne	LBB0_8
## %bb.7:
	movq	(%r14), %rax
	movq	%rax, (%rcx)
	movq	_ax25_dev_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_bh
	movq	%rbx, %rdi
	callq	_dev_put
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movq	_ax25_dev_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_bh
	movq	$0, (%rbx)
LBB0_11:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ax25_register_sysctl           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ax25_dev_lock,4,2              ## @ax25_dev_lock
	.comm	_ax25_dev_list,8,3              ## @ax25_dev_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ax25_dev_device_down           ; -- Begin function ax25_dev_device_down
	.p2align	2
_ax25_dev_device_down:                  ; @ax25_dev_device_down
	.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
	bl	_ax25_dev_ax25dev
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	bl	_ax25_unregister_sysctl
Lloh0:
	adrp	x0, _ax25_dev_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ax25_dev_lock@GOTPAGEOFF]
	bl	_spin_lock_bh
Lloh2:
	adrp	x9, _ax25_dev_list@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ax25_dev_list@GOTPAGEOFF]
	ldr	x8, [x9]
	cbz	x8, LBB0_8
; %bb.2:
	mov	x10, x8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x10]
	cbz	x10, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, #8]
	cmp	x11, x19
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x10, #8]
	b	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	cbz	x8, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x9, x8
	ldr	x8, [x8]
	cbz	x8, LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x8, x20
	b.ne	LBB0_6
; %bb.9:
	ldr	x8, [x20]
	str	x8, [x9]
Lloh4:
	adrp	x0, _ax25_dev_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _ax25_dev_lock@GOTPAGEOFF]
	bl	_spin_unlock_bh
	mov	x0, x19
	bl	_dev_put
	mov	x0, x20
	bl	_kfree
	b	LBB0_12
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh6:
	adrp	x0, _ax25_dev_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _ax25_dev_lock@GOTPAGEOFF]
	bl	_spin_unlock_bh
	str	xzr, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ax25_register_sysctl
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ax25_dev_lock,4,2              ; @ax25_dev_lock
	.comm	_ax25_dev_list,8,3              ; @ax25_dev_list
.subsections_via_symbols
