	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cipso_v4_doi_add               ## -- Begin function cipso_v4_doi_add
	.p2align	4, 0x90
_cipso_v4_doi_add:                      ## @cipso_v4_doi_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	%rsi, %r15
	movq	(%rdi), %r14
	movq	8(%rdi), %r13
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	_CIPSO_V4_DOI_UNKNOWN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_13
## %bb.2:
	movq	%rdi, %rbx
	movq	_CIPSO_V4_TAG_MAXCNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	16(%rbx), %rcx
	xorl	%edx, %edx
	leaq	LJTI0_0(%rip), %rsi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	testq	%rdx, %rdx
	je	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	je	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,4), %edi
	addl	$-128, %edi
	cmpl	$4, %edi
	ja	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	(%rsi,%rdi,4), %rdi
	addq	%rsi, %rdi
	jmpq	*%rdi
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$134, %r13
	je	LBB0_9
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$135, %r13
	je	LBB0_9
	jmp	LBB0_13
LBB0_10:
	leaq	28(%rbx), %rdi
	movl	$1, %esi
	callq	_atomic_set
	movq	_cipso_v4_doi_list_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	(%rbx), %rdi
	callq	_cipso_v4_doi_search
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_cipso_v4_doi_list_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	movq	_EEXIST@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_13
LBB0_12:
	addq	$24, %rbx
	movq	_cipso_v4_doi_list@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail_rcu
	movq	_cipso_v4_doi_list_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	xorl	%r12d, %r12d
LBB0_13:
	movq	_AUDIT_MAC_CIPSOV4_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_netlbl_audit_start
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	movq	%rax, %rbx
	addq	$-133, %r13
	cmpq	$2, %r13
	ja	LBB0_15
## %bb.16:
	leaq	l_reltable.cipso_v4_doi_add(%rip), %rax
	movslq	(%rax,%r13,4), %rcx
	addq	%rax, %rcx
	jmp	LBB0_17
LBB0_15:
	leaq	L_.str.3(%rip), %rcx
LBB0_17:
	xorl	%r8d, %r8d
	testl	%r12d, %r12d
	sete	%r8b
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_audit_log_format
	movq	%rbx, %rdi
	callq	_audit_log_end
LBB0_18:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CIPSO_V4_DOI_UNKNOWN,8,3       ## @CIPSO_V4_DOI_UNKNOWN
	.comm	_CIPSO_V4_TAG_MAXCNT,8,3        ## @CIPSO_V4_TAG_MAXCNT
	.comm	_cipso_v4_doi_list_lock,4,2     ## @cipso_v4_doi_list_lock
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_cipso_v4_doi_list,4,2          ## @cipso_v4_doi_list
	.comm	_AUDIT_MAC_CIPSOV4_ADD,4,2      ## @AUDIT_MAC_CIPSOV4_ADD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trans"

L_.str.1:                               ## @.str.1
	.asciz	"pass"

L_.str.2:                               ## @.str.2
	.asciz	"local"

L_.str.3:                               ## @.str.3
	.asciz	"(unknown)"

L_.str.4:                               ## @.str.4
	.asciz	" cipso_doi=%u cipso_type=%s res=%u"

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.cipso_v4_doi_add
l_reltable.cipso_v4_doi_add:
	.long	L_.str-l_reltable.cipso_v4_doi_add
	.long	L_.str.1-l_reltable.cipso_v4_doi_add
	.long	L_.str.2-l_reltable.cipso_v4_doi_add

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cipso_v4_doi_add               ; -- Begin function cipso_v4_doi_add
	.p2align	2
_cipso_v4_doi_add:                      ; @cipso_v4_doi_add
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	ldp	x19, x23, [x0]
	cbz	x0, LBB0_13
; %bb.1:
Lloh3:
	adrp	x8, _CIPSO_V4_DOI_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CIPSO_V4_DOI_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x19, x8
	b.eq	LBB0_13
; %bb.2:
	mov	x22, x0
Lloh6:
	adrp	x8, _CIPSO_V4_TAG_MAXCNT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CIPSO_V4_TAG_MAXCNT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.3:
	mov	x9, #0
	ldr	x10, [x22, #16]
Lloh9:
	adrp	x11, lJTI0_0@PAGE
Lloh10:
	add	x11, x11, lJTI0_0@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	cbz	x9, LBB0_13
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10, x9, lsl #2]
	sub	w12, w12, #128
	cmp	w12, #4
	b.hi	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	adr	x13, LBB0_4
	ldrb	w14, [x11, x12]
	add	x13, x13, x14, lsl #2
	br	x13
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	x23, #134
	b.eq	LBB0_5
	b	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	x23, #135
	b.eq	LBB0_5
	b	LBB0_13
LBB0_10:
	add	x0, x22, #28
	mov	w1, #1
	bl	_atomic_set
Lloh11:
	adrp	x0, _cipso_v4_doi_list_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _cipso_v4_doi_list_lock@GOTPAGEOFF]
	bl	_spin_lock
	ldr	x0, [x22]
	bl	_cipso_v4_doi_search
	cbz	x0, LBB0_12
; %bb.11:
Lloh13:
	adrp	x0, _cipso_v4_doi_list_lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _cipso_v4_doi_list_lock@GOTPAGEOFF]
	bl	_spin_unlock
Lloh15:
	adrp	x8, _EEXIST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_13
LBB0_12:
	add	x0, x22, #24
Lloh18:
	adrp	x1, _cipso_v4_doi_list@GOTPAGE
Lloh19:
	ldr	x1, [x1, _cipso_v4_doi_list@GOTPAGEOFF]
	bl	_list_add_tail_rcu
Lloh20:
	adrp	x0, _cipso_v4_doi_list_lock@GOTPAGE
Lloh21:
	ldr	x0, [x0, _cipso_v4_doi_list_lock@GOTPAGEOFF]
	bl	_spin_unlock
	mov	w21, #0
LBB0_13:
Lloh22:
	adrp	x8, _AUDIT_MAC_CIPSOV4_ADD@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AUDIT_MAC_CIPSOV4_ADD@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_netlbl_audit_start
	cbz	x0, LBB0_18
; %bb.14:
	mov	x20, x0
	sub	x8, x23, #133
	cmp	x8, #2
	b.hi	LBB0_16
; %bb.15:
Lloh25:
	adrp	x9, l_switch.table.cipso_v4_doi_add@PAGE
Lloh26:
	add	x9, x9, l_switch.table.cipso_v4_doi_add@PAGEOFF
	ldr	x3, [x9, x8, lsl #3]
	b	LBB0_17
LBB0_16:
Lloh27:
	adrp	x3, l_.str.3@PAGE
Lloh28:
	add	x3, x3, l_.str.3@PAGEOFF
LBB0_17:
	cmp	w21, #0
	cset	w4, eq
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_audit_log_format
	mov	x0, x20
	bl	_audit_log_end
LBB0_18:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CIPSO_V4_DOI_UNKNOWN,8,3       ; @CIPSO_V4_DOI_UNKNOWN
	.comm	_CIPSO_V4_TAG_MAXCNT,8,3        ; @CIPSO_V4_TAG_MAXCNT
	.comm	_cipso_v4_doi_list_lock,4,2     ; @cipso_v4_doi_list_lock
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_cipso_v4_doi_list,4,2          ; @cipso_v4_doi_list
	.comm	_AUDIT_MAC_CIPSOV4_ADD,4,2      ; @AUDIT_MAC_CIPSOV4_ADD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trans"

l_.str.1:                               ; @.str.1
	.asciz	"pass"

l_.str.2:                               ; @.str.2
	.asciz	"local"

l_.str.3:                               ; @.str.3
	.asciz	"(unknown)"

l_.str.4:                               ; @.str.4
	.asciz	" cipso_doi=%u cipso_type=%s res=%u"

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.cipso_v4_doi_add
l_switch.table.cipso_v4_doi_add:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2

.subsections_via_symbols
