	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smack_set_catset
_smack_set_catset:                      ## @smack_set_catset
	.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
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_NETLBL_SECATTR_MLS_CAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rsi)
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_netlbl_secattr_catmap_alloc
	movq	%rax, (%r14)
	movq	$0, (%rax)
	movq	_SMK_LABELLEN@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_20
## %bb.2:
	movl	$8, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	addl	$8, %ebx
	movq	_SMK_LABELLEN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jge	LBB0_20
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15,%r13), %eax
	testb	$-128, %al
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	$64, %al
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	testb	$32, %al
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	testb	$16, %al
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	testb	$8, %al
	jne	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	testb	$4, %al
	jne	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	testb	$2, %al
	jne	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, %al
	je	LBB0_19
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	-7(%rbx), %esi
	movq	(%r14), %rdi
	movl	(%r12), %edx
	callq	_netlbl_secattr_catmap_setbit
	movzbl	(%r15,%r13), %eax
	testb	$64, %al
	je	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	-6(%rbx), %esi
	movq	(%r14), %rdi
	movl	(%r12), %edx
	callq	_netlbl_secattr_catmap_setbit
	movzbl	(%r15,%r13), %eax
	testb	$32, %al
	je	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	-5(%rbx), %esi
	movq	(%r14), %rdi
	movl	(%r12), %edx
	callq	_netlbl_secattr_catmap_setbit
	movzbl	(%r15,%r13), %eax
	testb	$16, %al
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	leal	-4(%rbx), %esi
	movq	(%r14), %rdi
	movl	(%r12), %edx
	callq	_netlbl_secattr_catmap_setbit
	movzbl	(%r15,%r13), %eax
	testb	$8, %al
	je	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	leal	-3(%rbx), %esi
	movq	(%r14), %rdi
	movl	(%r12), %edx
	callq	_netlbl_secattr_catmap_setbit
	movzbl	(%r15,%r13), %eax
	testb	$4, %al
	je	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	leal	-2(%rbx), %esi
	movq	(%r14), %rdi
	movl	(%r12), %edx
	callq	_netlbl_secattr_catmap_setbit
	movzbl	(%r15,%r13), %eax
	testb	$2, %al
	je	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	leal	-1(%rbx), %esi
	movq	(%r14), %rdi
	movl	(%r12), %edx
	callq	_netlbl_secattr_catmap_setbit
	movzbl	(%r15,%r13), %eax
	testb	$1, %al
	je	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rdi
	movl	(%r12), %edx
	movl	%ebx, %esi
	callq	_netlbl_secattr_catmap_setbit
	jmp	LBB0_19
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETLBL_SECATTR_MLS_CAT,4,2     ## @NETLBL_SECATTR_MLS_CAT
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_SMK_LABELLEN,4,2               ## @SMK_LABELLEN
	.no_dead_strip	_smack_set_catset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smack_set_catset
_smack_set_catset:                      ; @smack_set_catset
	.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
	cbz	x0, LBB0_20
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _NETLBL_SECATTR_MLS_CAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETLBL_SECATTR_MLS_CAT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x1, #8]
	orr	w8, w9, w8
	str	w8, [x1, #8]
Lloh3:
	adrp	x22, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x22, [x22, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_netlbl_secattr_catmap_alloc
	str	x0, [x19]
	str	xzr, [x0]
Lloh5:
	adrp	x23, _SMK_LABELLEN@GOTPAGE
Lloh6:
	ldr	x23, [x23, _SMK_LABELLEN@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.2:
	mov	x24, #0
	mov	w21, #8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	add	x24, x24, #1
	add	w21, w21, #8
	cmp	w24, w8
	b.ge	LBB0_20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20, x24]
	tbnz	w8, #7, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w8, #6, LBB0_13
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w8, #5, LBB0_14
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w8, #4, LBB0_15
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w8, #3, LBB0_16
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w8, #2, LBB0_17
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w8, #1, LBB0_18
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	tbz	w8, #0, LBB0_3
	b	LBB0_19
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w1, w21, #7
	ldr	x0, [x19]
	ldr	w2, [x22]
	bl	_netlbl_secattr_catmap_setbit
	ldrb	w8, [x20, x24]
	tbz	w8, #6, LBB0_6
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w1, w21, #6
	ldr	x0, [x19]
	ldr	w2, [x22]
	bl	_netlbl_secattr_catmap_setbit
	ldrb	w8, [x20, x24]
	tbz	w8, #5, LBB0_7
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w1, w21, #5
	ldr	x0, [x19]
	ldr	w2, [x22]
	bl	_netlbl_secattr_catmap_setbit
	ldrb	w8, [x20, x24]
	tbz	w8, #4, LBB0_8
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w1, w21, #4
	ldr	x0, [x19]
	ldr	w2, [x22]
	bl	_netlbl_secattr_catmap_setbit
	ldrb	w8, [x20, x24]
	tbz	w8, #3, LBB0_9
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w1, w21, #3
	ldr	x0, [x19]
	ldr	w2, [x22]
	bl	_netlbl_secattr_catmap_setbit
	ldrb	w8, [x20, x24]
	tbz	w8, #2, LBB0_10
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w1, w21, #2
	ldr	x0, [x19]
	ldr	w2, [x22]
	bl	_netlbl_secattr_catmap_setbit
	ldrb	w8, [x20, x24]
	tbz	w8, #1, LBB0_11
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w1, w21, #1
	ldr	x0, [x19]
	ldr	w2, [x22]
	bl	_netlbl_secattr_catmap_setbit
	ldrb	w8, [x20, x24]
	tbz	w8, #0, LBB0_3
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x19]
	ldr	w2, [x22]
	mov	x1, x21
	bl	_netlbl_secattr_catmap_setbit
	b	LBB0_3
LBB0_20:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NETLBL_SECATTR_MLS_CAT,4,2     ; @NETLBL_SECATTR_MLS_CAT
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_SMK_LABELLEN,4,2               ; @SMK_LABELLEN
	.no_dead_strip	_smack_set_catset
.subsections_via_symbols
