	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atalk_recvmsg
_atalk_recvmsg:                         ## @atalk_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
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	(%rsi), %r14
	movl	$0, -44(%rbp)
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %esi
	notl	%esi
	andl	%r8d, %esi
	andl	%r8d, %edx
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	callq	_skb_recv_datagram
	movl	$0, (%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_ddp_hdr
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	12(%rax), %edi
	callq	_ntohs
                                        ## kill: def $eax killed $eax def $rax
	andl	$1023, %eax                     ## imm = 0x3FF
	movq	(%r14), %rcx
	movq	_SOCK_RAW@GOTPCREL(%rip), %rdx
	leal	-16(%rax), %ebx
	xorl	%esi, %esi
	cmpq	(%rdx), %rcx
	cmovel	%eax, %ebx
	setne	%sil
	shll	$4, %esi
	movslq	%ebx, %rax
	cmpq	%r12, %rax
	jbe	LBB0_4
## %bb.3:
	movq	_MSG_TRUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%r15)
	movl	%r12d, %ebx
LBB0_4:
	movl	16(%r15), %edx
	movq	%r13, %rdi
	movl	%ebx, %ecx
	callq	_skb_copy_datagram_iovec
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_AF_APPLETALK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	8(%rdx), %ecx
	movl	%ecx, 8(%rax)
	movl	4(%rdx), %ecx
	movl	%ecx, 4(%rax)
	movl	(%rdx), %ecx
	movl	%ecx, (%rax)
	movl	$16, (%r15)
LBB0_7:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_skb_free_datagram
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	cmovnel	%eax, %ebx
	jmp	LBB0_8
LBB0_1:
	movl	-44(%rbp), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.comm	_SOCK_RAW,8,3                   ## @SOCK_RAW
	.comm	_MSG_TRUNC,4,2                  ## @MSG_TRUNC
	.comm	_AF_APPLETALK,4,2               ## @AF_APPLETALK
	.no_dead_strip	_atalk_recvmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atalk_recvmsg
_atalk_recvmsg:                         ; @atalk_recvmsg
	.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	x22, x3
	mov	x20, x2
	ldr	x19, [x1]
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _MSG_DONTWAIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w1, w4, w8
	and	w2, w8, w4
	add	x3, sp, #12
	mov	x0, x19
	bl	_skb_recv_datagram
	str	wzr, [x20]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	bl	_ddp_hdr
	mov	x23, x0
	ldr	w0, [x0, #12]
	bl	_ntohs
	and	w8, w0, #0x3ff
	ldr	x9, [x19]
Lloh3:
	adrp	x10, _SOCK_RAW@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SOCK_RAW@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	sub	w11, w8, #16
	cmp	x9, x10
	cset	w9, ne
	lsl	w1, w9, #4
	csel	w24, w8, w11, eq
	sxtw	x8, w24
	cmp	x8, x22
	b.ls	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _MSG_TRUNC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_TRUNC@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x20, #20]
	orr	w8, w9, w8
	str	w8, [x20, #20]
	mov	x24, x22
LBB0_3:
	ldr	w2, [x20, #16]
	mov	x0, x21
	mov	x3, x24
	bl	_skb_copy_datagram_iovec
	str	w0, [sp, #12]
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.5:
Lloh9:
	adrp	x9, _AF_APPLETALK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AF_APPLETALK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ldr	w10, [x23, #8]
	stp	w10, w9, [x8, #8]
	ldr	d0, [x23]
	str	d0, [x8]
	mov	w8, #16
	str	w8, [x20]
LBB0_6:
	mov	x0, x19
	mov	x1, x21
	bl	_skb_free_datagram
	ldr	w8, [sp, #12]
	cmp	w8, #0
	csel	w0, w24, w8, eq
	b	LBB0_8
LBB0_7:
	ldr	w0, [sp, #12]
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.comm	_SOCK_RAW,8,3                   ; @SOCK_RAW
	.comm	_MSG_TRUNC,4,2                  ; @MSG_TRUNC
	.comm	_AF_APPLETALK,4,2               ; @AF_APPLETALK
	.no_dead_strip	_atalk_recvmsg
.subsections_via_symbols
