	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netlbl_secattr_catmap_setbit   ## -- Begin function netlbl_secattr_catmap_setbit
	.p2align	4, 0x90
_netlbl_secattr_catmap_setbit:          ## @netlbl_secattr_catmap_setbit
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	_NETLBL_CATMAP_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	movl	(%rbx), %ecx
	leal	(%rax,%rcx), %esi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r14d, %esi
	jle	LBB0_1
LBB0_3:
	cmpl	%r14d, %esi
	jg	LBB0_7
## %bb.4:
	movl	%edx, %edi
	callq	_netlbl_secattr_catmap_alloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	xorl	%ecx, %ecx
	subl	(%r15), %ecx
	andl	%r14d, %ecx
	movl	%ecx, (%rax)
	movq	%rax, %rbx
LBB0_7:
	subl	%ecx, %r14d
	movq	_NETLBL_CATMAP_MAPSIZE@GOTPCREL(%rip), %rcx
	movl	%r14d, %eax
	cltd
	idivl	(%rcx)
	movl	%edx, %ecx
	movq	_NETLBL_CATMAP_BIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movq	8(%rbx), %rcx
	cltq
	orl	%edx, (%rcx,%rax,4)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETLBL_CATMAP_SIZE,4,2         ## @NETLBL_CATMAP_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NETLBL_CATMAP_MAPSIZE,4,2      ## @NETLBL_CATMAP_MAPSIZE
	.comm	_NETLBL_CATMAP_BIT,4,2          ## @NETLBL_CATMAP_BIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netlbl_secattr_catmap_setbit   ; -- Begin function netlbl_secattr_catmap_setbit
	.p2align	2
_netlbl_secattr_catmap_setbit:          ; @netlbl_secattr_catmap_setbit
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
Lloh0:
	adrp	x21, _NETLBL_CATMAP_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NETLBL_CATMAP_SIZE@GOTPAGEOFF]
	ldr	w9, [x21]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x0
	ldr	x0, [x0, #16]
	ldr	w8, [x20]
	add	w10, w9, w8
	cmp	x0, #0
	ccmp	w10, w19, #0, ne
	b.le	LBB0_1
; %bb.2:
	cmp	w10, w19
	b.gt	LBB0_5
; %bb.3:
	mov	x0, x2
	bl	_netlbl_secattr_catmap_alloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w8, [x21]
	neg	w8, w8
	and	w8, w8, w19
	str	w8, [x0]
	mov	x20, x0
LBB0_5:
	mov	w0, #0
	sub	w8, w19, w8
Lloh2:
	adrp	x9, _NETLBL_CATMAP_MAPSIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NETLBL_CATMAP_MAPSIZE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
Lloh5:
	adrp	x9, _NETLBL_CATMAP_BIT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NETLBL_CATMAP_BIT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	lsl	w8, w9, w8
	ldr	x9, [x20, #8]
	sbfiz	x10, x10, #2, #32
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NETLBL_CATMAP_SIZE,4,2         ; @NETLBL_CATMAP_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NETLBL_CATMAP_MAPSIZE,4,2      ; @NETLBL_CATMAP_MAPSIZE
	.comm	_NETLBL_CATMAP_BIT,4,2          ; @NETLBL_CATMAP_BIT
.subsections_via_symbols
