	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smack_msg_queue_msgctl
_smack_msg_queue_msgctl:                ## @smack_msg_queue_msgctl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	addl	$-128, %esi
	cmpl	$5, %esi
	ja	LBB0_6
## %bb.1:
	movl	$5, %eax
	btl	%esi, %eax
	jb	LBB0_2
## %bb.3:
	xorl	%eax, %eax
	movl	$24, %ecx
	btl	%esi, %ecx
	jae	LBB0_7
## %bb.4:
	movq	_MAY_READWRITE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_MAY_READ@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	popq	%rbp
	jmp	_smk_curacc_msq                 ## TAILCALL
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAY_READ,4,2                   ## @MAY_READ
	.comm	_MAY_READWRITE,4,2              ## @MAY_READWRITE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_smack_msg_queue_msgctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smack_msg_queue_msgctl
_smack_msg_queue_msgctl:                ; @smack_msg_queue_msgctl
	.cfi_startproc
; %bb.0:
	sub	w8, w1, #128
	cmp	w8, #5
	b.hi	LBB0_6
; %bb.1:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #5
	tst	w8, w9
	b.ne	LBB0_4
; %bb.2:
	tst	w8, #0x18
	b.eq	LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _MAY_READWRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAY_READWRITE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	b	_smk_curacc_msq
LBB0_4:
Lloh3:
	adrp	x8, _MAY_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAY_READ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	b	_smk_curacc_msq
LBB0_5:
	mov	w0, #0
	ret
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAY_READ,4,2                   ; @MAY_READ
	.comm	_MAY_READWRITE,4,2              ; @MAY_READWRITE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_smack_msg_queue_msgctl
.subsections_via_symbols
