	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipip6_tunnel_add_prl
_ipip6_tunnel_add_prl:                  ## @ipip6_tunnel_add_prl
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rsi), %rbx
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	cmpq	%rax, %rbx
	jne	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_2:
	movq	_ipip6_lock@GOTPCREL(%rip), %rdi
	callq	_write_lock
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	(%r12), %rcx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rax)
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_4
LBB0_9:
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.10:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	testl	%r15d, %r15d
	jne	LBB0_14
## %bb.6:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_11:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	8(%r14), %rcx
	movq	%rcx, 16(%rax)
	movq	%rax, 8(%r14)
	incl	(%r14)
	movq	(%r12), %rcx
LBB0_14:
	movq	%rcx, (%rax)
	movl	8(%r12), %ecx
	movl	%ecx, 8(%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_12:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movq	_ipip6_lock@GOTPCREL(%rip), %rdi
	callq	_write_unlock
LBB0_16:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ipip6_lock,4,2                 ## @ipip6_lock
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.no_dead_strip	_ipip6_tunnel_add_prl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipip6_tunnel_add_prl
_ipip6_tunnel_add_prl:                  ; @ipip6_tunnel_add_prl
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x1]
Lloh0:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htonl
	cmp	x22, x0
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_16
LBB0_2:
Lloh6:
	adrp	x0, _ipip6_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _ipip6_lock@GOTPAGEOFF]
	bl	_write_lock
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x19]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x0]
	cmp	x9, x8
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x0, #16]
	cbnz	x0, LBB0_4
LBB0_6:
	cbz	w21, LBB0_10
; %bb.7:
Lloh8:
	adrp	x8, _ENXIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_14
LBB0_8:
	cbnz	w21, LBB0_12
; %bb.9:
Lloh10:
	adrp	x8, _EEXIST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
	b	LBB0_14
LBB0_10:
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_13
; %bb.11:
	ldr	x8, [x20, #8]
	str	x8, [x0, #16]
	str	x0, [x20, #8]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	ldr	x8, [x19]
LBB0_12:
	mov	w20, #0
	str	x8, [x0]
	ldr	w8, [x19, #8]
	str	w8, [x0, #8]
	b	LBB0_15
LBB0_13:
Lloh15:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_15:
Lloh17:
	adrp	x0, _ipip6_lock@GOTPAGE
Lloh18:
	ldr	x0, [x0, _ipip6_lock@GOTPAGEOFF]
	bl	_write_unlock
LBB0_16:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ipip6_lock,4,2                 ; @ipip6_lock
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.no_dead_strip	_ipip6_tunnel_add_prl
.subsections_via_symbols
