	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xfrm_add_acquire
_xfrm_add_acquire:                      ## @xfrm_add_acquire
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movl	(%rdi), %edi
	callq	_sock_net
	movq	%rax, %r12
	movq	_XFRMA_TMPL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %r13
	movq	%rbx, %rdi
	callq	_nlmsg_data
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_xfrm_state_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	callq	_xfrm_mark_get
	leaq	24(%rbx), %r13
	movq	%r13, %rdi
	callq	_verify_newpolicy_info
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	je	LBB0_3
## %bb.8:
	leaq	L_.str(%rip), %rdi
	callq	_printk
LBB0_9:
	movq	%r14, %rdi
	callq	_kfree
	movl	-44(%rbp), %eax
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_3:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_xfrm_policy_construct
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %rbx
	leaq	20(%r14), %rdi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	leaq	20(%r15), %rsi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movl	$4, %edx
	callq	_memcpy
	leaq	16(%r14), %rdi
	leaq	16(%r15), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r14, %rdi
	addq	$40, %rdi
	leaq	12(%r15), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	-68(%rbp), %eax
	movl	%eax, 36(%r14)
	movl	%eax, 36(%rbx)
	movl	-72(%rbp), %eax
	movl	%eax, 32(%r14)
	movl	%eax, 32(%rbx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_nla_data
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rbx)
	movq	%r14, %r12
	jle	LBB0_7
## %bb.5:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %r15
	leaq	(%r15,%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r13), %rsi
	addq	$20, %rsi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcpy
	movl	16(%r15,%r13), %eax
	movl	%eax, 12(%r12)
	movl	12(%r15,%r13), %eax
	movl	%eax, 8(%r12)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,4), %eax
	movl	%eax, 4(%r12)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rcx), %eax
	movl	%eax, 8(%r15,%r13)
	movl	4(%rcx), %eax
	movl	%eax, 4(%r15,%r13)
	movl	(%rcx), %eax
	movl	%eax, (%r15,%r13)
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_km_query
	movl	%eax, -44(%rbp)
	incq	%r14
	movslq	(%rbx), %rax
	addq	$24, %r13
	cmpq	%rax, %r14
	jl	LBB0_6
LBB0_7:
	movq	%r12, %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%eax, %eax
LBB0_10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XFRMA_TMPL,8,3                 ## @XFRMA_TMPL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BAD policy passed\n"

	.no_dead_strip	_xfrm_add_acquire
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xfrm_add_acquire
_xfrm_add_acquire:                      ; @xfrm_add_acquire
	.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	x21, x2
	mov	x19, x1
	ldr	w0, [x0]
	bl	_sock_net
	mov	x22, x0
Lloh0:
	adrp	x8, _XFRMA_TMPL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XFRMA_TMPL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x23, [x21, x8, lsl #3]
	mov	x0, x19
	bl	_nlmsg_data
	mov	x20, x0
	mov	x0, x22
	bl	_xfrm_state_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	add	x1, sp, #8
	mov	x0, x21
	bl	_xfrm_mark_get
	add	x24, x20, #24
	mov	x0, x24
	bl	_verify_newpolicy_info
	str	w0, [sp, #4]
	cbz	w0, LBB0_5
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
LBB0_3:
	mov	x0, x19
	bl	_kfree
	ldr	w0, [sp, #4]
	b	LBB0_10
LBB0_4:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_5:
	add	x3, sp, #4
	mov	x0, x22
	mov	x1, x24
	mov	x2, x21
	bl	_xfrm_policy_construct
	cbz	x0, LBB0_3
; %bb.6:
	mov	x21, x0
	add	x22, x19, #20
	add	x1, x20, #20
	mov	x0, x22
	mov	w2, #4
	bl	_memcpy
	add	x0, x19, #16
	add	x1, x20, #16
	mov	w2, #4
	bl	_memcpy
	add	x0, x19, #40
	add	x1, x20, #12
	mov	w2, #4
	bl	_memcpy
	ldp	w9, w8, [sp, #8]
	stp	w9, w8, [x19, #32]
	stp	w9, w8, [x21, #32]
	mov	x0, x23
	bl	_nla_data
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x23, x0
	mov	x25, #0
	mov	x26, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #24]
	add	x24, x8, x25
	add	x1, x24, #20
	mov	x0, x22
	mov	w2, #4
	bl	_memcpy
	ldur	d0, [x24, #12]
	str	d0, [x19, #8]
	ldr	w8, [x23, x26, lsl #2]
	str	w8, [x19, #4]
	ldr	w8, [x20, #8]
	str	w8, [x24, #8]
	ldr	d0, [x20]
	str	d0, [x24]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x21
	bl	_km_query
	str	w0, [sp, #4]
	add	x26, x26, #1
	ldrsw	x8, [x21]
	add	x25, x25, #24
	cmp	x26, x8
	b.lt	LBB0_8
LBB0_9:
	mov	x0, x19
	bl	_kfree
	mov	x0, x21
	bl	_kfree
	mov	w0, #0
LBB0_10:
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_XFRMA_TMPL,8,3                 ; @XFRMA_TMPL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BAD policy passed\n"

	.no_dead_strip	_xfrm_add_acquire
.subsections_via_symbols
