	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipfw_iface_ref                 ## -- Begin function ipfw_iface_ref
	.p2align	4, 0x90
_ipfw_iface_ref:                        ## @ipfw_iface_ref
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_strlen
	cmpl	$4, %eax
	jb	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_12
LBB0_2:
	movq	%rbx, %rdi
	callq	_IPFW_UH_WLOCK
	movq	%rbx, %rdi
	callq	_CHAIN_TO_II
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_IPFW_UH_WUNLOCK
	movq	%rbx, %rdi
	callq	_vnet_ipfw_iface_init
	movq	%rbx, %rdi
	callq	_IPFW_UH_WLOCK
	movq	%rbx, %rdi
	callq	_CHAIN_TO_II
	movq	%rax, %r12
LBB0_4:
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_ipfw_objhash_lookup_name
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	incl	12(%rax)
	movq	%rax, (%r14)
LBB0_11:
	movq	%rbx, %rdi
	callq	_IPFW_UH_WUNLOCK
	jmp	LBB0_12
LBB0_6:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_IPFW_UH_WUNLOCK
	movq	_M_IPFW@GOTPCREL(%rip), %rax
	movl	(%rax), %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, %r14
	leaq	24(%rax), %rdi
	callq	_TAILQ_INIT
	movl	20(%r14), %edi
	movl	%edi, 16(%r14)
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movl	$1, 12(%r14)
	movq	%rbx, %rdi
	callq	_IPFW_UH_WLOCK
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_ipfw_objhash_lookup_name
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	incl	12(%rax)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	callq	_IPFW_UH_WUNLOCK
	movq	_M_IPFW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_free
LBB0_12:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rax
	addq	$12, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_ipfw_kiflookup
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	$1, 8(%r14)
LBB0_10:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_ipfw_objhash_add
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_M_IPFW,4,2                     ## @M_IPFW
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipfw_iface_ref                 ; -- Begin function ipfw_iface_ref
	.p2align	2
_ipfw_iface_ref:                        ; @ipfw_iface_ref
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_strlen
	cmp	w0, #4
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_2:
	mov	x0, x19
	bl	_IPFW_UH_WLOCK
	mov	x0, x19
	bl	_CHAIN_TO_II
	mov	x22, x0
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_IPFW_UH_WUNLOCK
	mov	x0, x19
	bl	_vnet_ipfw_iface_init
	mov	x0, x19
	bl	_IPFW_UH_WLOCK
	mov	x0, x19
	bl	_CHAIN_TO_II
	mov	x22, x0
LBB0_4:
	mov	x0, x22
	mov	w1, #0
	mov	x2, x21
	bl	_ipfw_objhash_lookup_name
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w8, [x0, #12]
	add	w8, w8, #1
	str	w8, [x0, #12]
	str	x0, [x20]
LBB0_6:
	mov	x0, x19
	bl	_IPFW_UH_WUNLOCK
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_IPFW_UH_WUNLOCK
Lloh3:
	adrp	x25, _M_IPFW@GOTPAGE
Lloh4:
	ldr	x25, [x25, _M_IPFW@GOTPAGEOFF]
Lloh5:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
	ldr	w1, [x25]
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	x23, x0
	add	x0, x0, #24
	bl	_TAILQ_INIT
	ldr	w0, [x23, #20]
	str	w0, [x23, #16]
	mov	x1, x21
	mov	w2, #4
	bl	_strlcpy
	mov	w8, #1
	mov	x24, x23
	str	w8, [x24, #12]!
	mov	x0, x19
	bl	_IPFW_UH_WLOCK
	mov	x0, x22
	mov	w1, #0
	mov	x2, x21
	bl	_ipfw_objhash_lookup_name
	cbz	x0, LBB0_11
; %bb.8:
	ldr	w8, [x0, #12]
	add	w8, w8, #1
	str	w8, [x0, #12]
	str	x0, [x20]
	mov	x0, x19
	bl	_IPFW_UH_WUNLOCK
	ldr	w1, [x25]
	mov	x0, x23
	bl	_free
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x0, x21
	bl	_ipfw_kiflookup
	str	x0, [x23]
	cbz	x0, LBB0_13
; %bb.12:
	mov	w8, #1
	str	w8, [x23, #8]
LBB0_13:
	mov	x0, x22
	mov	x1, x24
	bl	_ipfw_objhash_add
	str	x23, [x20]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_M_IPFW,4,2                     ; @M_IPFW
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
.subsections_via_symbols
