	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfkey_getspi
_pfkey_getspi:                          ## @pfkey_getspi
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rdi, %rbx
	callq	_sock_net
	movq	%rax, %r13
	movq	_SADB_EXT_ADDRESS_SRC@GOTPCREL(%rip), %r15
	movslq	(%r15), %rax
	movq	-8(%r12,%rax,8), %rdi
	movq	_SADB_EXT_ADDRESS_DST@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	-8(%r12,%rax,8), %rsi
	callq	_present_and_same_family
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	32(%r14), %edi
	callq	_pfkey_satype2proto
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %r14
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	_SADB_X_EXT_SA2@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	-8(%r12,%rax,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.6:
	movl	4(%rbx), %edi
	callq	_pfkey_mode_to_xfrm
	testl	%eax, %eax
	js	LBB0_1
## %bb.7:
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_25:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_8:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movslq	(%r15), %rax
	movq	-8(%r12,%rax,8), %r13
	movzwl	4(%r13), %eax
	cmpl	$129, %eax
	jne	LBB0_9
## %bb.10:
	addq	$4, %r13
	movq	_SADB_EXT_ADDRESS_DST@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	-8(%r12,%rcx,8), %r15
	addq	$4, %r15
	jmp	LBB0_11
LBB0_9:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
LBB0_11:
	movq	8(%rdx), %rdx
	movzwl	%ax, %ebx
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.12:
	movq	_DUMMY_MARK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_xfrm_find_acq_byseq
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_xfrm_addr_cmp
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:
	movq	%r14, %rdi
	callq	_xfrm_state_put
LBB0_15:
	subq	$8, %rsp
	movq	_dummy_mark@GOTPCREL(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	%r15, %r9
	pushq	%rbx
	pushq	$1
	pushq	%r13
	callq	_xfrm_find_acq
	addq	$32, %rsp
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_16
LBB0_17:
	movq	_SADB_EXT_SPIRANGE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	-8(%r12,%rax,8), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	movl	(%rax), %esi
	movl	4(%rax), %edx
	jmp	LBB0_20
LBB0_16:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_18:
	movl	$268435455, %edx                ## imm = 0xFFFFFFF
	movl	$256, %esi                      ## imm = 0x100
LBB0_20:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_xfrm_alloc_spi
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %edi
	callq	_ERR_PTR
	jmp	LBB0_23
LBB0_22:
	movq	%r14, %rdi
	callq	_pfkey_xfrm_state2msg
LBB0_23:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_24
## %bb.26:
	movq	%r14, %rdi
	callq	_xfrm_state_put
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_24:
	movq	(%r15), %rbx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	40(%r13), %eax
	movl	%eax, 40(%rbx)
	movq	_SADB_GETSPI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_pfkey_proto2satype
	movl	%eax, 32(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movq	8(%r13), %rax
	movq	%rax, 8(%rbx)
	movl	(%r13), %eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_xfrm_state_put
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BROADCAST_ONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, %r8
	callq	_pfkey_broadcast
	xorl	%eax, %eax
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_SADB_EXT_ADDRESS_SRC,4,2       ## @SADB_EXT_ADDRESS_SRC
	.comm	_SADB_EXT_ADDRESS_DST,4,2       ## @SADB_EXT_ADDRESS_DST
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SADB_X_EXT_SA2,4,2             ## @SADB_X_EXT_SA2
	.comm	_DUMMY_MARK,4,2                 ## @DUMMY_MARK
	.comm	_dummy_mark,4,2                 ## @dummy_mark
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_SADB_EXT_SPIRANGE,4,2          ## @SADB_EXT_SPIRANGE
	.comm	_SADB_GETSPI,4,2                ## @SADB_GETSPI
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_BROADCAST_ONE,4,2              ## @BROADCAST_ONE
	.no_dead_strip	_pfkey_getspi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfkey_getspi
_pfkey_getspi:                          ; @pfkey_getspi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x3
	mov	x21, x2
	mov	x19, x0
	bl	_sock_net
	mov	x20, x0
Lloh0:
	adrp	x26, _SADB_EXT_ADDRESS_SRC@GOTPAGE
Lloh1:
	ldr	x26, [x26, _SADB_EXT_ADDRESS_SRC@GOTPAGEOFF]
	ldrsw	x8, [x26]
	add	x8, x23, x8, lsl #3
	ldur	x0, [x8, #-8]
Lloh2:
	adrp	x24, _SADB_EXT_ADDRESS_DST@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SADB_EXT_ADDRESS_DST@GOTPAGEOFF]
	ldrsw	x8, [x24]
	add	x8, x23, x8, lsl #3
	ldur	x1, [x8, #-8]
	bl	_present_and_same_family
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w0, [x21, #32]
	bl	_pfkey_satype2proto
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
Lloh4:
	adrp	x8, _SADB_X_EXT_SA2@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SADB_X_EXT_SA2@GOTPAGEOFF]
Lloh6:
	ldrsw	x8, [x8]
	add	x8, x23, x8, lsl #3
	ldur	x27, [x8, #-8]
	cbz	x27, LBB0_8
; %bb.3:
	ldr	w0, [x27, #4]
	bl	_pfkey_mode_to_xfrm
	tbnz	w0, #31, LBB0_5
; %bb.4:
	mov	x25, x0
	ldr	w8, [x27]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_9
LBB0_5:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	mov	w25, #0
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
LBB0_9:
	ldrsw	x8, [x26]
	add	x8, x23, x8, lsl #3
	ldur	x27, [x8, #-8]
	ldrh	w28, [x27, #4]!
	cmp	w28, #129
	b.ne	LBB0_11
; %bb.10:
	ldrsw	x8, [x24]
	add	x8, x23, x8, lsl #3
	ldur	x8, [x8, #-8]
	add	x26, x8, #4
	ldr	x2, [x21, #8]
	cbnz	x2, LBB0_12
	b	LBB0_15
LBB0_11:
	mov	x27, #0
	mov	x26, #0
	ldr	x2, [x21, #8]
	cbz	x2, LBB0_15
LBB0_12:
Lloh9:
	adrp	x8, _DUMMY_MARK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DUMMY_MARK@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_xfrm_find_acq_byseq
	cbz	x0, LBB0_15
; %bb.13:
	mov	x24, x0
	mov	x1, x26
	mov	x2, x28
	bl	_xfrm_addr_cmp
	cbz	x0, LBB0_16
; %bb.14:
	mov	x0, x24
	bl	_xfrm_state_put
LBB0_15:
	strh	w28, [sp]
Lloh12:
	adrp	x1, _dummy_mark@GOTPAGE
Lloh13:
	ldr	x1, [x1, _dummy_mark@GOTPAGEOFF]
	mov	x0, x20
	mov	x2, x25
	ldr	w3, [sp, #12]                   ; 4-byte Folded Reload
	mov	x4, x22
	mov	x5, x26
	mov	x6, x27
	mov	w7, #1
	bl	_xfrm_find_acq
	mov	x24, x0
	cbz	x0, LBB0_18
LBB0_16:
Lloh14:
	adrp	x8, _SADB_EXT_SPIRANGE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SADB_EXT_SPIRANGE@GOTPAGEOFF]
Lloh16:
	ldrsw	x8, [x8]
	add	x8, x23, x8, lsl #3
	ldur	x8, [x8, #-8]
	cbz	x8, LBB0_19
; %bb.17:
	ldp	w1, w2, [x8]
	b	LBB0_20
LBB0_18:
Lloh17:
	adrp	x8, _ENOENT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_6
LBB0_19:
	mov	w2, #268435455
	mov	w1, #256
LBB0_20:
	mov	x0, x24
	bl	_xfrm_alloc_spi
	cbz	w0, LBB0_22
; %bb.21:
	bl	_ERR_PTR
	b	LBB0_23
LBB0_22:
	mov	x0, x24
	bl	_pfkey_xfrm_state2msg
LBB0_23:
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_25
; %bb.24:
	mov	x0, x24
	bl	_xfrm_state_put
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_PTR_ERR
LBB0_25:
	ldr	x25, [x23]
	ldr	w8, [x21, #40]
Lloh19:
	adrp	x9, _SADB_GETSPI@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SADB_GETSPI@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x25, #36]
	mov	x0, x22
	bl	_pfkey_proto2satype
	str	w0, [x25, #32]
	stp	xzr, xzr, [x25, #16]
	ldr	x8, [x21, #8]
	str	x8, [x25, #8]
	ldr	w8, [x21]
	str	w8, [x25]
	mov	x0, x24
	bl	_xfrm_state_put
Lloh22:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _BROADCAST_ONE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BROADCAST_ONE@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x3, x19
	mov	x4, x20
	bl	_pfkey_broadcast
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_SADB_EXT_ADDRESS_SRC,4,2       ; @SADB_EXT_ADDRESS_SRC
	.comm	_SADB_EXT_ADDRESS_DST,4,2       ; @SADB_EXT_ADDRESS_DST
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SADB_X_EXT_SA2,4,2             ; @SADB_X_EXT_SA2
	.comm	_DUMMY_MARK,4,2                 ; @DUMMY_MARK
	.comm	_dummy_mark,4,2                 ; @dummy_mark
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_SADB_EXT_SPIRANGE,4,2          ; @SADB_EXT_SPIRANGE
	.comm	_SADB_GETSPI,4,2                ; @SADB_GETSPI
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_BROADCAST_ONE,4,2              ; @BROADCAST_ONE
	.no_dead_strip	_pfkey_getspi
.subsections_via_symbols
