	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtsock_msg_buffer
_rtsock_msg_buffer:                     ## @rtsock_msg_buffer
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movl	%edi, %eax
	andl	$-4, %eax
	xorl	%ecx, %ecx
	cmpl	$128, %eax
	setne	%cl
	leal	4(,%rcx,8), %ebx
	testq	%rdx, %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	8(%rdx), %rdi
	movl	(%rdx), %eax
	subl	%ebx, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %eax
	movq	%rdi, %rcx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rdi,%rax,8), %r14
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_3:
	movl	$0, (%rsi)
	movq	_RTAX_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.4:
	xorl	%r15d, %r15d
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	addl	%r12d, %ebx
	movq	_RTAX_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rcx, %r14
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	cmpq	%rcx, %r15
	jge	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rsi), %rcx
	movq	(%rcx,%r15,8), %r13
	testq	%r13, %r13
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %eax
	movl	%r15d, %ecx
	shll	%cl, %eax
	orl	%eax, (%rsi)
	movq	%r13, %rdi
	callq	_SA_SIZE
	movl	%eax, %r12d
	testq	%r14, %r14
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %ebx
	movl	$0, %ecx
	subl	%r12d, %ebx
	jl	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_memmove
	movslq	%r12d, %rax
	leaq	(%r14,%rax,8), %rcx
	movl	%ebx, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
LBB0_12:
	testq	%r14, %r14
	je	LBB0_14
## %bb.13:
	movl	%ebx, %edi
	callq	_ALIGN
	subl	%ebx, %eax
	cmpl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	jge	LBB0_15
LBB0_14:
	movl	%ebx, %edi
	callq	_ALIGN
	movb	$1, %cl
	jmp	LBB0_16
LBB0_15:
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_bzero
	movl	%ebx, %edi
	callq	_ALIGN
	movq	_RTM_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, 8(%rdx)
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rdx)
	movl	%eax, 4(%rdx)
	xorl	%ecx, %ecx
LBB0_16:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx)
	xorl	%eax, %eax
	movl	$0, %edx
	testb	%cl, %cl
	je	LBB0_18
## %bb.17:
	movq	_ENOBUFS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_18:
	testq	%rsi, %rsi
	cmovnel	%edx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NET_RT_IFLISTL,4,2             ## @NET_RT_IFLISTL
	.comm	_RTAX_MAX,4,2                   ## @RTAX_MAX
	.comm	_RTM_VERSION,4,2                ## @RTM_VERSION
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_SCTL_MASK32,4,2                ## @SCTL_MASK32
	.comm	_V_deembed_scopeid,8,3          ## @V_deembed_scopeid
	.no_dead_strip	_rtsock_msg_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtsock_msg_buffer
_rtsock_msg_buffer:                     ; @rtsock_msg_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	stp	x2, x3, [sp, #16]               ; 16-byte Folded Spill
	mov	x23, x1
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	and	w8, w0, #0xfffffffc
	mov	w9, #12
	mov	w10, #4
	cmp	w8, #128
	csel	w22, w10, w9, eq
	cbz	x2, LBB0_2
; %bb.1:
	ldr	x9, [x2, #8]
	ldr	w8, [x2]
	sub	w20, w8, w22
	str	x9, [sp]                        ; 8-byte Folded Spill
	add	x24, x9, w22, uxtw #3
	b	LBB0_3
LBB0_2:
	mov	w20, #0
	mov	x24, #0
	str	xzr, [sp]                       ; 8-byte Folded Spill
LBB0_3:
	str	wzr, [x23]
Lloh0:
	adrp	x19, _RTAX_MAX@GOTPAGE
Lloh1:
	ldr	x19, [x19, _RTAX_MAX@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.4:
	mov	x21, #0
	mov	w27, #1
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w22, w25, w22
	ldr	w8, [x19]
	mov	x24, x9
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23, #8]
	ldr	x26, [x9, x21, lsl #3]
	cbz	x26, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	lsl	w8, w27, w21
	ldr	w9, [x23]
	orr	w8, w9, w8
	str	w8, [x23]
	mov	x0, x26
	bl	_SA_SIZE
	mov	x25, x0
	mov	x9, #0
	cbz	x24, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	subs	w28, w20, w25
	b.lt	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	mov	x1, x26
	mov	x2, x25
	bl	_memmove
	add	x9, x24, w25, sxtw #3
	mov	x20, x28
	b	LBB0_5
LBB0_11:
	cbz	x24, LBB0_13
; %bb.12:
	mov	x0, x22
	bl	_ALIGN
	sub	w1, w0, w22
	cmp	w20, w1
	b.ge	LBB0_14
LBB0_13:
	mov	x0, x22
	bl	_ALIGN
	mov	w8, #1
	b	LBB0_15
LBB0_14:
	mov	x0, x24
	bl	_bzero
	mov	x0, x22
	bl	_ALIGN
	mov	w8, #0
Lloh2:
	adrp	x9, _RTM_VERSION@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RTM_VERSION@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldr	x10, [sp]                       ; 8-byte Folded Reload
	stp	w0, w9, [x10, #4]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	str	w9, [x10]
LBB0_15:
	ldp	x9, x10, [sp, #16]              ; 16-byte Folded Reload
	cmp	x9, #0
	cset	w9, ne
	str	w0, [x10]
Lloh5:
	adrp	x10, _ENOBUFS@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ENOBUFS@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w0, w10, wzr, ne
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NET_RT_IFLISTL,4,2             ; @NET_RT_IFLISTL
	.comm	_RTAX_MAX,4,2                   ; @RTAX_MAX
	.comm	_RTM_VERSION,4,2                ; @RTM_VERSION
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_SCTL_MASK32,4,2                ; @SCTL_MASK32
	.comm	_V_deembed_scopeid,8,3          ; @V_deembed_scopeid
	.no_dead_strip	_rtsock_msg_buffer
.subsections_via_symbols
