	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function selinux_ipc_permission
_selinux_ipc_permission:                ## @selinux_ipc_permission
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movq	_S_IRUGO@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	movl	$0, %ecx
	testw	%ax, (%rdx)
	je	LBB0_2
## %bb.1:
	movq	_IPC__UNIX_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	movq	_S_IWUGO@GOTPCREL(%rip), %rdx
	testw	%ax, (%rdx)
	je	LBB0_4
## %bb.3:
	movq	_IPC__UNIX_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_4:
	orl	%ecx, %esi
	je	LBB0_5
## %bb.6:
	popq	%rbp
	jmp	_ipc_has_perm                   ## TAILCALL
LBB0_5:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_IRUGO,2,1                    ## @S_IRUGO
	.comm	_IPC__UNIX_READ,4,2             ## @IPC__UNIX_READ
	.comm	_S_IWUGO,2,1                    ## @S_IWUGO
	.comm	_IPC__UNIX_WRITE,4,2            ## @IPC__UNIX_WRITE
	.no_dead_strip	_selinux_ipc_permission
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function selinux_ipc_permission
_selinux_ipc_permission:                ; @selinux_ipc_permission
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _S_IRUGO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_IRUGO@GOTPAGEOFF]
	ldrh	w8, [x8]
	and	w8, w8, w1
Lloh2:
	adrp	x9, _IPC__UNIX_READ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IPC__UNIX_READ@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w8, #0xffff
	csel	w8, wzr, w9, eq
Lloh5:
	adrp	x9, _S_IWUGO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _S_IWUGO@GOTPAGEOFF]
	ldrh	w9, [x9]
	and	w9, w9, w1
Lloh7:
	adrp	x10, _IPC__UNIX_WRITE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _IPC__UNIX_WRITE@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	tst	w9, #0xffff
	csel	w9, wzr, w10, eq
	orr	w1, w9, w8
	cbz	w1, LBB0_2
; %bb.1:
	b	_ipc_has_perm
LBB0_2:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_S_IRUGO,2,1                    ; @S_IRUGO
	.comm	_IPC__UNIX_READ,4,2             ; @IPC__UNIX_READ
	.comm	_S_IWUGO,2,1                    ; @S_IWUGO
	.comm	_IPC__UNIX_WRITE,4,2            ; @IPC__UNIX_WRITE
	.no_dead_strip	_selinux_ipc_permission
.subsections_via_symbols
