	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipcomp_tunnel_attach
_ipcomp_tunnel_attach:                  ## @ipcomp_tunnel_attach
	.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
	movl	16(%rdi), %ecx
	movl	28(%rdi), %esi
	andl	24(%rdi), %esi
	leaq	20(%rdi), %rdx
	movq	_IPPROTO_IPIP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_init_net@GOTPCREL(%rip), %rdi
	callq	_xfrm_state_lookup_with_mark
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_ipcomp_tunnel_create
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_xfrm_state_insert
	movq	%rbx, %rdi
	callq	_xfrm_state_hold
LBB0_4:
	movq	%rbx, 8(%r14)
	movq	%rbx, %rdi
	callq	_atomic_inc
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_init_net,4,2                   ## @init_net
	.comm	_IPPROTO_IPIP,4,2               ## @IPPROTO_IPIP
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ipcomp_tunnel_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipcomp_tunnel_attach
_ipcomp_tunnel_attach:                  ; @ipcomp_tunnel_attach
	.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	x19, x0
	ldp	w8, w9, [x0, #24]
	and	w1, w9, w8
	add	x2, x0, #20
	ldr	w3, [x0, #16]
Lloh0:
	adrp	x8, _IPPROTO_IPIP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPPROTO_IPIP@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
Lloh3:
	adrp	x8, _AF_INET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
Lloh6:
	adrp	x0, _init_net@GOTPAGE
Lloh7:
	ldr	x0, [x0, _init_net@GOTPAGEOFF]
	bl	_xfrm_state_lookup_with_mark
	mov	x20, x0
	cbnz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_ipcomp_tunnel_create
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	bl	_xfrm_state_insert
	mov	x0, x20
	bl	_xfrm_state_hold
LBB0_3:
	str	x20, [x19, #8]
	mov	x0, x20
	bl	_atomic_inc
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_init_net,4,2                   ; @init_net
	.comm	_IPPROTO_IPIP,4,2               ; @IPPROTO_IPIP
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ipcomp_tunnel_attach
.subsections_via_symbols
