	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netlbl_cfg_cipsov4_map_add     ## -- Begin function netlbl_cfg_cipsov4_map_add
	.p2align	4, 0x90
_netlbl_cfg_cipsov4_map_add:            ## @netlbl_cfg_cipsov4_map_add
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	_ENOMEM@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	subl	(%r13), %r14d
	callq	_cipso_v4_doi_getdef
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	testq	%r12, %r12
	je	LBB0_7
## %bb.5:
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_kstrdup
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	%rbx, %rcx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rax
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	orq	%r13, %rax
	jne	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r15)
	movq	_NETLBL_NLTYPE_CIPSOV4@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
LBB0_16:
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_netlbl_domhsh_add
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_20
## %bb.17:
	xorl	%r14d, %r14d
	jmp	LBB0_21
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %r14d
	jmp	LBB0_21
LBB0_3:
	xorl	%r14d, %r14d
	subl	(%r13), %r14d
	jmp	LBB0_21
LBB0_9:
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.10:
	testq	%r13, %r13
	je	LBB0_18
## %bb.11:
	movl	(%rcx), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.12:
	movq	%rax, %r12
	leaq	32(%rax), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_INIT_LIST_HEAD
	movq	%r12, %rdi
	addq	$48, %rdi
	callq	_INIT_LIST_HEAD
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.13:
	movq	%rax, %rdx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%rdx)
	movq	_NETLBL_NLTYPE_CIPSOV4@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rdx)
	movl	(%r13), %eax
	movl	(%rbx), %ecx
	andl	%eax, %ecx
	movq	%rdx, %rbx
	movq	%rdx, %rdi
	addq	$36, %rdi
	movl	%ecx, 36(%rdx)
	movl	%eax, 40(%rdx)
	movl	$1, 44(%rdx)
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_netlbl_af4list_add
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %r14d
	jmp	LBB0_20
LBB0_6:
	xorl	%r12d, %r12d
	jmp	LBB0_19
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_19:
	xorl	%ebx, %ebx
LBB0_20:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_cipso_v4_doi_putdef
	movq	(%r15), %rdi
	callq	_kfree
	movq	%r15, %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_kfree
LBB0_21:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r12, 16(%r15)
	movq	_NETLBL_NLTYPE_ADDRSELECT@GOTPCREL(%rip), %rax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_NETLBL_NLTYPE_CIPSOV4,8,3      ## @NETLBL_NLTYPE_CIPSOV4
	.comm	_NETLBL_NLTYPE_ADDRSELECT,8,3   ## @NETLBL_NLTYPE_ADDRSELECT
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netlbl_cfg_cipsov4_map_add     ; -- Begin function netlbl_cfg_cipsov4_map_add
	.p2align	2
_netlbl_cfg_cipsov4_map_add:            ; @netlbl_cfg_cipsov4_map_add
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x4
	mov	x25, x3
	mov	x26, x2
	mov	x23, x1
Lloh0:
	adrp	x21, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ENOMEM@GOTPAGEOFF]
	ldr	w27, [x21]
	bl	_cipso_v4_doi_getdef
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x24, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.2:
	mov	x20, x0
	neg	w21, w27
	cbz	x23, LBB0_4
; %bb.3:
	ldr	w1, [x24]
	mov	x0, x23
	bl	_kstrdup
	str	x0, [x20]
	cbz	x0, LBB0_15
LBB0_4:
	orr	x8, x26, x25
	cbnz	x8, LBB0_9
; %bb.5:
	mov	x23, #0
	mov	x24, #0
	str	x19, [x20, #24]
Lloh4:
	adrp	x8, _NETLBL_NLTYPE_CIPSOV4@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NETLBL_NLTYPE_CIPSOV4@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	str	x8, [x20, #8]
	mov	x0, x20
	mov	x1, x22
	bl	_netlbl_domhsh_add
	mov	x21, x0
	cbnz	w0, LBB0_18
	b	LBB0_19
LBB0_7:
Lloh6:
	adrp	x8, _ENOENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_19
LBB0_8:
	ldr	w8, [x21]
	neg	w21, w8
	b	LBB0_19
LBB0_9:
	cbz	x26, LBB0_17
; %bb.10:
	cbz	x25, LBB0_17
; %bb.11:
	ldr	w1, [x24]
	mov	w0, #56
	bl	_kzalloc
	mov	x23, x0
	cbz	x0, LBB0_16
; %bb.12:
	add	x27, x23, #32
	mov	x0, x27
	bl	_INIT_LIST_HEAD
	add	x0, x23, #48
	bl	_INIT_LIST_HEAD
	ldr	w1, [x24]
	mov	w0, #56
	bl	_kzalloc
	mov	x24, x0
	cbz	x0, LBB0_18
; %bb.13:
	ldr	w8, [x26]
	ldr	w9, [x25]
	and	w8, w9, w8
	mov	x0, x24
	str	w8, [x0, #36]!
Lloh9:
	adrp	x8, _NETLBL_NLTYPE_CIPSOV4@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NETLBL_NLTYPE_CIPSOV4@GOTPAGEOFF]
	stur	x19, [x0, #-12]
Lloh11:
	ldr	x8, [x8]
	stur	x8, [x0, #-28]
	mov	w8, #1
	stp	w9, w8, [x0, #4]
	mov	x1, x27
	bl	_netlbl_af4list_add
	cbz	w0, LBB0_20
; %bb.14:
	mov	x21, x0
	b	LBB0_18
LBB0_15:
	mov	x23, #0
LBB0_16:
	mov	x24, #0
	b	LBB0_18
LBB0_17:
	mov	x23, #0
	mov	x24, #0
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_18:
	mov	x0, x19
	bl	_cipso_v4_doi_putdef
	ldr	x0, [x20]
	bl	_kfree
	mov	x0, x20
	bl	_kfree
	mov	x0, x23
	bl	_kfree
	mov	x0, x24
	bl	_kfree
LBB0_19:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_20:
	str	x23, [x20, #16]
Lloh15:
	adrp	x8, _NETLBL_NLTYPE_ADDRSELECT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NETLBL_NLTYPE_ADDRSELECT@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_NETLBL_NLTYPE_CIPSOV4,8,3      ; @NETLBL_NLTYPE_CIPSOV4
	.comm	_NETLBL_NLTYPE_ADDRSELECT,8,3   ; @NETLBL_NLTYPE_ADDRSELECT
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
