	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_selinux_xfrm_policy_lookup     ## -- Begin function selinux_xfrm_policy_lookup
	.p2align	4, 0x90
_selinux_xfrm_policy_lookup:            ## @selinux_xfrm_policy_lookup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_selinux_authorizable_ctx
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	(%rbx), %esi
	movq	_SECCLASS_ASSOCIATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ASSOCIATION__POLMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	movl	%r14d, %edi
	xorl	%r8d, %r8d
	callq	_avc_has_perm
	movq	_EACCES@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	addl	(%rcx), %edx
	jne	LBB0_6
## %bb.5:
	movq	_ESRCH@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %eax
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SECCLASS_ASSOCIATION,4,2       ## @SECCLASS_ASSOCIATION
	.comm	_ASSOCIATION__POLMATCH,4,2      ## @ASSOCIATION__POLMATCH
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_ESRCH,4,2                      ## @ESRCH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_selinux_xfrm_policy_lookup     ; -- Begin function selinux_xfrm_policy_lookup
	.p2align	2
_selinux_xfrm_policy_lookup:            ; @selinux_xfrm_policy_lookup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	bl	_selinux_authorizable_ctx
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w1, [x20]
Lloh0:
	adrp	x8, _SECCLASS_ASSOCIATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SECCLASS_ASSOCIATION@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _ASSOCIATION__POLMATCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASSOCIATION__POLMATCH@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x4, #0
	bl	_avc_has_perm
Lloh6:
	adrp	x8, _EACCES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_6
; %bb.3:
Lloh9:
	adrp	x8, _ESRCH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SECCLASS_ASSOCIATION,4,2       ; @SECCLASS_ASSOCIATION
	.comm	_ASSOCIATION__POLMATCH,4,2      ; @ASSOCIATION__POLMATCH
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_ESRCH,4,2                      ; @ESRCH
.subsections_via_symbols
