	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __xfrm6_tunnel_alloc_spi
___xfrm6_tunnel_alloc_spi:              ## @__xfrm6_tunnel_alloc_spi
	.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
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_xfrm6_tunnel_spi@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	_XFRM6_TUNNEL_SPI_MIN@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	_XFRM6_TUNNEL_SPI_MAX@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	leaq	1(%rcx), %r15
	cmpq	%rdx, %rcx
	cmovgeq	%rax, %r15
	cmpq	%rax, %rcx
	cmovlq	%rax, %r15
	movq	%r15, (%r12)
	cmpq	%rdx, %r15
	jle	LBB0_2
## %bb.1:
	movq	%r15, %rcx
	movq	%rax, %r15
	cmpq	%rcx, %r15
	jge	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	___xfrm6_tunnel_spi_check
	testl	%eax, %eax
	jns	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%r15
	cmpq	(%r12), %r15
	jl	LBB0_8
LBB0_10:
	xorl	%r15d, %r15d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	___xfrm6_tunnel_spi_check
	testl	%eax, %eax
	jns	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%r15), %rax
	cmpq	(%r14), %r15
	movq	%rax, %r15
	jl	LBB0_2
## %bb.6:
	movq	(%r13), %r15
	movq	(%r12), %rcx
	cmpq	%rcx, %r15
	jl	LBB0_8
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %ebx
	movq	%r15, (%r12)
	movq	_xfrm6_tunnel_spi_kmem@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmem_cache_alloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	%rax, %r12
	leaq	24(%rax), %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r15, 16(%r12)
	leaq	8(%r12), %rdi
	movl	$1, %esi
	callq	_atomic_set
	movq	%r12, %rdi
	addq	$4, %rdi
	movq	_xfrm6_tunnel_spi_byspi@GOTPCREL(%rip), %rax
	movl	%ebx, %esi
	shlq	$2, %rsi
	addq	(%rax), %rsi
	callq	_hlist_add_head
	movq	%r14, %rdi
	callq	_xfrm6_tunnel_spi_hash_byaddr
	movq	_xfrm6_tunnel_spi_byaddr@GOTPCREL(%rip), %rcx
	movslq	%eax, %rsi
	shlq	$2, %rsi
	addq	(%rcx), %rsi
	movq	%r12, %rdi
	callq	_hlist_add_head
LBB0_11:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xfrm6_tunnel_spi,8,3           ## @xfrm6_tunnel_spi
	.comm	_XFRM6_TUNNEL_SPI_MIN,8,3       ## @XFRM6_TUNNEL_SPI_MIN
	.comm	_XFRM6_TUNNEL_SPI_MAX,8,3       ## @XFRM6_TUNNEL_SPI_MAX
	.comm	_xfrm6_tunnel_spi_kmem,4,2      ## @xfrm6_tunnel_spi_kmem
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_xfrm6_tunnel_spi_byspi,8,3     ## @xfrm6_tunnel_spi_byspi
	.comm	_xfrm6_tunnel_spi_byaddr,8,3    ## @xfrm6_tunnel_spi_byaddr
	.no_dead_strip	___xfrm6_tunnel_alloc_spi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __xfrm6_tunnel_alloc_spi
___xfrm6_tunnel_alloc_spi:              ; @__xfrm6_tunnel_alloc_spi
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
Lloh0:
	adrp	x22, _xfrm6_tunnel_spi@GOTPAGE
Lloh1:
	ldr	x22, [x22, _xfrm6_tunnel_spi@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh2:
	adrp	x23, _XFRM6_TUNNEL_SPI_MIN@GOTPAGE
Lloh3:
	ldr	x23, [x23, _XFRM6_TUNNEL_SPI_MIN@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh4:
	adrp	x24, _XFRM6_TUNNEL_SPI_MAX@GOTPAGE
Lloh5:
	ldr	x24, [x24, _XFRM6_TUNNEL_SPI_MAX@GOTPAGEOFF]
	ldr	x10, [x24]
	cmp	x9, x10
	ccmp	x9, x8, #8, lt
	csinc	x19, x8, x9, lt
	str	x19, [x22]
	cmp	x19, x10
	b.le	LBB0_5
; %bb.1:
	mov	x9, x19
	mov	x19, x8
	cmp	x19, x9
	b.ge	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	___xfrm6_tunnel_spi_check
	tbz	w0, #31, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x19, x19, #1
	ldr	x8, [x22]
	cmp	x19, x8
	b.lt	LBB0_2
LBB0_4:
	mov	x19, #0
	b	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	___xfrm6_tunnel_spi_check
	tbz	w0, #31, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x19, #1
	ldr	x9, [x24]
	cmp	x19, x9
	mov	x19, x8
	b.lt	LBB0_5
; %bb.7:
	ldr	x19, [x23]
	ldr	x9, [x22]
	cmp	x19, x9
	b.lt	LBB0_2
	b	LBB0_4
LBB0_8:
	mov	x21, x0
	str	x19, [x22]
Lloh6:
	adrp	x8, _xfrm6_tunnel_spi_kmem@GOTPAGE
Lloh7:
	ldr	x8, [x8, _xfrm6_tunnel_spi_kmem@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_kmem_cache_alloc
	cbz	x0, LBB0_10
; %bb.9:
	mov	x22, x0
	add	x0, x0, #24
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	str	x19, [x22, #16]
	add	x0, x22, #8
	mov	w1, #1
	bl	_atomic_set
	add	x0, x22, #4
Lloh12:
	adrp	x8, _xfrm6_tunnel_spi_byspi@GOTPAGE
Lloh13:
	ldr	x8, [x8, _xfrm6_tunnel_spi_byspi@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x1, x8, w21, uxtw #2
	bl	_hlist_add_head
	mov	x0, x20
	bl	_xfrm6_tunnel_spi_hash_byaddr
Lloh15:
	adrp	x8, _xfrm6_tunnel_spi_byaddr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _xfrm6_tunnel_spi_byaddr@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	add	x1, x8, w0, sxtw #2
	mov	x0, x22
	bl	_hlist_add_head
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_xfrm6_tunnel_spi,8,3           ; @xfrm6_tunnel_spi
	.comm	_XFRM6_TUNNEL_SPI_MIN,8,3       ; @XFRM6_TUNNEL_SPI_MIN
	.comm	_XFRM6_TUNNEL_SPI_MAX,8,3       ; @XFRM6_TUNNEL_SPI_MAX
	.comm	_xfrm6_tunnel_spi_kmem,4,2      ; @xfrm6_tunnel_spi_kmem
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_xfrm6_tunnel_spi_byspi,8,3     ; @xfrm6_tunnel_spi_byspi
	.comm	_xfrm6_tunnel_spi_byaddr,8,3    ; @xfrm6_tunnel_spi_byaddr
	.no_dead_strip	___xfrm6_tunnel_alloc_spi
.subsections_via_symbols
