	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtm_to_ifaddr
_rtm_to_ifaddr:                         ## @rtm_to_ifaddr
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_IFA_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	1(%rbx), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_ifa_ipv4_policy@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movl	$16, %esi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_nlmsg_parse
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	%r12, %rdi
	callq	_nlmsg_data
	movq	%rax, %r12
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	cmpl	$32, (%r12)
	jg	LBB0_2
## %bb.4:
	movq	_IFA_LOCAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%r14,%rax,8)
	je	LBB0_2
## %bb.5:
	movl	12(%r12), %esi
	movq	%r15, %rdi
	callq	___dev_get_by_index
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	___in_dev_get_rtnl
	movq	%rax, %r15
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	testq	%r15, %r15
	je	LBB0_2
## %bb.8:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_inet_alloc_ifa
	testq	%rax, %rax
	je	LBB0_2
## %bb.9:
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_ipv4_devconf_setall
	movq	%r15, %rdi
	callq	_in_dev_hold
	movq	_IFA_ADDRESS@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpq	$0, (%r14,%rax,8)
	jne	LBB0_11
## %bb.10:
	movq	_IFA_LOCAL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r14,%rcx,8), %rcx
	movq	%rcx, (%r14,%rax,8)
LBB0_11:
	movl	(%r12), %edi
	movl	%edi, (%r13)
	callq	_inet_make_mask
	movl	%eax, 48(%r13)
	movl	8(%r12), %eax
	movl	%eax, 44(%r13)
	movl	4(%r12), %eax
	movl	%eax, 40(%r13)
	movq	%r15, 32(%r13)
	movq	_IFA_LOCAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14,%rax,8), %rdi
	callq	_nla_get_be32
	movq	%rax, 24(%r13)
	movq	(%rbx), %rax
	movq	(%r14,%rax,8), %rdi
	callq	_nla_get_be32
	movq	%rax, 16(%r13)
	movq	_IFA_BROADCAST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_nla_get_be32
	movq	%rax, 8(%r13)
LBB0_13:
	movq	_IFA_LABEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14,%rax,8), %rsi
	movl	4(%r13), %edi
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.14:
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_nla_strlcpy
	jmp	LBB0_16
LBB0_1:
	movl	%eax, %ebx
LBB0_2:
	movl	%ebx, %edi
	callq	_ERR_PTR
	movq	%rax, %r13
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movq	%r13, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_2
LBB0_15:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	jmp	LBB0_16
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IFA_MAX,4,2                    ## @IFA_MAX
	.comm	_ifa_ipv4_policy,4,2            ## @ifa_ipv4_policy
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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_BROADCAST,8,3              ## @IFA_BROADCAST
	.comm	_IFA_LABEL,8,3                  ## @IFA_LABEL
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.no_dead_strip	_rtm_to_ifaddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtm_to_ifaddr
_rtm_to_ifaddr:                         ; @rtm_to_ifaddr
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
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, _ifa_ipv4_policy@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ifa_ipv4_policy@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	mov	x0, x1
	mov	w1, #16
	mov	x2, x19
	bl	_nlmsg_parse
	tbnz	w0, #31, LBB0_12
; %bb.1:
	mov	x0, x21
	bl	_nlmsg_data
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w24, w8
	ldr	w8, [x0]
	cmp	w8, #32
	b.gt	LBB0_13
; %bb.2:
Lloh14:
	adrp	x25, _IFA_LOCAL@GOTPAGE
Lloh15:
	ldr	x25, [x25, _IFA_LOCAL@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	x8, [x19, x8, lsl #3]
	cbz	x8, LBB0_13
; %bb.3:
	mov	x22, x0
	ldr	w1, [x0, #12]
	mov	x0, x20
	bl	___dev_get_by_index
	cbz	x0, LBB0_16
; %bb.4:
	mov	x21, x0
	bl	___in_dev_get_rtnl
Lloh16:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w24, w8
	cbz	x0, LBB0_13
; %bb.5:
	mov	x23, x0
	bl	_inet_alloc_ifa
	cbz	x0, LBB0_13
; %bb.6:
	mov	x20, x0
	mov	x0, x23
	bl	_ipv4_devconf_setall
	mov	x0, x23
	bl	_in_dev_hold
Lloh19:
	adrp	x24, _IFA_ADDRESS@GOTPAGE
Lloh20:
	ldr	x24, [x24, _IFA_ADDRESS@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x9, [x19, x8, lsl #3]
	cbnz	x9, LBB0_8
; %bb.7:
	ldr	x9, [x25]
	ldr	x9, [x19, x9, lsl #3]
	str	x9, [x19, x8, lsl #3]
LBB0_8:
	ldr	w0, [x22]
	str	w0, [x20]
	bl	_inet_make_mask
	str	w0, [x20, #48]
	ldur	d0, [x22, #4]
	str	d0, [x20, #40]
	str	x23, [x20, #32]
	ldr	x8, [x25]
	ldr	x0, [x19, x8, lsl #3]
	bl	_nla_get_be32
	str	x0, [x20, #24]
	ldr	x8, [x24]
	ldr	x0, [x19, x8, lsl #3]
	bl	_nla_get_be32
	str	x0, [x20, #16]
Lloh21:
	adrp	x8, _IFA_BROADCAST@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IFA_BROADCAST@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	x0, [x19, x8, lsl #3]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_nla_get_be32
	str	x0, [x20, #8]
LBB0_10:
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, [x20, #4]
	cbz	x1, LBB0_17
; %bb.11:
Lloh27:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	bl	_nla_strlcpy
	b	LBB0_14
LBB0_12:
	mov	x24, x0
LBB0_13:
	mov	x0, x24
	bl	_ERR_PTR
	mov	x20, x0
LBB0_14:
	ldur	x8, [x29, #-72]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.15:
	mov	x0, x20
	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_16:
Lloh33:
	adrp	x8, _ENODEV@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_13
LBB0_17:
	ldr	w1, [x21]
Lloh36:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	bl	_memcpy
	b	LBB0_14
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_IFA_MAX,4,2                    ; @IFA_MAX
	.comm	_ifa_ipv4_policy,4,2            ; @ifa_ipv4_policy
	.comm	_EINVAL,4,2                     ; @EINVAL
	.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_BROADCAST,8,3              ; @IFA_BROADCAST
	.comm	_IFA_LABEL,8,3                  ; @IFA_LABEL
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.no_dead_strip	_rtm_to_ifaddr
.subsections_via_symbols
