	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_if_free                        ## -- Begin function if_free
	.p2align	4, 0x90
_if_free:                               ## @if_free
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_IFF_DYING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%rdi)
	movl	16(%rdi), %edi
	callq	_CURVNET_SET_QUIET
	xorl	%eax, %eax
	callq	_IFNET_WLOCK
	movl	8(%rbx), %edi
	callq	_ifnet_byindex
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	movslq	12(%rbx), %rsi
	callq	_KASSERT
	movl	8(%rbx), %edi
	callq	_ifindex_free_locked
	xorl	%eax, %eax
	callq	_IFNET_WUNLOCK
	leaq	4(%rbx), %rdi
	callq	_refcount_release
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_net_epoch_preempt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_if_destroy@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_epoch_call
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_CURVNET_RESTORE                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_DYING,4,2                  ## @IFF_DYING
	.comm	_net_epoch_preempt,4,2          ## @net_epoch_preempt
	.comm	_if_destroy,4,2                 ## @if_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_if_free                        ; -- Begin function if_free
	.p2align	2
_if_free:                               ; @if_free
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _IFF_DYING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFF_DYING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w0, w9, [x0, #16]
	orr	w8, w9, w8
	str	w8, [x19, #20]
	bl	_CURVNET_SET_QUIET
	bl	_IFNET_WLOCK
	ldr	w0, [x19, #8]
	bl	_ifnet_byindex
	cmp	x0, x19
	cset	w0, eq
	ldrsw	x1, [x19, #12]
	bl	_KASSERT
	ldr	w0, [x19, #8]
	bl	_ifindex_free_locked
	bl	_IFNET_WUNLOCK
	add	x0, x19, #4
	bl	_refcount_release
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _net_epoch_preempt@GOTPAGE
Lloh4:
	ldr	x8, [x8, _net_epoch_preempt@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _if_destroy@GOTPAGE
Lloh7:
	ldr	x8, [x8, _if_destroy@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_epoch_call
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_CURVNET_RESTORE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_DYING,4,2                  ; @IFF_DYING
	.comm	_net_epoch_preempt,4,2          ; @net_epoch_preempt
	.comm	_if_destroy,4,2                 ; @if_destroy
.subsections_via_symbols
