	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfkey_create
_pfkey_create:                          ## @pfkey_create
	.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	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_pfkey_net_id@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_net_generic
	movq	%rax, %r14
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	(%r15), %rax
	movq	_SOCK_RAW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	_PF_KEY_V2@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_6
## %bb.7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_PF_KEY@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_key_proto@GOTPCREL(%rip), %rcx
	movq	%r12, %rdi
	callq	_sk_alloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, %r12
	movq	_pfkey_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_sock_init_data
	movl	(%r13), %eax
	movl	%eax, 4(%r12)
	movq	_pfkey_sock_destruct@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%r14, %rdi
	callq	_atomic_inc
	movq	%r12, %rdi
	callq	_pfkey_insert
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ESOCKTNOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	negl	%ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_pfkey_net_id,4,2               ## @pfkey_net_id
	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_SOCK_RAW,8,3                   ## @SOCK_RAW
	.comm	_ESOCKTNOSUPPORT,4,2            ## @ESOCKTNOSUPPORT
	.comm	_PF_KEY_V2,4,2                  ## @PF_KEY_V2
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PF_KEY,4,2                     ## @PF_KEY
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_key_proto,4,2                  ## @key_proto
	.comm	_pfkey_ops,4,2                  ## @pfkey_ops
	.comm	_pfkey_sock_destruct,4,2        ## @pfkey_sock_destruct
	.no_dead_strip	_pfkey_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfkey_create
_pfkey_create:                          ; @pfkey_create
	.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	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _pfkey_net_id@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pfkey_net_id@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_net_generic
	mov	x19, x0
Lloh3:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _SOCK_RAW@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SOCK_RAW@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
Lloh9:
	adrp	x8, _PF_KEY_V2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PF_KEY_V2@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_7
; %bb.3:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
Lloh15:
	adrp	x22, _PF_KEY@GOTPAGE
Lloh16:
	ldr	x22, [x22, _PF_KEY@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh17:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x3, _key_proto@GOTPAGE
Lloh21:
	ldr	x3, [x3, _key_proto@GOTPAGEOFF]
	mov	x0, x21
	bl	_sk_alloc
	cbz	x0, LBB0_10
; %bb.4:
	mov	x21, x0
Lloh22:
	adrp	x8, _pfkey_ops@GOTPAGE
Lloh23:
	ldr	x8, [x8, _pfkey_ops@GOTPAGEOFF]
	str	x8, [x20, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_sock_init_data
	ldr	w8, [x22]
Lloh24:
	adrp	x9, _pfkey_sock_destruct@GOTPAGE
Lloh25:
	ldr	x9, [x9, _pfkey_sock_destruct@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w9, w8, [x21]
	mov	x0, x19
	bl	_atomic_inc
	mov	x0, x21
	bl	_pfkey_insert
	mov	w0, #0
	b	LBB0_9
LBB0_5:
Lloh27:
	adrp	x8, _EPERM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh29:
	adrp	x8, _ESOCKTNOSUPPORT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ESOCKTNOSUPPORT@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh31:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
LBB0_10:
	neg	w0, w23
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_pfkey_net_id,4,2               ; @pfkey_net_id
	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_SOCK_RAW,8,3                   ; @SOCK_RAW
	.comm	_ESOCKTNOSUPPORT,4,2            ; @ESOCKTNOSUPPORT
	.comm	_PF_KEY_V2,4,2                  ; @PF_KEY_V2
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PF_KEY,4,2                     ; @PF_KEY
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_key_proto,4,2                  ; @key_proto
	.comm	_pfkey_ops,4,2                  ; @pfkey_ops
	.comm	_pfkey_sock_destruct,4,2        ; @pfkey_sock_destruct
	.no_dead_strip	_pfkey_create
.subsections_via_symbols
