	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function inet6_addr_del
_inet6_addr_del:                        ## @inet6_addr_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
	cmpl	$129, %ecx
	jb	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_2:
	movl	%ecx, %r12d
	movq	%rdx, %r14
	callq	___dev_get_by_index
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rdi
	callq	___in6_dev_get
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_read_lock_bh
	movq	8(%r15), %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rbx), %rbx
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%r12d, (%rbx)
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	4(%rbx), %rsi
	movq	%r14, %rdi
	callq	_ipv6_addr_equal
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	%rbx, %rdi
	callq	_in6_ifa_hold
	movq	%r15, %rdi
	callq	_read_unlock_bh
	movq	%rbx, %rdi
	callq	_ipv6_del_addr
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r15)
	jne	LBB0_15
## %bb.11:
	movl	4(%r15), %edi
	movl	$1, %esi
	callq	_addrconf_ifdown
	jmp	LBB0_15
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	%r15, %rdi
	callq	_read_unlock_bh
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_5:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_14:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.no_dead_strip	_inet6_addr_del
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function inet6_addr_del
_inet6_addr_del:                        ; @inet6_addr_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
	cmp	w3, #129
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_13
LBB0_2:
	mov	x19, x3
	mov	x20, x2
	bl	___dev_get_by_index
	cbz	x0, LBB0_11
; %bb.3:
	bl	___in6_dev_get
	cbz	x0, LBB0_12
; %bb.4:
	mov	x21, x0
	bl	_read_lock_bh
	ldr	x22, [x21, #8]
	cbnz	x22, LBB0_7
LBB0_5:
	mov	x0, x21
	bl	_read_unlock_bh
Lloh2:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
	b	LBB0_13
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x22, [x22, #8]
	cbz	x22, LBB0_5
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	cmp	w8, w19
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x1, x22, #4
	mov	x0, x20
	bl	_ipv6_addr_equal
	cbz	x0, LBB0_6
; %bb.9:
	mov	x0, x22
	bl	_in6_ifa_hold
	mov	x0, x21
	bl	_read_unlock_bh
	mov	x0, x22
	bl	_ipv6_del_addr
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_15
; %bb.10:
	mov	w0, #0
	b	LBB0_14
LBB0_11:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh6:
	adrp	x8, _ENXIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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
LBB0_15:
	ldr	w0, [x21, #4]
	mov	w1, #1
	bl	_addrconf_ifdown
	mov	w0, #0
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.no_dead_strip	_inet6_addr_del
.subsections_via_symbols
