	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netlbl_cipsov4_remove
_netlbl_cipsov4_remove:                 ## @netlbl_cipsov4_remove
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -40(%rbp)
	movl	$0, -36(%rbp)
	movq	(%rsi), %rax
	movq	_NLBL_CIPSOV4_A_DOI@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	leaq	-32(%rbp), %r14
	movq	%r14, %rsi
	callq	_netlbl_netlink_auditinfo
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_nla_get_u32
	movl	%eax, -56(%rbp)
	movq	%r14, -48(%rbp)
	movq	_netlbl_cipsov4_remove_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	leaq	-56(%rbp), %rcx
	callq	_netlbl_domhsh_walk
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_6
LBB0_4:
	movl	-56(%rbp), %edi
	leaq	-32(%rbp), %rsi
	callq	_cipso_v4_doi_remove
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_netlabel_mgmt_protocount@GOTPCREL(%rip), %rdi
	callq	_atomic_dec
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NLBL_CIPSOV4_A_DOI,8,3         ## @NLBL_CIPSOV4_A_DOI
	.comm	_netlbl_cipsov4_remove_cb,4,2   ## @netlbl_cipsov4_remove_cb
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_netlabel_mgmt_protocount,4,2   ## @netlabel_mgmt_protocount
	.no_dead_strip	_netlbl_cipsov4_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netlbl_cipsov4_remove
_netlbl_cipsov4_remove:                 ; @netlbl_cipsov4_remove
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	str	xzr, [sp]
	ldr	x8, [x1]
Lloh0:
	adrp	x20, _NLBL_CIPSOV4_A_DOI@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NLBL_CIPSOV4_A_DOI@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x1
	add	x21, sp, #8
	add	x1, sp, #8
	bl	_netlbl_netlink_auditinfo
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	w0, [x8, x9, lsl #2]
	bl	_nla_get_u32
	str	w0, [sp, #16]
	str	x21, [sp, #24]
Lloh2:
	adrp	x8, _netlbl_cipsov4_remove_cb@GOTPAGE
Lloh3:
	ldr	x8, [x8, _netlbl_cipsov4_remove_cb@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x0, sp, #4
	mov	x1, sp
	add	x3, sp, #16
	bl	_netlbl_domhsh_walk
	cbz	w0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _ENOENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_6
LBB0_3:
	ldr	w0, [sp, #16]
	add	x1, sp, #8
	bl	_cipso_v4_doi_remove
	cbnz	w0, LBB0_6
; %bb.4:
Lloh8:
	adrp	x0, _netlabel_mgmt_protocount@GOTPAGE
Lloh9:
	ldr	x0, [x0, _netlabel_mgmt_protocount@GOTPAGEOFF]
	bl	_atomic_dec
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NLBL_CIPSOV4_A_DOI,8,3         ; @NLBL_CIPSOV4_A_DOI
	.comm	_netlbl_cipsov4_remove_cb,4,2   ; @netlbl_cipsov4_remove_cb
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_netlabel_mgmt_protocount,4,2   ; @netlabel_mgmt_protocount
	.no_dead_strip	_netlbl_cipsov4_remove
.subsections_via_symbols
