	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___skb_recv_datagram            ## -- Begin function __skb_recv_datagram
	.p2align	4, 0x90
___skb_recv_datagram:                   ## @__skb_recv_datagram
	.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
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r13
	callq	_sock_error
	testl	%eax, %eax
	je	LBB0_1
LBB0_10:
	movl	%eax, (%r14)
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%r15d, %esi
	movq	%r13, %rdi
	callq	_sock_rcvtimeo
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	%r13, %rdi
	callq	_skb_peek
	testq	%rax, %rax
	jne	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	cmpq	$0, -48(%rbp)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_wait_for_packet
	testl	%eax, %eax
	je	LBB0_2
	jmp	LBB0_11
LBB0_3:
	movq	%rax, %rbx
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_MSG_PEEK@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_5
## %bb.4:
	movl	$1, (%rbx)
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_atomic_inc
	jmp	LBB0_6
LBB0_9:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_5:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	___skb_unlink
LBB0_6:
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.comm	_MSG_PEEK,4,2                   ## @MSG_PEEK
	.comm	_EAGAIN,4,2                     ## @EAGAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___skb_recv_datagram            ; -- Begin function __skb_recv_datagram
	.p2align	2
___skb_recv_datagram:                   ; @__skb_recv_datagram
	.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	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_sock_error
	cbz	w0, LBB0_3
LBB0_1:
	mov	x23, #0
	str	w0, [x20]
LBB0_2:
	mov	x0, x23
	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_3:
Lloh0:
	adrp	x8, _MSG_DONTWAIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w1, w8, w21
	mov	x0, x19
	bl	_sock_rcvtimeo
	str	x0, [sp, #8]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_skb_peek
	cbnz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_wait_for_packet
	cbz	w0, LBB0_4
; %bb.7:
	mov	x23, #0
	b	LBB0_2
LBB0_8:
	mov	x23, x0
	ldr	w8, [x0]
	str	w8, [x22]
Lloh3:
	adrp	x8, _MSG_PEEK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_PEEK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_11
; %bb.9:
	mov	w8, #1
	mov	x0, x23
	str	w8, [x0], #4
	bl	_atomic_inc
	b	LBB0_12
LBB0_10:
Lloh6:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
LBB0_11:
	mov	x0, x23
	mov	x1, x19
	bl	___skb_unlink
LBB0_12:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.comm	_MSG_PEEK,4,2                   ; @MSG_PEEK
	.comm	_EAGAIN,4,2                     ; @EAGAIN
.subsections_via_symbols
