	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cipso_v4_map_cat_rbm_hton
_cipso_v4_map_cat_rbm_hton:             ## @cipso_v4_map_cat_rbm_hton
	.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
	movl	%ecx, %r12d
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	cmpl	$128, (%rdi)
	jne	LBB0_1
## %bb.2:
	movq	8(%r13), %rax
	movl	(%rax), %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
LBB0_3:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_CIPSO_V4_INV_CAT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_netlbl_secattr_catmap_walk
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	shll	$3, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$129, %eax
	jne	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %r14d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	jge	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %r14d
	movq	_CIPSO_V4_INV_CAT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_10
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%r12d, %r14d
	jge	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_cipso_v4_bitmap_setbit
	cmpl	%r15d, %r14d
	cmovgl	%r14d, %r15d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	incl	%ebx
	movl	%ebx, %esi
	callq	_netlbl_secattr_catmap_walk
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_6
## %bb.16:
	incl	%r15d
	testb	$7, %r15b
	jne	LBB0_17
## %bb.18:
	leal	7(%r15), %eax
	testl	%r15d, %r15d
	cmovnsl	%r15d, %eax
	sarl	$3, %eax
	jmp	LBB0_19
LBB0_4:
	movl	$1, %r15d
LBB0_17:
	leal	7(%r15), %eax
	testl	%r15d, %r15d
	cmovnsl	%r15d, %eax
	sarl	$3, %eax
	incl	%eax
	jmp	LBB0_19
LBB0_14:
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_10:
	movq	_EPERM@GOTPCREL(%rip), %rcx
LBB0_11:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CIPSO_V4_INV_CAT,4,2           ## @CIPSO_V4_INV_CAT
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.no_dead_strip	_cipso_v4_map_cat_rbm_hton
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cipso_v4_map_cat_rbm_hton
_cipso_v4_map_cat_rbm_hton:             ; @cipso_v4_map_cat_rbm_hton
	.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	x24, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x25, _CIPSO_V4_INV_CAT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _CIPSO_V4_INV_CAT@GOTPAGEOFF]
	ldr	w8, [x0]
	cmp	w8, #128
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x21, #8]
	ldr	w26, [x8]
	ldr	x27, [x8, #8]
	b	LBB0_3
LBB0_2:
	mov	w26, #0
	mov	x27, #0
LBB0_3:
	ldr	w22, [x25]
	ldr	w0, [x20]
	mov	w1, #0
	bl	_netlbl_secattr_catmap_walk
	tbnz	w0, #31, LBB0_13
; %bb.4:
	mov	x23, x0
	mov	w28, #0
	lsl	w24, w24, #3
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #129
	csel	w22, w22, w23, ne
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w23, w26
	b.ge	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w22, [x27, w23, uxtw #2]
	ldr	w8, [x25]
	cmp	w22, w8
	b.ge	LBB0_16
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w22, w24
	b.ge	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	w2, #1
	bl	_cipso_v4_bitmap_setbit
	cmp	w22, w28
	csel	w28, w22, w28, gt
	ldr	w0, [x20]
	add	w1, w23, #1
	bl	_netlbl_secattr_catmap_walk
	mov	x23, x0
	tbz	w0, #31, LBB0_5
; %bb.11:
	add	w8, w28, #1
	tst	w8, #0x7
	b.ne	LBB0_14
; %bb.12:
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #3
	b	LBB0_18
LBB0_13:
	mov	w8, #1
LBB0_14:
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	add	w0, w8, #1
	b	LBB0_18
LBB0_15:
Lloh2:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh4:
	adrp	x8, _EPERM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CIPSO_V4_INV_CAT,4,2           ; @CIPSO_V4_INV_CAT
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.no_dead_strip	_cipso_v4_map_cat_rbm_hton
.subsections_via_symbols
