	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipcomp6_tunnel_create
_ipcomp6_tunnel_create:                 ## @ipcomp6_tunnel_create
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_init_net@GOTPCREL(%rip), %rdi
	callq	_xfrm_state_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	_IPPROTO_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	leaq	16(%r14), %rdi
	callq	_xfrm6_tunnel_alloc_spi
	movl	%eax, 48(%rbx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	40(%rbx), %rdi
	movq	40(%r14), %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	32(%rbx), %rdi
	leaq	32(%r14), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movl	24(%r14), %eax
	movl	%eax, 24(%rbx)
	movq	16(%rbx), %rdi
	movq	16(%r14), %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	8(%rbx), %rdi
	addq	$8, %r14
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_xfrm_init_state
	testq	%rax, %rax
	je	LBB0_5
LBB0_3:
	movq	_XFRM_STATE_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_xfrm_state_put
LBB0_4:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	addq	$4, %rdi
	movl	$1, %esi
	callq	_atomic_set
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_init_net,4,2                   ## @init_net
	.comm	_IPPROTO_IPV6,4,2               ## @IPPROTO_IPV6
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_XFRM_STATE_DEAD,4,2            ## @XFRM_STATE_DEAD
	.no_dead_strip	_ipcomp6_tunnel_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipcomp6_tunnel_create
_ipcomp6_tunnel_create:                 ; @ipcomp6_tunnel_create
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x0, _init_net@GOTPAGE
Lloh1:
	ldr	x0, [x0, _init_net@GOTPAGEOFF]
	bl	_xfrm_state_alloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _IPPROTO_IPV6@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IPPROTO_IPV6@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #52]
	add	x0, x20, #16
	bl	_xfrm6_tunnel_alloc_spi
	str	w0, [x19, #48]
	cbz	w0, LBB0_3
; %bb.2:
	ldr	x0, [x19, #40]
	ldr	x1, [x20, #40]
	mov	w2, #4
	bl	_memcpy
	add	x0, x19, #32
	add	x1, x20, #32
	mov	w2, #4
	bl	_memcpy
Lloh5:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x20, #24]
	stp	w9, w8, [x19, #24]
	ldr	x0, [x19, #16]
	ldr	x1, [x20, #16]
	mov	w2, #4
	bl	_memcpy
	add	x0, x19, #8
	add	x1, x20, #8
	mov	w2, #4
	bl	_memcpy
	mov	x0, x19
	bl	_xfrm_init_state
	cbz	x0, LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _XFRM_STATE_DEAD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XFRM_STATE_DEAD@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x19
	bl	_xfrm_state_put
	mov	x19, #0
	b	LBB0_5
LBB0_4:
	add	x0, x19, #4
	mov	w1, #1
	bl	_atomic_set
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_init_net,4,2                   ; @init_net
	.comm	_IPPROTO_IPV6,4,2               ; @IPPROTO_IPV6
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_XFRM_STATE_DEAD,4,2            ; @XFRM_STATE_DEAD
	.no_dead_strip	_ipcomp6_tunnel_create
.subsections_via_symbols
