	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netlbl_cipsov4_add_local
_netlbl_cipsov4_add_local:              ## @netlbl_cipsov4_add_local
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_NLBL_CIPSOV4_A_TAGLST@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_1
## %bb.3:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	_CIPSO_V4_MAP_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_netlbl_cipsov4_add_common
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_cipso_v4_doi_add
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	movq	%r15, %rdi
	callq	_cipso_v4_doi_free
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_NLBL_CIPSOV4_A_TAGLST,8,3      ## @NLBL_CIPSOV4_A_TAGLST
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CIPSO_V4_MAP_LOCAL,4,2         ## @CIPSO_V4_MAP_LOCAL
	.no_dead_strip	_netlbl_cipsov4_add_local
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netlbl_cipsov4_add_local
_netlbl_cipsov4_add_local:              ; @netlbl_cipsov4_add_local
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NLBL_CIPSOV4_A_TAGLST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NLBL_CIPSOV4_A_TAGLST@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x21, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kmalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
Lloh6:
	adrp	x8, _CIPSO_V4_MAP_LOCAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CIPSO_V4_MAP_LOCAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x0]
	mov	x0, x21
	mov	x1, x20
	bl	_netlbl_cipsov4_add_common
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_cipso_v4_doi_add
	mov	x21, x0
	cbz	w0, LBB0_8
LBB0_4:
	mov	x0, x20
	bl	_cipso_v4_doi_free
	b	LBB0_8
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_NLBL_CIPSOV4_A_TAGLST,8,3      ; @NLBL_CIPSOV4_A_TAGLST
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CIPSO_V4_MAP_LOCAL,4,2         ; @CIPSO_V4_MAP_LOCAL
	.no_dead_strip	_netlbl_cipsov4_add_local
.subsections_via_symbols
