	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dn_nl_newaddr
_dn_nl_newaddr:                         ## @dn_nl_newaddr
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %edi
	callq	_sock_net
	movq	%rax, %rbx
	movq	_IFA_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leal	1(%r12), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	cmpq	_init_net@GOTPCREL(%rip), %rbx
	je	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r13d, %r13d
LBB0_3:
	subl	(%rax), %r13d
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.5:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_dn_ifa_policy@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	$12, %esi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	callq	_nlmsg_parse
	movl	%eax, -52(%rbp)
	testl	%eax, %eax
	js	LBB0_16
## %bb.7:
	movq	_IFA_LOCAL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpq	$0, (%r14,%rax,8)
	je	LBB0_1
## %bb.8:
	movq	%r15, %rdi
	callq	_nlmsg_data
	movq	%rax, %r12
	movl	8(%rax), %esi
	movq	_init_net@GOTPCREL(%rip), %rdi
	callq	___dev_get_by_index
	testq	%rax, %rax
	je	LBB0_17
## %bb.9:
	movq	%rax, %r15
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	leaq	-52(%rbp), %rsi
	movq	%r15, %rdi
	callq	_dn_dev_create
	testq	%rax, %rax
	je	LBB0_22
LBB0_11:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_dn_dev_alloc_ifa
	testq	%rax, %rax
	je	LBB0_18
## %bb.12:
	movq	%rax, %r12
	movq	_IFA_ADDRESS@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	cmpq	$0, (%r14,%rax,8)
	movq	(%rbx), %rcx
	jne	LBB0_14
## %bb.13:
	movq	(%r14,%rcx,8), %rdx
	movq	%rdx, (%r14,%rax,8)
LBB0_14:
	movq	(%r14,%rcx,8), %rdi
	callq	_nla_get_le16
	movq	%rax, 32(%r12)
	movq	(%r13), %rax
	movq	(%r14,%rax,8), %rdi
	callq	_nla_get_le16
	movq	%rax, 24(%r12)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx), %eax
	movl	%eax, 20(%r12)
	movl	(%rcx), %eax
	movl	%eax, 16(%r12)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, 8(%r12)
	movq	_IFA_LABEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14,%rax,8), %rsi
	movl	(%r12), %edi
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.15:
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_nla_strlcpy
	jmp	LBB0_20
LBB0_16:
	movl	%eax, %r13d
	jmp	LBB0_4
LBB0_17:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_18:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_19:
	movl	(%r15), %esi
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
LBB0_20:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_dn_dev_insert_ifa
	movl	%eax, -52(%rbp)
	testl	%eax, %eax
	je	LBB0_23
## %bb.21:
	movq	%r12, %rdi
	callq	_dn_dev_free_ifa
LBB0_22:
	movl	-52(%rbp), %r13d
	jmp	LBB0_4
LBB0_23:
	xorl	%r13d, %r13d
	jmp	LBB0_4
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IFA_MAX,4,2                    ## @IFA_MAX
	.comm	_init_net,4,2                   ## @init_net
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_dn_ifa_policy,4,2              ## @dn_ifa_policy
	.comm	_IFA_LOCAL,8,3                  ## @IFA_LOCAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_IFA_ADDRESS,8,3                ## @IFA_ADDRESS
	.comm	_IFA_LABEL,8,3                  ## @IFA_LABEL
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.no_dead_strip	_dn_nl_newaddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dn_nl_newaddr
_dn_nl_newaddr:                         ; @dn_nl_newaddr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	w0, [x0]
	bl	_sock_net
Lloh3:
	adrp	x8, _IFA_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFA_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	w8, w3, #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh8:
	adrp	x8, _init_net@GOTPAGE
Lloh9:
	ldr	x8, [x8, _init_net@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_5
LBB0_1:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldur	x8, [x29, #-72]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.4:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh15:
	adrp	x8, _dn_ifa_policy@GOTPAGE
Lloh16:
	ldr	x8, [x8, _dn_ifa_policy@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
	mov	x0, x20
	mov	w1, #12
	mov	x2, x19
	bl	_nlmsg_parse
	stur	w0, [x29, #-76]
	tbnz	w0, #31, LBB0_3
; %bb.6:
Lloh18:
	adrp	x24, _IFA_LOCAL@GOTPAGE
Lloh19:
	ldr	x24, [x24, _IFA_LOCAL@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x8, [x19, x8, lsl #3]
	cbz	x8, LBB0_1
; %bb.7:
	mov	x0, x20
	bl	_nlmsg_data
	mov	x23, x0
	ldr	w1, [x0, #8]
Lloh20:
	adrp	x0, _init_net@GOTPAGE
Lloh21:
	ldr	x0, [x0, _init_net@GOTPAGEOFF]
	bl	___dev_get_by_index
	cbz	x0, LBB0_15
; %bb.8:
	mov	x22, x0
	ldr	x20, [x0, #8]
	cbnz	x20, LBB0_10
; %bb.9:
	sub	x1, x29, #76
	mov	x0, x22
	bl	_dn_dev_create
	mov	x20, x0
	cbz	x0, LBB0_20
LBB0_10:
	bl	_dn_dev_alloc_ifa
	cbz	x0, LBB0_16
; %bb.11:
	mov	x21, x0
Lloh22:
	adrp	x25, _IFA_ADDRESS@GOTPAGE
Lloh23:
	ldr	x25, [x25, _IFA_ADDRESS@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	x10, [x19, x8, lsl #3]
	ldr	x9, [x24]
	cbnz	x10, LBB0_13
; %bb.12:
	ldr	x10, [x19, x9, lsl #3]
	str	x10, [x19, x8, lsl #3]
LBB0_13:
	ldr	x0, [x19, x9, lsl #3]
	bl	_nla_get_le16
	str	x0, [x21, #32]
	ldr	x8, [x25]
	ldr	x0, [x19, x8, lsl #3]
	bl	_nla_get_le16
	str	x0, [x21, #24]
	ldr	d0, [x23]
	str	d0, [x21, #16]
	str	x20, [x21, #8]
Lloh24:
	adrp	x8, _IFA_LABEL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IFA_LABEL@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldr	x1, [x19, x8, lsl #3]
	ldr	w0, [x21]
	cbz	x1, LBB0_17
; %bb.14:
Lloh27:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	bl	_nla_strlcpy
	b	LBB0_18
LBB0_15:
Lloh30:
	adrp	x8, _ENODEV@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_2
LBB0_16:
Lloh32:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
	b	LBB0_2
LBB0_17:
	ldr	w1, [x22]
Lloh34:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	bl	_memcpy
LBB0_18:
	mov	x0, x20
	mov	x1, x21
	bl	_dn_dev_insert_ifa
	stur	w0, [x29, #-76]
	cbz	w0, LBB0_3
; %bb.19:
	mov	x0, x21
	bl	_dn_dev_free_ifa
LBB0_20:
	ldur	w0, [x29, #-76]
	b	LBB0_3
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_IFA_MAX,4,2                    ; @IFA_MAX
	.comm	_init_net,4,2                   ; @init_net
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_dn_ifa_policy,4,2              ; @dn_ifa_policy
	.comm	_IFA_LOCAL,8,3                  ; @IFA_LOCAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_IFA_ADDRESS,8,3                ; @IFA_ADDRESS
	.comm	_IFA_LABEL,8,3                  ; @IFA_LABEL
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.no_dead_strip	_dn_nl_newaddr
.subsections_via_symbols
