	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipx_recvmsg
_ipx_recvmsg:                           ## @ipx_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	(%rsi), %r14
	movq	%r14, %rdi
	callq	_ipx_sk
	movq	16(%r12), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	$0, (%r12)
	cmpl	$0, 8(%rax)
	je	LBB0_1
LBB0_2:
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)
	movq	_SOCK_ZAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sock_flag
	testq	%rax, %rax
	jne	LBB0_13
## %bb.3:
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %esi
	notl	%esi
	andl	%r13d, %esi
	andl	%r13d, %edx
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	callq	_skb_recv_datagram
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ipx_hdr
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	24(%rax), %edi
	callq	_ntohs
	movl	%eax, %r13d
	addl	$-32, %r13d
	movslq	%r13d, %rax
	cmpq	%r15, %rax
	jbe	LBB0_6
## %bb.5:
	movq	_MSG_TRUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r12)
	movl	%r15d, %r13d
LBB0_6:
	movl	4(%r12), %edx
	movq	%rbx, %rdi
	movl	$32, %esi
	movl	%r13d, %ecx
	callq	_skb_copy_datagram_iovec
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, (%r14)
LBB0_9:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:
	movq	_AF_IPX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rax
	movq	%rax, 32(%r15)
	movl	24(%r15), %edi
	movl	8(%rcx), %esi
	movq	_IPX_NODE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_IPX_SKB_CB
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	$0, (%r15)
	movl	$48, (%r12)
LBB0_11:
	movl	%r13d, -44(%rbp)
LBB0_12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_skb_free_datagram
	jmp	LBB0_13
LBB0_1:
	movq	$0, -80(%rbp)
	movq	$0, -96(%rbp)
	leaq	-112(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$48, %edx
	callq	_ipx_bind
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	je	LBB0_2
LBB0_13:
	movl	-44(%rbp), %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_SOCK_ZAPPED,4,2                ## @SOCK_ZAPPED
	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.comm	_MSG_TRUNC,4,2                  ## @MSG_TRUNC
	.comm	_AF_IPX,4,2                     ## @AF_IPX
	.comm	_IPX_NODE_LEN,4,2               ## @IPX_NODE_LEN
	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
	.no_dead_strip	_ipx_recvmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipx_recvmsg
_ipx_recvmsg:                           ; @ipx_recvmsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x22, x3
	mov	x20, x2
	mov	x23, x1
	ldr	x19, [x1]
	mov	x0, x19
	bl	_ipx_sk
	ldr	x25, [x20, #16]
	str	wzr, [x20]
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_12
LBB0_1:
Lloh0:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #60]
Lloh3:
	adrp	x8, _SOCK_ZAPPED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_ZAPPED@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_flag
	cbnz	x0, LBB0_13
; %bb.2:
Lloh6:
	adrp	x8, _MSG_DONTWAIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bic	w1, w21, w8
	and	w2, w8, w21
	add	x3, sp, #60
	mov	x0, x19
	bl	_skb_recv_datagram
	cbz	x0, LBB0_13
; %bb.3:
	mov	x21, x0
	bl	_ipx_hdr
	mov	x23, x0
	ldr	w0, [x0, #24]
	bl	_ntohs
	sub	w24, w0, #32
	sxtw	x8, w24
	cmp	x8, x22
	b.ls	LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _MSG_TRUNC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_TRUNC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	orr	w8, w9, w8
	str	w8, [x20, #8]
	mov	x24, x22
LBB0_5:
	ldr	w2, [x20, #4]
	mov	x0, x21
	mov	w1, #32
	mov	x3, x24
	bl	_skb_copy_datagram_iovec
	str	w0, [sp, #60]
	cbnz	w0, LBB0_11
; %bb.6:
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.7:
	str	x8, [x19]
LBB0_8:
	cbz	x25, LBB0_10
; %bb.9:
Lloh12:
	adrp	x8, _AF_IPX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AF_IPX@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x25, #40]
	ldr	x8, [x23, #16]
	str	x8, [x25, #32]
	ldr	w0, [x25, #24]
	ldr	w1, [x23, #8]
Lloh15:
	adrp	x8, _IPX_NODE_LEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IPX_NODE_LEN@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	bl	_memcpy
	mov	x0, x21
	bl	_IPX_SKB_CB
	ldr	x8, [x0]
	str	x8, [x25, #16]
	ldr	w8, [x23]
	str	w8, [x25, #8]
	str	xzr, [x25]
	mov	w8, #48
	str	w8, [x20]
LBB0_10:
	str	w24, [sp, #60]
LBB0_11:
	mov	x0, x19
	mov	x1, x21
	bl	_skb_free_datagram
	b	LBB0_13
LBB0_12:
	str	xzr, [sp, #40]
	str	xzr, [sp, #24]
	add	x1, sp, #8
	mov	x0, x23
	mov	w2, #48
	bl	_ipx_bind
	str	w0, [sp, #60]
	cbz	w0, LBB0_1
LBB0_13:
	ldr	w0, [sp, #60]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_SOCK_ZAPPED,4,2                ; @SOCK_ZAPPED
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.comm	_MSG_TRUNC,4,2                  ; @MSG_TRUNC
	.comm	_AF_IPX,4,2                     ; @AF_IPX
	.comm	_IPX_NODE_LEN,4,2               ; @IPX_NODE_LEN
	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
	.no_dead_strip	_ipx_recvmsg
.subsections_via_symbols
