	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfkey_sendmsg
_pfkey_sendmsg:                         ## @pfkey_sendmsg
	.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	%rcx, %rbx
	movq	(%rsi), %r15
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)
	movq	_MSG_OOB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdx)
	jne	LBB0_9
## %bb.1:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)
	movl	(%r15), %eax
	addl	$-32, %eax
	cmpl	%ebx, %eax
	jb	LBB0_9
## %bb.2:
	movq	%rdx, %r12
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	xorl	%r13d, %r13d
	movl	%ecx, -44(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_alloc_skb
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	_EFAULT@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movl	%r13d, -44(%rbp)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_skb_put
	movl	4(%r12), %esi
	movl	%eax, %edi
	movq	%rbx, %rdx
	callq	_memcpy_fromiovec
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	_pfkey_get_base_msg
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rax, %r12
	movq	_xfrm_cfg_mutex@GOTPCREL(%rip), %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_pfkey_process
	movl	%eax, -44(%rbp)
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	-44(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_9
## %bb.7:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_pfkey_error
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movl	$0, -44(%rbp)
	jmp	LBB0_9
LBB0_3:
	xorl	%r14d, %r14d
LBB0_9:
	movq	%r14, %rdi
	callq	_kfree_skb
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	cmovnel	%eax, %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_MSG_OOB,4,2                    ## @MSG_OOB
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_xfrm_cfg_mutex,4,2             ## @xfrm_cfg_mutex
	.no_dead_strip	_pfkey_sendmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfkey_sendmsg
_pfkey_sendmsg:                         ; @pfkey_sendmsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	ldr	x20, [x1]
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #12]
	ldr	w8, [x2]
Lloh3:
	adrp	x9, _MSG_OOB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MSG_OOB@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #12]
	ldr	w8, [x20]
	sub	w8, w8, #32
	cmp	w8, w19
	b.hs	LBB0_4
LBB0_2:
	mov	x21, #0
LBB0_3:
	mov	x0, x21
	bl	_kfree_skb
	ldr	w8, [sp, #12]
	cmp	w8, #0
	csel	w0, w19, w8, eq
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	mov	x22, x2
Lloh9:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #12]
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_alloc_skb
	mov	x21, x0
	cbz	x0, LBB0_3
; %bb.5:
Lloh15:
	adrp	x8, _EFAULT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #12]
	mov	x0, x21
	mov	x1, x19
	bl	_skb_put
	ldr	w1, [x22, #4]
	mov	x2, x19
	bl	_memcpy_fromiovec
	cbnz	x0, LBB0_3
; %bb.6:
	add	x1, sp, #12
	mov	x0, x21
	bl	_pfkey_get_base_msg
	cbz	x0, LBB0_3
; %bb.7:
	mov	x22, x0
Lloh18:
	adrp	x23, _xfrm_cfg_mutex@GOTPAGE
Lloh19:
	ldr	x23, [x23, _xfrm_cfg_mutex@GOTPAGEOFF]
	mov	x0, x23
	bl	_mutex_lock
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_pfkey_process
	str	w0, [sp, #12]
	mov	x0, x23
	bl	_mutex_unlock
	ldr	w1, [sp, #12]
	cbz	w1, LBB0_3
; %bb.8:
	mov	x0, x22
	mov	x2, x20
	bl	_pfkey_error
	cbnz	x0, LBB0_3
; %bb.9:
	str	wzr, [sp, #12]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_MSG_OOB,4,2                    ; @MSG_OOB
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_xfrm_cfg_mutex,4,2             ; @xfrm_cfg_mutex
	.no_dead_strip	_pfkey_sendmsg
.subsections_via_symbols
