	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_sec_ctx
_copy_sec_ctx:                          ## @copy_sec_ctx
	.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	%rsi, %rax
	movq	%rdi, %r14
	movl	(%rdi), %ebx
	addl	$20, %ebx
	movq	_XFRMA_SEC_CTX@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rax, %rdi
	movl	%ebx, %edx
	callq	_nla_reserve
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_nla_data
	movl	(%r15), %ecx
	movl	%ecx, 16(%rax)
	movl	%ebx, (%rax)
	movl	12(%r14), %ecx
	movl	%ecx, 12(%rax)
	movl	8(%r14), %ecx
	movl	%ecx, 8(%rax)
	movl	(%r14), %edx
	movl	%edx, 4(%rax)
	leaq	20(%rax), %rdi
	movl	4(%r14), %esi
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XFRMA_SEC_CTX,4,2              ## @XFRMA_SEC_CTX
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.no_dead_strip	_copy_sec_ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_sec_ctx
_copy_sec_ctx:                          ; @copy_sec_ctx
	.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	x8, x1
	mov	x19, x0
	ldr	w9, [x0]
	add	w20, w9, #20
Lloh0:
	adrp	x21, _XFRMA_SEC_CTX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _XFRMA_SEC_CTX@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x8
	mov	x2, x20
	bl	_nla_reserve
	cbz	x0, LBB0_2
; %bb.1:
	bl	_nla_data
	ldr	w8, [x21]
	str	w8, [x0, #16]
	str	w20, [x0]
	ldr	d0, [x19, #8]
	str	d0, [x0, #8]
	ldp	w2, w1, [x19]
	str	w2, [x0, #4]
	add	x0, x0, #20
	bl	_memcpy
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_XFRMA_SEC_CTX,4,2              ; @XFRMA_SEC_CTX
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.no_dead_strip	_copy_sec_ctx
.subsections_via_symbols
