	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function addr_doit
_addr_doit:                             ## @addr_doit
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %edi
	callq	_sock_net
	movq	%rax, %r14
	movq	_IFA_MAX@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	incl	%eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_CAP_SYS_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	xorl	%eax, %eax
	callq	_ASSERT_RTNL
	movl	(%r15), %ecx
	movq	_ifa_phonet_policy@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movl	$4, %esi
	movq	%rbx, %rdx
	callq	_nlmsg_parse
	testl	%eax, %eax
	js	LBB0_14
## %bb.4:
	movq	%r12, %rdi
	callq	_nlmsg_data
	movq	%rax, %r13
	movq	_IFA_LOCAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.6:
	callq	_nla_get_u8
	movl	%eax, %r15d
	testb	$3, %r15b
	je	LBB0_7
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_16
## %bb.15:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	___dev_get_by_index
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %rbx
	movq	(%r12), %rax
	movq	_RTM_NEWADDR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_phonet_address_add
	jmp	LBB0_12
LBB0_8:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_11:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_phonet_address_del
LBB0_12:
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_phonet_address_notify
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IFA_MAX,4,2                    ## @IFA_MAX
	.comm	_CAP_SYS_ADMIN,4,2              ## @CAP_SYS_ADMIN
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_ifa_phonet_policy,4,2          ## @ifa_phonet_policy
	.comm	_IFA_LOCAL,8,3                  ## @IFA_LOCAL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_RTM_NEWADDR,8,3                ## @RTM_NEWADDR
	.no_dead_strip	_addr_doit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function addr_doit
_addr_doit:                             ; @addr_doit
	.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
	sub	sp, sp, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	w0, [x0]
	bl	_sock_net
	mov	x20, x0
Lloh3:
	adrp	x22, _IFA_MAX@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IFA_MAX@GOTPAGEOFF]
	ldr	w8, [x22]
	add	w8, w8, #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh7:
	adrp	x8, _CAP_SYS_ADMIN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CAP_SYS_ADMIN@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_5
; %bb.1:
	bl	_ASSERT_RTNL
	ldr	w3, [x22]
Lloh10:
	adrp	x8, _ifa_phonet_policy@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ifa_phonet_policy@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w1, #4
	mov	x2, x21
	bl	_nlmsg_parse
	tbnz	w0, #31, LBB0_7
; %bb.2:
	mov	x0, x19
	bl	_nlmsg_data
	mov	x22, x0
Lloh13:
	adrp	x8, _IFA_LOCAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IFA_LOCAL@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_nla_get_u8
	tst	w0, #0x3
	b.eq	LBB0_9
LBB0_4:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh18:
	adrp	x8, _EPERM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.8:
	sub	sp, x29, #32
	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_9:
	mov	x21, x0
	ldr	w1, [x22]
	mov	x0, x20
	bl	___dev_get_by_index
	cbz	x0, LBB0_12
; %bb.10:
	mov	x20, x0
	ldr	x8, [x19]
Lloh23:
	adrp	x9, _RTM_NEWADDR@GOTPAGE
Lloh24:
	ldr	x9, [x9, _RTM_NEWADDR@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	mov	x1, x21
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
	bl	_phonet_address_add
	b	LBB0_14
LBB0_12:
Lloh26:
	adrp	x8, _ENODEV@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
LBB0_13:
	bl	_phonet_address_del
LBB0_14:
	cbnz	w0, LBB0_7
; %bb.15:
	ldr	x0, [x19]
	mov	x1, x20
	mov	x2, x21
	bl	_phonet_address_notify
	mov	w0, #0
	b	LBB0_7
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_IFA_MAX,4,2                    ; @IFA_MAX
	.comm	_CAP_SYS_ADMIN,4,2              ; @CAP_SYS_ADMIN
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_ifa_phonet_policy,4,2          ; @ifa_phonet_policy
	.comm	_IFA_LOCAL,8,3                  ; @IFA_LOCAL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_RTM_NEWADDR,8,3                ; @RTM_NEWADDR
	.no_dead_strip	_addr_doit
.subsections_via_symbols
