	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xfrm_resolve_and_create_bundle
_xfrm_resolve_and_create_bundle:        ## @xfrm_resolve_and_create_bundle
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rdi
	callq	_xp_net
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_XFRM_MAX_DEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r12, %rdi
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	movq	%r13, %rdx
	movq	%r15, %rcx
	movl	%r14d, %r8d
	callq	_xfrm_tmpl_resolve
	movl	%eax, %r14d
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movq	(%r12), %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	movq	%r13, %rcx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_xfrm_bundle_create
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_LINUX_MIB_XFRMOUTBUNDLEGENERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_XFRM_INC_STATS
	movq	%rbx, %rdi
	callq	_ERR_CAST
	jmp	LBB0_13
LBB0_3:
	je	LBB0_12
## %bb.4:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	je	LBB0_12
## %bb.5:
	movq	_LINUX_MIB_XFRMOUTPOLERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	movl	%r14d, (%rbx)
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	cmpl	$2, %r15d
	jl	LBB0_8
## %bb.7:
	movq	8(%r12), %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	callq	_xfrm_dst_update_parent
	jmp	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_xfrm_dst_update_origin
LBB0_9:
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	movq	%rbx, %rdi
	callq	_dst_free
	movq	_LINUX_MIB_XFRMOUTBUNDLECHECKERROR@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_XFRM_INC_STATS
LBB0_12:
	movl	%r14d, %edi
	callq	_ERR_PTR
LBB0_13:
	movq	%rax, %rbx
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.15:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	%r15d, 4(%rbx)
	movl	12(%rbx), %edi
	shll	$3, %r15d
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movq	(%r12), %rdi
	callq	_atomic_read
	movl	%eax, 8(%rbx)
	jmp	LBB0_14
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_XFRM_MAX_DEPTH,4,2             ## @XFRM_MAX_DEPTH
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_LINUX_MIB_XFRMOUTPOLERROR,4,2  ## @LINUX_MIB_XFRMOUTPOLERROR
	.comm	_LINUX_MIB_XFRMOUTBUNDLEGENERROR,4,2 ## @LINUX_MIB_XFRMOUTBUNDLEGENERROR
	.comm	_LINUX_MIB_XFRMOUTBUNDLECHECKERROR,4,2 ## @LINUX_MIB_XFRMOUTBUNDLECHECKERROR
	.no_dead_strip	_xfrm_resolve_and_create_bundle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xfrm_resolve_and_create_bundle
_xfrm_resolve_and_create_bundle:        ; @xfrm_resolve_and_create_bundle
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x22, x4
	mov	x24, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x0, [x0]
	bl	_xp_net
	mov	x19, x0
Lloh3:
	adrp	x8, _XFRM_MAX_DEPTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XFRM_MAX_DEPTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x25, x9, x8
	mov	sp, x25
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	mov	x3, x25
	mov	x4, x24
	bl	_xfrm_tmpl_resolve
	mov	x24, x0
	cmp	w0, #0
	b.le	LBB0_3
; %bb.1:
	ldr	x0, [x20]
	mov	x1, x25
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	bl	_xfrm_bundle_create
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.2:
Lloh8:
	adrp	x8, _LINUX_MIB_XFRMOUTBUNDLEGENERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LINUX_MIB_XFRMOUTBUNDLEGENERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_XFRM_INC_STATS
	mov	x0, x22
	bl	_ERR_CAST
	b	LBB0_13
LBB0_3:
	cbz	w24, LBB0_6
; %bb.4:
Lloh11:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmn	w24, w8
	b.eq	LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _LINUX_MIB_XFRMOUTPOLERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LINUX_MIB_XFRMOUTPOLERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_XFRM_INC_STATS
LBB0_6:
	mov	x0, x24
	b	LBB0_12
LBB0_7:
	str	w24, [x22]
	cmp	w21, #2
	b.lt	LBB0_9
; %bb.8:
	ldr	x8, [x20, #8]
	add	x1, x8, #4
	mov	x0, x22
	bl	_xfrm_dst_update_parent
	b	LBB0_10
LBB0_9:
	mov	x0, x22
	mov	x1, x23
	bl	_xfrm_dst_update_origin
LBB0_10:
	mov	x23, x0
	bl	_unlikely
	cbz	x0, LBB0_16
; %bb.11:
	mov	x0, x22
	bl	_dst_free
Lloh17:
	adrp	x8, _LINUX_MIB_XFRMOUTBUNDLECHECKERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LINUX_MIB_XFRMOUTBUNDLECHECKERROR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_XFRM_INC_STATS
	mov	x0, x23
LBB0_12:
	bl	_ERR_PTR
LBB0_13:
	mov	x22, x0
LBB0_14:
	ldur	x8, [x29, #-72]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.15:
	mov	x0, x22
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
	str	w21, [x22, #4]
	ldr	w0, [x22, #12]
	lsl	w2, w21, #3
	mov	x1, x20
	bl	_memcpy
	ldr	x0, [x20]
	bl	_atomic_read
	str	w0, [x22, #8]
	b	LBB0_14
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_XFRM_MAX_DEPTH,4,2             ; @XFRM_MAX_DEPTH
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_LINUX_MIB_XFRMOUTPOLERROR,4,2  ; @LINUX_MIB_XFRMOUTPOLERROR
	.comm	_LINUX_MIB_XFRMOUTBUNDLEGENERROR,4,2 ; @LINUX_MIB_XFRMOUTBUNDLEGENERROR
	.comm	_LINUX_MIB_XFRMOUTBUNDLECHECKERROR,4,2 ; @LINUX_MIB_XFRMOUTBUNDLECHECKERROR
	.no_dead_strip	_xfrm_resolve_and_create_bundle
.subsections_via_symbols
