	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfkey_recvmsg
_pfkey_recvmsg:                         ## @pfkey_recvmsg
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	(%rsi), %r15
	movq	%r15, %rdi
	callq	_pfkey_sk
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)
	movq	_MSG_PEEK@GOTPCREL(%rip), %rax
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%rax), %eax
	orl	%edx, %eax
	movq	_MSG_TRUNC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_MSG_CMSG_COMPAT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	testl	%ebx, %eax
	jne	LBB0_11
## %bb.1:
	movq	$0, 8(%r12)
	andl	%ebx, %edx
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_skb_recv_datagram
	movq	_MSG_TRUNC@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rax, %r13
	movq	%r14, %rdx
	movslq	(%rax), %r14
	cmpq	%rdx, %r14
	jbe	LBB0_4
## %bb.3:
	movl	(%rcx), %eax
	orl	%eax, (%r12)
	movl	%edx, %r14d
LBB0_4:
	movq	%r13, %rdi
	callq	_skb_reset_transport_header
	movl	4(%r12), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%r14d, %ecx
	callq	_skb_copy_datagram_iovec
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	je	LBB0_5
LBB0_10:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_skb_free_datagram
LBB0_11:
	movl	-44(%rbp), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_sock_recv_ts_and_drops
	movq	_MSG_TRUNC@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	movl	(%r13), %r14d
LBB0_7:
	movl	%r14d, -44(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.8:
	leaq	4(%r15), %rdi
	callq	_atomic_read
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax,2), %eax
	cmpl	(%r15), %eax
	jg	LBB0_10
## %bb.9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_pfkey_do_dump
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MSG_PEEK,4,2                   ## @MSG_PEEK
	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.comm	_MSG_TRUNC,4,2                  ## @MSG_TRUNC
	.comm	_MSG_CMSG_COMPAT,4,2            ## @MSG_CMSG_COMPAT
	.no_dead_strip	_pfkey_recvmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfkey_recvmsg
_pfkey_recvmsg:                         ; @pfkey_recvmsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x4
	mov	x24, x3
	mov	x23, x2
	ldr	x19, [x1]
	mov	x0, x19
	bl	_pfkey_sk
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #12]
Lloh3:
	adrp	x8, _MSG_PEEK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_PEEK@GOTPAGEOFF]
Lloh5:
	adrp	x9, _MSG_DONTWAIT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x8]
Lloh8:
	ldr	w8, [x9]
	orr	w9, w8, w10
Lloh9:
	adrp	x26, _MSG_TRUNC@GOTPAGE
Lloh10:
	ldr	x26, [x26, _MSG_TRUNC@GOTPAGEOFF]
	ldr	w10, [x26]
	orr	w9, w9, w10
Lloh11:
	adrp	x10, _MSG_CMSG_COMPAT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _MSG_CMSG_COMPAT@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w9, w10
	bics	wzr, w21, w9
	b.ne	LBB0_6
; %bb.1:
	mov	x20, x0
	str	xzr, [x23, #8]
	and	w2, w8, w21
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_skb_recv_datagram
	cbz	x0, LBB0_6
; %bb.2:
	mov	x22, x0
	ldrsw	x25, [x0]
	cmp	x25, x24
	b.ls	LBB0_4
; %bb.3:
	ldr	w8, [x26]
	ldr	w9, [x23]
	orr	w8, w9, w8
	str	w8, [x23]
	mov	x25, x24
LBB0_4:
	mov	x0, x22
	bl	_skb_reset_transport_header
	ldr	w2, [x23, #4]
	mov	x0, x22
	mov	w1, #0
	mov	x3, x25
	bl	_skb_copy_datagram_iovec
	str	w0, [sp, #12]
	cbz	w0, LBB0_7
LBB0_5:
	mov	x0, x19
	mov	x1, x22
	bl	_skb_free_datagram
LBB0_6:
	ldr	w0, [sp, #12]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	mov	x0, x23
	mov	x1, x19
	mov	x2, x22
	bl	_sock_recv_ts_and_drops
	ldr	w8, [x26]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.8:
	ldr	w25, [x22]
LBB0_9:
	str	w25, [sp, #12]
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.10:
	add	x0, x19, #4
	bl	_atomic_read
	add	w8, w0, w0, lsl #1
	ldr	w9, [x19]
	cmp	w8, w9
	b.gt	LBB0_5
; %bb.11:
	mov	x0, x20
	bl	_pfkey_do_dump
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MSG_PEEK,4,2                   ; @MSG_PEEK
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.comm	_MSG_TRUNC,4,2                  ; @MSG_TRUNC
	.comm	_MSG_CMSG_COMPAT,4,2            ; @MSG_CMSG_COMPAT
	.no_dead_strip	_pfkey_recvmsg
.subsections_via_symbols
