	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phonet_address_del             ## -- Begin function phonet_address_del
	.p2align	4, 0x90
_phonet_address_del:                    ## @phonet_address_del
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_dev_net
	movl	%eax, %edi
	callq	_phonet_device_list
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_spin_lock_bh
	movq	%rbx, %rdi
	callq	___phonet_get
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r12
	sarl	$2, %r15d
	movl	4(%rax), %esi
	movl	%r15d, %edi
	callq	_test_and_clear_bit
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	4(%r12), %edi
	movl	$64, %esi
	callq	_bitmap_empty
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_list_del
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_5
LBB0_2:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phonet_address_del             ; -- Begin function phonet_address_del
	.p2align	2
_phonet_address_del:                    ; @phonet_address_del
	.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	x21, x1
	mov	x20, x0
	bl	_dev_net
	bl	_phonet_device_list
	mov	x19, x0
	bl	_spin_lock_bh
	mov	x0, x20
	bl	___phonet_get
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	asr	w0, w21, #2
	ldr	w1, [x20, #4]
	bl	_test_and_clear_bit
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w0, [x20, #4]
	mov	w1, #64
	bl	_bitmap_empty
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_list_del
	mov	x0, x20
	bl	_kfree
LBB0_4:
	mov	w20, #0
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock_bh
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
.subsections_via_symbols
