	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cipso_v4_genopt
_cipso_v4_genopt:                       ## @cipso_v4_genopt
	.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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	_CIPSO_V4_HDR_LEN@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jge	LBB0_4
## %bb.1:
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_memset
	movq	(%r13), %rax
	movl	-4(%rax,%r15,4), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_CIPSO_V4_HDR_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r14,%rax), %rdx
	movq	%r12, %rcx
	subq	%rax, %rcx
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_cipso_v4_gentag_rbm
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_CIPSO_V4_HDR_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r14,%rax), %rdx
	movq	%r12, %rcx
	subq	%rax, %rcx
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_cipso_v4_gentag_rng
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_CIPSO_V4_HDR_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r14,%rax), %rdx
	movq	%r12, %rcx
	subq	%rax, %rcx
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_cipso_v4_gentag_loc
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_CIPSO_V4_HDR_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r14,%rax), %rdx
	movq	%r12, %rcx
	subq	%rax, %rcx
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_cipso_v4_gentag_enum
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_CIPSO_V4_TAG_MAXCNT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jge	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movl	(%rax,%r15,4), %eax
	incq	%r15
	movq	_CIPSO_V4_TAG_INVALID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
	jmp	LBB0_16
LBB0_4:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_14:
	testl	%ebx, %ebx
	js	LBB0_16
## %bb.15:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_cipso_v4_gentag_hdr
	movq	_CIPSO_V4_HDR_LEN@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_CIPSO_V4_HDR_LEN,8,3           ## @CIPSO_V4_HDR_LEN
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_CIPSO_V4_TAG_MAXCNT,8,3        ## @CIPSO_V4_TAG_MAXCNT
	.comm	_CIPSO_V4_TAG_INVALID,4,2       ## @CIPSO_V4_TAG_INVALID
	.no_dead_strip	_cipso_v4_genopt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cipso_v4_genopt
_cipso_v4_genopt:                       ; @cipso_v4_genopt
	.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
Lloh0:
	adrp	x24, _CIPSO_V4_HDR_LEN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CIPSO_V4_HDR_LEN@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x8, x1
	b.ge	LBB0_10
; %bb.1:
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	mov	x25, #0
Lloh2:
	adrp	x26, _CIPSO_V4_TAG_MAXCNT@GOTPAGE
Lloh3:
	ldr	x26, [x26, _CIPSO_V4_TAG_MAXCNT@GOTPAGEOFF]
Lloh4:
	adrp	x27, _CIPSO_V4_TAG_INVALID@GOTPAGE
Lloh5:
	ldr	x27, [x27, _CIPSO_V4_TAG_INVALID@GOTPAGEOFF]
Lloh6:
	adrp	x28, lJTI0_0@PAGE
Lloh7:
	add	x28, x28, lJTI0_0@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #0
	mov	x2, x22
	bl	_memset
	ldr	x8, [x19]
	ldr	w8, [x8, x25, lsl #2]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_15
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x9, LBB0_4
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	add	x2, x20, x8
	sub	x3, x22, x8
	mov	x0, x19
	mov	x1, x21
	bl	_cipso_v4_gentag_rbm
	mov	x23, x0
	tbnz	w0, #31, LBB0_8
	b	LBB0_12
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	add	x2, x20, x8
	sub	x3, x22, x8
	mov	x0, x19
	mov	x1, x21
	bl	_cipso_v4_gentag_rng
	mov	x23, x0
	tbnz	w0, #31, LBB0_8
	b	LBB0_12
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	add	x2, x20, x8
	sub	x3, x22, x8
	mov	x0, x19
	mov	x1, x21
	bl	_cipso_v4_gentag_loc
	mov	x23, x0
	tbnz	w0, #31, LBB0_8
	b	LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	add	x2, x20, x8
	sub	x3, x22, x8
	mov	x0, x19
	mov	x1, x21
	bl	_cipso_v4_gentag_enum
	mov	x23, x0
	tbz	w0, #31, LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x25, #1
	ldr	x9, [x26]
	cmp	x8, x9
	b.ge	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	add	x8, x8, x25, lsl #2
	ldr	w8, [x8, #4]
	ldr	w9, [x27]
	add	x25, x25, #1
	cmp	w8, w9
	b.ne	LBB0_2
	b	LBB0_14
LBB0_10:
Lloh8:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_12:
	tbnz	w23, #31, LBB0_14
; %bb.13:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	bl	_cipso_v4_gentag_hdr
	ldr	w8, [x24]
	add	w23, w23, w8
LBB0_14:
	mov	x0, x23
	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_15:
Lloh10:
	adrp	x8, _EPERM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
                                        ; -- End function
	.comm	_CIPSO_V4_HDR_LEN,8,3           ; @CIPSO_V4_HDR_LEN
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_CIPSO_V4_TAG_MAXCNT,8,3        ; @CIPSO_V4_TAG_MAXCNT
	.comm	_CIPSO_V4_TAG_INVALID,4,2       ; @CIPSO_V4_TAG_INVALID
	.no_dead_strip	_cipso_v4_genopt
.subsections_via_symbols
