	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipfw_export_table_ntlv         ## -- Begin function ipfw_export_table_ntlv
	.p2align	4, 0x90
_ipfw_export_table_ntlv:                ## @ipfw_export_table_ntlv
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_CHAIN_TO_NI
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_ipfw_objhash_lookup_kidx
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_ipfw_get_sopt_space
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_IPFW_TLV_TBL_NAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movl	$16, 8(%rax)
	movl	4(%rbx), %ecx
	movl	%ecx, 4(%rax)
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movl	$4, %edx
	callq	_strlcpy
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid table kidx passed"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IPFW_TLV_TBL_NAME,4,2          ## @IPFW_TLV_TBL_NAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipfw_export_table_ntlv         ; -- Begin function ipfw_export_table_ntlv
	.p2align	2
_ipfw_export_table_ntlv:                ; @ipfw_export_table_ntlv
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x1
	bl	_CHAIN_TO_NI
	mov	x1, x19
	bl	_ipfw_objhash_lookup_kidx
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	mov	w21, #16
	mov	x0, x20
	mov	w1, #16
	bl	_ipfw_get_sopt_space
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _IPFW_TLV_TBL_NAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IPFW_TLV_TBL_NAME@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0, #12]
	ldp	w1, w8, [x19]
	stp	w8, w21, [x0, #4]
	ldr	w0, [x0]
	mov	w2, #4
	bl	_strlcpy
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid table kidx passed"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IPFW_TLV_TBL_NAME,4,2          ; @IPFW_TLV_TBL_NAME
.subsections_via_symbols
