	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ta_prepare_add_ifidx
_ta_prepare_add_ifidx:                  ## @ta_prepare_add_ifidx
	.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	%rdx, %r14
	movq	%rdi, %r15
	movq	(%rsi), %r12
	movq	_IF_NAMESIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_strnlen
	cmpq	%rbx, %rax
	je	LBB0_1
## %bb.2:
	movq	_M_IPFW_TBL@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	$32, %edi
	callq	_malloc
	movq	%rax, %rbx
	movq	_if_notifier@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%rbx, 8(%rbx)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_ipfw_iface_ref
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_free
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_4:
	movq	(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%rbx, (%r14)
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IF_NAMESIZE,8,3                ## @IF_NAMESIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_M_IPFW_TBL,4,2                 ## @M_IPFW_TBL
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_if_notifier,4,2                ## @if_notifier
	.no_dead_strip	_ta_prepare_add_ifidx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ta_prepare_add_ifidx
_ta_prepare_add_ifidx:                  ; @ta_prepare_add_ifidx
	.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
	mov	x19, x2
	mov	x20, x0
	ldr	x21, [x1]
Lloh0:
	adrp	x8, _IF_NAMESIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IF_NAMESIZE@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_strnlen
	cmp	x0, x22
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x23, _M_IPFW_TBL@GOTPAGE
Lloh4:
	ldr	x23, [x23, _M_IPFW_TBL@GOTPAGEOFF]
Lloh5:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #32
	bl	_malloc
	mov	x22, x0
Lloh11:
	adrp	x8, _if_notifier@GOTPAGE
Lloh12:
	ldr	x8, [x8, _if_notifier@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	str	x0, [x0, #8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_ipfw_iface_ref
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w1, [x23]
	mov	x0, x22
	bl	_free
LBB0_3:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
	ldr	x8, [x22]
	ldr	w8, [x8]
	str	w8, [x22, #24]
	str	x22, [x19]
LBB0_5:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IF_NAMESIZE,8,3                ; @IF_NAMESIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_M_IPFW_TBL,4,2                 ; @M_IPFW_TBL
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_if_notifier,4,2                ; @if_notifier
	.no_dead_strip	_ta_prepare_add_ifidx
.subsections_via_symbols
