	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xfrm6_tunnel_deregister        ## -- Begin function xfrm6_tunnel_deregister
	.p2align	4, 0x90
_xfrm6_tunnel_deregister:               ## @xfrm6_tunnel_deregister
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	_tunnel6_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	cmpw	%r15w, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_tunnel6_handlers@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_tunnel46_handlers@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %rcx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, %rax
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_5
	jmp	LBB0_8
LBB0_7:
	movq	(%rbx), %rcx
	movq	%rcx, (%rax)
	xorl	%r14d, %r14d
LBB0_8:
	movq	_tunnel6_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	callq	_synchronize_net
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_tunnel6_mutex,4,2              ## @tunnel6_mutex
	.comm	_AF_INET6,2,1                   ## @AF_INET6
	.comm	_tunnel6_handlers,8,3           ## @tunnel6_handlers
	.comm	_tunnel46_handlers,8,3          ## @tunnel46_handlers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xfrm6_tunnel_deregister        ; -- Begin function xfrm6_tunnel_deregister
	.p2align	2
_xfrm6_tunnel_deregister:               ; @xfrm6_tunnel_deregister
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
Lloh3:
	adrp	x0, _tunnel6_mutex@GOTPAGE
Lloh4:
	ldr	x0, [x0, _tunnel6_mutex@GOTPAGEOFF]
	bl	_mutex_lock
Lloh5:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh7:
	adrp	x9, _tunnel46_handlers@GOTPAGE
Lloh8:
	ldr	x9, [x9, _tunnel46_handlers@GOTPAGEOFF]
	ldrh	w8, [x8]
Lloh9:
	adrp	x10, _tunnel6_handlers@GOTPAGE
Lloh10:
	ldr	x10, [x10, _tunnel6_handlers@GOTPAGEOFF]
	cmp	w8, w21
	csel	x8, x10, x9, eq
	ldr	x9, [x8]
	cbz	x9, LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x9, x20
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x8, x9
	ldr	x9, [x9]
	cbnz	x9, LBB0_1
	b	LBB0_4
LBB0_3:
	mov	w19, #0
	ldr	x9, [x20]
	str	x9, [x8]
LBB0_4:
Lloh11:
	adrp	x0, _tunnel6_mutex@GOTPAGE
Lloh12:
	ldr	x0, [x0, _tunnel6_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	bl	_synchronize_net
	mov	x0, x19
	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	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_tunnel6_mutex,4,2              ; @tunnel6_mutex
	.comm	_AF_INET6,2,1                   ; @AF_INET6
	.comm	_tunnel6_handlers,8,3           ; @tunnel6_handlers
	.comm	_tunnel46_handlers,8,3          ; @tunnel46_handlers
.subsections_via_symbols
