	.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_ntoh
_cipso_v4_map_cat_rbm_ntoh:             ## @cipso_v4_map_cat_rbm_ntoh
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r12
	cmpl	$128, (%rdi)
	jne	LBB0_1
## %bb.2:
	movq	8(%r12), %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
	shll	$3, %r13d
	movl	$-1, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %esi
	callq	_netlbl_secattr_catmap_setbit
	testl	%eax, %eax
	jne	LBB0_15
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	$1, %ecx
	callq	_cipso_v4_bitmap_walk
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$129, %eax
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %r14d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	jge	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_4 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
	jl	LBB0_14
LBB0_12:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
	cmpl	$-2, %ebx
	jne	LBB0_15
## %bb.6:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$24, %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	_EFAULT,4,2                     ## @EFAULT
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cipso_v4_map_cat_rbm_ntoh
.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_ntoh
_cipso_v4_map_cat_rbm_ntoh:             ; @cipso_v4_map_cat_rbm_ntoh
	.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	x19, x3
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x25, _CIPSO_V4_INV_CAT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _CIPSO_V4_INV_CAT@GOTPAGEOFF]
	ldr	w23, [x25]
	lsl	w22, w2, #3
	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:
	mov	w24, #-1
Lloh2:
	adrp	x28, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x28, [x28, _GFP_ATOMIC@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #129
	csel	w23, w23, w24, ne
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19]
	ldr	w2, [x28]
	mov	x1, x23
	bl	_netlbl_secattr_catmap_setbit
	cbnz	w0, LBB0_15
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w2, w24, #1
	mov	x0, x20
	mov	x1, x22
	mov	w3, #1
	bl	_cipso_v4_bitmap_walk
	mov	x24, x0
	tbnz	w0, #31, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21]
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w24, w26
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w23, [x27, w24, uxtw #2]
	ldr	w8, [x25]
	cmp	w23, w8
	b.lt	LBB0_5
LBB0_10:
Lloh4:
	adrp	x8, _EPERM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
	cmn	w24, #2
	b.ne	LBB0_14
; %bb.12:
Lloh6:
	adrp	x8, _EFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_14:
	mov	w0, #0
LBB0_15:
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CIPSO_V4_INV_CAT,4,2           ; @CIPSO_V4_INV_CAT
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cipso_v4_map_cat_rbm_ntoh
.subsections_via_symbols
