	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ta_del_ifidx
_ta_del_ifidx:                          ## @ta_del_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	8(%rdx), %rdx
	movl	8(%rdi), %edi
	xorl	%esi, %esi
	callq	_ipfw_objhash_lookup_name
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	16(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	24(%r13), %esi
	movq	16(%r13), %rdx
	movq	_compare_ifidx@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-44(%rbp), %rdi
	movl	$4, %ecx
	callq	_bdel
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	movslq	-44(%rbp), %rsi
	callq	_KASSERT
	movq	16(%r13), %rax
	decq	%rax
	movq	%rax, 16(%r13)
	movq	%rax, (%r14)
	movq	$0, (%r15)
LBB0_4:
	movl	8(%r13), %edi
	leaq	24(%r15), %rsi
	callq	_ipfw_objhash_del
	movl	4(%r13), %edi
	movq	%r15, %rbx
	addq	$16, %rbx
	movq	%rbx, %rsi
	callq	_ipfw_iface_del_notify
	movl	4(%r13), %edi
	movq	%rbx, %rsi
	callq	_ipfw_iface_unref
	decl	(%r13)
	movl	8(%r15), %eax
	movl	%eax, (%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_compare_ifidx,4,2              ## @compare_ifidx
	.no_dead_strip	_ta_del_ifidx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ta_del_ifidx
_ta_del_ifidx:                          ; @ta_del_ifidx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x24, x1
	mov	x22, x0
	ldr	x2, [x2, #8]
	ldr	w0, [x0, #8]
	mov	w1, #0
	bl	_ipfw_objhash_lookup_name
	cbz	x0, LBB0_4
; %bb.1:
	mov	x23, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x23, #16]
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	w1, [x22, #24]
	ldr	x2, [x22, #16]
Lloh0:
	adrp	x8, _compare_ifidx@GOTPAGE
Lloh1:
	ldr	x8, [x8, _compare_ifidx@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	add	x0, sp, #12
	mov	w3, #4
	bl	_bdel
	cmp	w0, #1
	cset	w0, eq
	ldrsw	x1, [sp, #12]
	bl	_KASSERT
	ldr	x8, [x22, #16]
	sub	x8, x8, #1
	str	x8, [x22, #16]
	str	x8, [x24]
	str	xzr, [x23]
LBB0_3:
	ldr	w0, [x22, #8]
	add	x1, x23, #24
	bl	_ipfw_objhash_del
	ldr	w0, [x22, #4]
	add	x24, x23, #16
	mov	x1, x24
	bl	_ipfw_iface_del_notify
	ldr	w0, [x22, #4]
	mov	x1, x24
	bl	_ipfw_iface_unref
	mov	w0, #0
	ldr	w8, [x22]
	sub	w8, w8, #1
	str	w8, [x22]
	ldr	w8, [x23, #8]
	str	w8, [x21]
	str	x23, [x20]
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_5:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_compare_ifidx,4,2              ; @compare_ifidx
	.no_dead_strip	_ta_del_ifidx
.subsections_via_symbols
