	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ping_recvmsg
_ping_recvmsg:                          ## @ping_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	16(%rbp), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_inet_sk
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rbx
	movl	8(%rax), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, -44(%rbp)
	movq	_MSG_OOB@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_1
LBB0_12:
	movl	-44(%rbp), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	-44(%rbp), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %r14
	movq	_MSG_ERRQUEUE@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_2
## %bb.13:
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ip_recv_error                  ## TAILCALL
LBB0_2:
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_skb_recv_datagram
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	%rax, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movslq	(%rax), %r12
	cmpq	%r15, %r12
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jbe	LBB0_5
## %bb.4:
	movq	_MSG_TRUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	movl	%r15d, %r12d
LBB0_5:
	movl	(%rbx), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%r12d, %ecx
	callq	_skb_copy_datagram_iovec
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_sock_recv_timestamp
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	testq	%r12, %r12
	je	LBB0_8
## %bb.7:
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	$0, 8(%r12)
	movq	%r13, %rdi
	callq	_ip_hdr
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movl	(%r12), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$24, (%rax)
LBB0_8:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ip_cmsg_recv
LBB0_10:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, -44(%rbp)
LBB0_11:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_skb_free_datagram
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ping_recvmsg(sk=%p,sk->num=%u)\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_MSG_OOB,4,2                    ## @MSG_OOB
	.comm	_MSG_ERRQUEUE,4,2               ## @MSG_ERRQUEUE
	.comm	_MSG_TRUNC,4,2                  ## @MSG_TRUNC
	.comm	_AF_INET,4,2                    ## @AF_INET
L_.str.1:                               ## @.str.1
	.asciz	"ping_recvmsg -> %d\n"

	.no_dead_strip	_ping_recvmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ping_recvmsg
_ping_recvmsg:                          ; @ping_recvmsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x21, x6
	mov	x23, x5
	mov	x24, x4
	mov	x25, x3
	mov	x20, x2
	mov	x19, x1
	mov	x0, x1
	bl	_inet_sk
	mov	x22, x0
	ldr	x26, [x20, #8]
	ldr	w8, [x0, #8]
	stp	x0, x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #28]
Lloh5:
	adrp	x8, _MSG_OOB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_OOB@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_2
LBB0_1:
	ldr	w8, [sp, #28]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	ldr	w0, [sp, #28]
	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
	add	sp, sp, #112
	ret
LBB0_2:
Lloh10:
	adrp	x8, _MSG_ERRQUEUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_ERRQUEUE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x25
	mov	x3, x21
	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
	add	sp, sp, #112
	b	_ip_recv_error
LBB0_4:
	add	x3, sp, #28
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_skb_recv_datagram
	cbz	x0, LBB0_1
; %bb.5:
	mov	x23, x0
	ldrsw	x24, [x0]
	cmp	x24, x25
	b.ls	LBB0_7
; %bb.6:
Lloh13:
	adrp	x8, _MSG_TRUNC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_TRUNC@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
	mov	x24, x25
LBB0_7:
	ldr	w2, [x20]
	mov	x0, x23
	mov	w1, #0
	mov	x3, x24
	bl	_skb_copy_datagram_iovec
	str	w0, [sp, #28]
	cbnz	w0, LBB0_13
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_sock_recv_timestamp
	cbz	x26, LBB0_10
; %bb.9:
Lloh16:
	adrp	x8, _AF_INET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x26, #16]
	str	xzr, [x26, #8]
	mov	x0, x23
	bl	_ip_hdr
	ldr	w8, [x0]
	str	w8, [x26, #4]
	ldr	w0, [x26]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w8, #24
	str	w8, [x21]
LBB0_10:
	ldr	x8, [x22]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x20
	mov	x1, x23
	bl	_ip_cmsg_recv
LBB0_12:
	str	w24, [sp, #28]
LBB0_13:
	mov	x0, x19
	mov	x1, x23
	bl	_skb_free_datagram
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ping_recvmsg(sk=%p,sk->num=%u)\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_MSG_OOB,4,2                    ; @MSG_OOB
	.comm	_MSG_ERRQUEUE,4,2               ; @MSG_ERRQUEUE
	.comm	_MSG_TRUNC,4,2                  ; @MSG_TRUNC
	.comm	_AF_INET,4,2                    ; @AF_INET
l_.str.1:                               ; @.str.1
	.asciz	"ping_recvmsg -> %d\n"

	.no_dead_strip	_ping_recvmsg
.subsections_via_symbols
