	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phonet_device_destroy
_phonet_device_destroy:                 ## @phonet_device_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	%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
	callq	_dev_net
	movl	%eax, %edi
	callq	_phonet_device_list
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_ASSERT_RTNL
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movq	%r14, %rdi
	callq	___phonet_get
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r12
	movq	%rax, %rdi
	addq	$4, %rdi
	callq	_list_del
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movl	(%r12), %edi
	movl	$64, %esi
	callq	_find_first_bit
	cmpl	$63, %eax
	jg	LBB0_4
## %bb.2:
	movl	%eax, %ebx
	movq	_RTM_DELADDR@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_phonet_address_notify
	movl	(%r12), %edi
	incl	%ebx
	movl	$64, %esi
	movl	%ebx, %edx
	callq	_find_next_bit
	movl	%eax, %ebx
	cmpl	$64, %eax
	jl	LBB0_3
LBB0_4:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_5:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RTM_DELADDR,4,2                ## @RTM_DELADDR
	.no_dead_strip	_phonet_device_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phonet_device_destroy
_phonet_device_destroy:                 ; @phonet_device_destroy
	.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
	bl	_dev_net
	bl	_phonet_device_list
	mov	x21, x0
	bl	_ASSERT_RTNL
	mov	x0, x21
	bl	_spin_lock_bh
	mov	x0, x19
	bl	___phonet_get
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	add	x0, x0, #4
	bl	_list_del
	mov	x0, x21
	bl	_spin_unlock_bh
	ldr	w0, [x20]
	mov	w1, #64
	bl	_find_first_bit
	cmp	w0, #63
	b.gt	LBB0_4
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x22, _RTM_DELADDR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RTM_DELADDR@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	x1, x19
	mov	x2, x21
	bl	_phonet_address_notify
	ldr	w0, [x20]
	add	w2, w21, #1
	mov	w1, #64
	bl	_find_next_bit
	mov	x21, x0
	cmp	w0, #64
	b.lt	LBB0_3
LBB0_4:
	mov	x0, x20
	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	_kfree
LBB0_5:
	mov	x0, x21
	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	_spin_unlock_bh
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RTM_DELADDR,4,2                ; @RTM_DELADDR
	.no_dead_strip	_phonet_device_destroy
.subsections_via_symbols
