	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sendkeymsg                     ## -- Begin function sendkeymsg
	.p2align	4, 0x90
_sendkeymsg:                            ## @sendkeymsg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	movl	$131088, %eax                   ## imm = 0x20010
	callq	____chkstk_darwin
	subq	%rax, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_PF_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PF_KEY_V2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_socket
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_m_buf@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_pfkey_sadump
	movq	(%r14), %rsi
	movq	_m_len@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	xorl	%ecx, %ecx
	callq	_send
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	leaq	-131104(%rbp), %rsi
	movl	%ebx, %edi
	movl	$131072, %edx                   ## imm = 0x20000
	xorl	%ecx, %ecx
	callq	_recv
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	leaq	-131104(%rbp), %rdi
	callq	_pfkey_sadump
LBB0_7:
	movl	%ebx, %edi
	callq	_close
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	addq	$131088, %rsp                   ## imm = 0x20010
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	jmp	LBB0_7
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_KEY,4,2                     ## @PF_KEY
	.comm	_SOCK_RAW,4,2                   ## @SOCK_RAW
	.comm	_PF_KEY_V2,4,2                  ## @PF_KEY_V2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket(PF_KEY)"

	.comm	_m_buf,8,3                      ## @m_buf
	.comm	_m_len,4,2                      ## @m_len
L_.str.1:                               ## @.str.1
	.asciz	"send"

L_.str.2:                               ## @.str.2
	.asciz	"recv"

	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_RCVTIMEO,4,2                ## @SO_RCVTIMEO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sendkeymsg                     ; -- Begin function sendkeymsg
	.p2align	2
_sendkeymsg:                            ; @sendkeymsg
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -40
	.cfi_offset w28, -48
	mov	w9, #16
	movk	w9, #2, lsl #16
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #32, lsl #12            ; =131072
	sub	sp, sp, #16
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh5:
	adrp	x8, _PF_KEY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PF_KEY@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _SOCK_RAW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SOCK_RAW@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _PF_KEY_V2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PF_KEY_V2@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_socket
	mov	x19, x0
	tbnz	w0, #31, LBB0_6
; %bb.1:
Lloh14:
	adrp	x20, _m_buf@GOTPAGE
Lloh15:
	ldr	x20, [x20, _m_buf@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_pfkey_sadump
	ldr	x1, [x20]
Lloh16:
	adrp	x8, _m_len@GOTPAGE
Lloh17:
	ldr	x8, [x8, _m_len@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_send
	tbnz	w0, #31, LBB0_7
; %bb.2:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #131072
	mov	w3, #0
	bl	_recv
	tbnz	w0, #31, LBB0_8
; %bb.3:
	add	x0, sp, #8
	bl	_pfkey_sadump
LBB0_4:
	mov	x0, x19
	bl	_close
	ldur	x8, [x29, #-40]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.5:
	mov	w0, #0
	add	sp, sp, #32, lsl #12            ; =131072
	add	sp, sp, #16
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	b	LBB0_4
LBB0_7:
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	b	LBB0_4
LBB0_8:
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
	b	LBB0_4
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_KEY,4,2                     ; @PF_KEY
	.comm	_SOCK_RAW,4,2                   ; @SOCK_RAW
	.comm	_PF_KEY_V2,4,2                  ; @PF_KEY_V2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket(PF_KEY)"

	.comm	_m_buf,8,3                      ; @m_buf
	.comm	_m_len,4,2                      ; @m_len
l_.str.1:                               ; @.str.1
	.asciz	"send"

l_.str.2:                               ; @.str.2
	.asciz	"recv"

	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_RCVTIMEO,4,2                ; @SO_RCVTIMEO
.subsections_via_symbols
