	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xfrm_sk_policy_lookup
_xfrm_sk_policy_lookup:                 ## @xfrm_sk_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_xfrm_policy_lock@GOTPCREL(%rip), %rdi
	callq	_read_lock_bh
	movq	8(%rbx), %rax
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %r12
	testq	%r12, %r12
	je	LBB0_6
## %bb.1:
	leaq	12(%r12), %rdi
	movl	4(%rbx), %edx
	movq	%r15, %rsi
	callq	_xfrm_selector_match
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movl	4(%r12), %eax
	andl	(%rbx), %eax
	cmpl	8(%r12), %eax
	jne	LBB0_6
## %bb.3:
	movl	(%r12), %ebx
	movl	(%r15), %r15d
	movl	%r14d, %edi
	callq	_policy_to_flow_dir
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_security_xfrm_policy_lookup
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:
	movq	_ESRCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_10
LBB0_6:
	xorl	%r12d, %r12d
LBB0_11:
	movq	_xfrm_policy_lock@GOTPCREL(%rip), %rdi
	callq	_read_unlock_bh
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r12, %rdi
	callq	_xfrm_pol_hold
	jmp	LBB0_11
LBB0_10:
	movl	%eax, %edi
	callq	_ERR_PTR
	movq	%rax, %r12
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_xfrm_policy_lock,4,2           ## @xfrm_policy_lock
	.comm	_ESRCH,4,2                      ## @ESRCH
	.no_dead_strip	_xfrm_sk_policy_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xfrm_sk_policy_lookup
_xfrm_sk_policy_lookup:                 ; @xfrm_sk_policy_lookup
	.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	x21, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x0, _xfrm_policy_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _xfrm_policy_lock@GOTPAGEOFF]
	bl	_read_lock_bh
	ldr	x8, [x22, #8]
	ldr	x19, [x8, w20, sxtw #3]
	cbz	x19, LBB0_6
; %bb.1:
	add	x0, x19, #12
	ldr	w2, [x22, #4]
	mov	x1, x21
	bl	_xfrm_selector_match
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w8, [x22]
	ldp	w9, w10, [x19, #4]
	and	w8, w9, w8
	cmp	w8, w10
	b.ne	LBB0_5
; %bb.3:
	ldr	w22, [x19]
	ldr	w21, [x21]
	mov	x0, x20
	bl	_policy_to_flow_dir
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_security_xfrm_policy_lookup
	cbz	w0, LBB0_7
; %bb.4:
Lloh2:
	adrp	x8, _ESRCH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_8
LBB0_5:
	mov	x19, #0
LBB0_6:
Lloh5:
	adrp	x0, _xfrm_policy_lock@GOTPAGE
Lloh6:
	ldr	x0, [x0, _xfrm_policy_lock@GOTPAGEOFF]
	bl	_read_unlock_bh
	mov	x0, x19
	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
LBB0_7:
	mov	x0, x19
	bl	_xfrm_pol_hold
	b	LBB0_6
LBB0_8:
	bl	_ERR_PTR
	mov	x19, x0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_xfrm_policy_lock,4,2           ; @xfrm_policy_lock
	.comm	_ESRCH,4,2                      ; @ESRCH
	.no_dead_strip	_xfrm_sk_policy_lookup
.subsections_via_symbols
