	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function if_grow
_if_grow:                               ## @if_grow
	.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
	xorl	%eax, %eax
	callq	_IFNET_WLOCK_ASSERT
	movq	_V_if_indexlim@GOTPCREL(%rip), %r15
	movl	(%r15), %r12d
	xorl	%eax, %eax
	callq	_IFNET_WUNLOCK
	movl	%r12d, %ebx
	shll	$4, %ebx
	movq	_M_IFNET@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	%ebx, %edi
	callq	_malloc
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_IFNET_WLOCK
	cmpl	%r12d, (%r15)
	jne	LBB0_1
## %bb.2:
	movq	_V_ifindex_table@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.4:
	movl	%ebx, %edx
	shrl	$31, %edx
	addl	%ebx, %edx
	sarl	%edx
	movl	%r14d, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_memcpy
	movq	(%r13), %rax
	movl	(%r15), %r12d
	jmp	LBB0_5
LBB0_1:
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_free
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	addl	%r12d, %r12d
	movl	%r12d, (%r15)
	movq	%r14, (%r13)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V_if_indexlim,4,2              ## @V_if_indexlim
	.comm	_M_IFNET,4,2                    ## @M_IFNET
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_V_ifindex_table,8,3            ## @V_ifindex_table
	.no_dead_strip	_if_grow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function if_grow
_if_grow:                               ; @if_grow
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_IFNET_WLOCK_ASSERT
Lloh0:
	adrp	x21, _V_if_indexlim@GOTPAGE
Lloh1:
	ldr	x21, [x21, _V_if_indexlim@GOTPAGEOFF]
	ldr	w22, [x21]
	bl	_IFNET_WUNLOCK
	lsl	w20, w22, #4
Lloh2:
	adrp	x23, _M_IFNET@GOTPAGE
Lloh3:
	ldr	x23, [x23, _M_IFNET@GOTPAGEOFF]
Lloh4:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh8:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_malloc
	mov	x19, x0
	bl	_IFNET_WLOCK
	ldr	w8, [x21]
	cmp	w8, w22
	b.ne	LBB0_3
; %bb.1:
Lloh10:
	adrp	x23, _V_ifindex_table@GOTPAGE
Lloh11:
	ldr	x23, [x23, _V_ifindex_table@GOTPAGEOFF]
	ldr	x1, [x23]
	cbz	x1, LBB0_4
; %bb.2:
	cmp	w20, #0
	cinc	w8, w20, lt
	asr	w2, w8, #1
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_memcpy
	ldr	x0, [x23]
	ldr	w22, [x21]
	b	LBB0_5
LBB0_3:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_free
	mov	x0, #0
	b	LBB0_6
LBB0_4:
	mov	x0, #0
LBB0_5:
	lsl	w8, w22, #1
	str	w8, [x21]
	str	x19, [x23]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_V_if_indexlim,4,2              ; @V_if_indexlim
	.comm	_M_IFNET,4,2                    ; @M_IFNET
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_V_ifindex_table,8,3            ; @V_ifindex_table
	.no_dead_strip	_if_grow
.subsections_via_symbols
