	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xfrm4_tunnel_register          ## -- Begin function xfrm4_tunnel_register
	.p2align	4, 0x90
_xfrm4_tunnel_register:                 ## @xfrm4_tunnel_register
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	_EEXIST@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movl	(%rdi), %ebx
	movq	_tunnel4_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movl	%r13d, %edi
	callq	_fam_handlers
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movl	(%rcx), %edx
	cmpl	%ebx, %edx
	jg	LBB0_9
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, %edx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, %rax
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rcx), %edx
	cmpl	%ebx, %edx
	jle	LBB0_4
	jmp	LBB0_8
LBB0_1:
	xorl	%ecx, %ecx
	jmp	LBB0_9
LBB0_5:
	movl	%r12d, %r14d
	jmp	LBB0_10
LBB0_7:
	xorl	%ecx, %ecx
LBB0_8:
	addq	$8, %rax
LBB0_9:
	movq	%rcx, 8(%r15)
	movq	%r15, (%rax)
LBB0_10:
	movq	_tunnel4_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_tunnel4_mutex,4,2              ## @tunnel4_mutex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xfrm4_tunnel_register          ; -- Begin function xfrm4_tunnel_register
	.p2align	2
_xfrm4_tunnel_register:                 ; @xfrm4_tunnel_register
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _EEXIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	w21, [x0]
Lloh3:
	adrp	x0, _tunnel4_mutex@GOTPAGE
Lloh4:
	ldr	x0, [x0, _tunnel4_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x20
	bl	_fam_handlers
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	w10, [x8]
	cmp	w10, w21
	b.gt	LBB0_7
; %bb.2:
	neg	w20, w22
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w10, w21
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x9, x8
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x8]
	cmp	w10, w21
	b.le	LBB0_3
LBB0_6:
	add	x0, x9, #8
LBB0_7:
	mov	w20, #0
	str	x8, [x19, #8]
	str	x19, [x0]
LBB0_8:
Lloh5:
	adrp	x0, _tunnel4_mutex@GOTPAGE
Lloh6:
	ldr	x0, [x0, _tunnel4_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_tunnel4_mutex,4,2              ; @tunnel4_mutex
.subsections_via_symbols
