	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xfrm_alloc_userspi
_xfrm_alloc_userspi:                    ## @xfrm_alloc_userspi
	.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	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_sock_net
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_nlmsg_data
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_verify_userspi_info
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %r13d
	leaq	20(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_xfrm_mark_get
	movq	32(%rbx), %rdx
	testq	%rdx, %rdx
	movq	%r15, %r14
	movq	%r13, %r15
	je	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_xfrm_find_acq_byseq
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_xfrm_addr_cmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%r13, %rdi
	callq	_xfrm_state_put
LBB0_5:
	movl	28(%rbx), %edx
	movl	16(%rbx), %r8d
	movl	24(%rbx), %ecx
	movq	%rbx, %rax
	addq	$12, %rax
	subq	$8, %rsp
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	pushq	%r15
	pushq	$1
	pushq	%rax
	callq	_xfrm_find_acq
	addq	$32, %rsp
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	%r14, %r15
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%r13, %rdi
	callq	_xfrm_alloc_spi
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_xfrm_state_netlink
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	jmp	LBB0_11
LBB0_6:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_13
LBB0_10:
	movl	(%r15), %r14d
	movq	%r12, %rdi
	callq	_NETLINK_CB
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_nlmsg_unicast
LBB0_11:
	movl	%eax, %r14d
LBB0_12:
	movq	%r13, %rdi
	callq	_xfrm_state_put
LBB0_13:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_xfrm_alloc_userspi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xfrm_alloc_userspi
_xfrm_alloc_userspi:                    ; @xfrm_alloc_userspi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_sock_net
	mov	x20, x0
	mov	x0, x21
	bl	_nlmsg_data
	mov	x22, x0
	bl	_verify_userspi_info
	mov	x24, x0
	cbnz	w0, LBB0_13
; %bb.1:
	ldr	w25, [x22, #8]
	add	x24, x22, #20
	add	x1, sp, #8
	mov	x0, x23
	bl	_xfrm_mark_get
	ldr	x2, [x22, #32]
	cbz	x2, LBB0_5
; %bb.2:
	mov	x1, x0
	mov	x0, x20
	bl	_xfrm_find_acq_byseq
	cbz	x0, LBB0_5
; %bb.3:
	mov	x23, x0
	mov	x1, x24
	mov	x2, x25
	bl	_xfrm_addr_cmp
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x23
	bl	_xfrm_state_put
LBB0_5:
	ldp	w3, w2, [x22, #24]
	add	x6, x22, #12
	ldr	w4, [x22, #16]
	str	w25, [sp]
	add	x1, sp, #8
	mov	x0, x20
	mov	x5, x24
	mov	w7, #1
	bl	_xfrm_find_acq
	mov	x23, x0
	cbz	x0, LBB0_9
LBB0_6:
	ldp	w2, w1, [x22]
	mov	x0, x23
	bl	_xfrm_alloc_spi
	mov	x24, x0
	cbnz	w0, LBB0_12
; %bb.7:
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x23
	bl	_xfrm_state_netlink
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.8:
	mov	x0, x21
	bl	_PTR_ERR
	b	LBB0_11
LBB0_9:
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_13
LBB0_10:
	ldr	w20, [x20]
	mov	x0, x19
	bl	_NETLINK_CB
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_nlmsg_unicast
LBB0_11:
	mov	x24, x0
LBB0_12:
	mov	x0, x23
	bl	_xfrm_state_put
LBB0_13:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_xfrm_alloc_userspi
.subsections_via_symbols
