	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xfrm_expand_policies
_xfrm_expand_policies:                  ## @xfrm_expand_policies
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %rbx
	cmpl	$0, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	%rdx, %r15
	movq	(%rdx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.3:
	callq	_IS_ERR
	movq	(%r15), %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movl	$0, (%rbx)
	movl	$0, (%r14)
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%rdi), %eax
	movl	%eax, (%r14)
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.5:
	movq	_XFRM_POLICY_ALLOW@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, 8(%rdi)
	jne	LBB0_9
## %bb.6:
	movl	$1, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15,%rdx,8), %rsi
	incq	%rdx
	cmpq	%rcx, 8(%rsi)
	je	LBB0_7
LBB0_9:
	movl	$-1, (%r14)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_XFRM_POLICY_ALLOW,8,3          ## @XFRM_POLICY_ALLOW
	.comm	_XFRM_POLICY_OUT,4,2            ## @XFRM_POLICY_OUT
	.comm	_XFRM_POLICY_TYPE_MAIN,8,3      ## @XFRM_POLICY_TYPE_MAIN
	.no_dead_strip	_xfrm_expand_policies
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xfrm_expand_policies
_xfrm_expand_policies:                  ; @xfrm_expand_policies
	.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	x19, x4
	mov	x21, x3
	ldr	w8, [x3]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x20, x2
	ldr	x0, [x2]
	cbz	x0, LBB0_4
; %bb.2:
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20]
	cbz	x8, LBB0_6
; %bb.3:
	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
	b	_PTR_ERR
LBB0_4:
	str	wzr, [x21]
	str	wzr, [x19]
LBB0_5:
	mov	w0, #0
	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_6:
	ldr	w8, [x0]
	str	w8, [x19]
	ldr	w10, [x21]
	cmp	w10, #1
	b.lt	LBB0_5
; %bb.7:
Lloh0:
	adrp	x8, _XFRM_POLICY_ALLOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XFRM_POLICY_ALLOW@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0, #8]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.8:
	add	x9, x20, #8
	sub	x10, x10, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x10, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x11, [x9], #8
	ldr	x11, [x11, #8]
	sub	x10, x10, #1
	cmp	x11, x8
	b.eq	LBB0_9
LBB0_11:
	mov	w8, #-1
	str	w8, [x19]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XFRM_POLICY_ALLOW,8,3          ; @XFRM_POLICY_ALLOW
	.comm	_XFRM_POLICY_OUT,4,2            ; @XFRM_POLICY_OUT
	.comm	_XFRM_POLICY_TYPE_MAIN,8,3      ; @XFRM_POLICY_TYPE_MAIN
	.no_dead_strip	_xfrm_expand_policies
.subsections_via_symbols
