	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipx_sendmsg
_ipx_sendmsg:                           ## @ipx_sendmsg
	.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
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	(%rsi), %r15
	movq	%r15, %rdi
	callq	_ipx_sk
	movq	%rax, %rcx
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	cmpq	$65530, %r14                    ## imm = 0xFFFA
	ja	LBB0_12
## %bb.1:
	movl	(%rbx), %esi
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rdi
	movq	_MSG_CMSG_COMPAT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rdi), %edx
	notl	%edx
	andl	%esi, %edx
	jne	LBB0_12
## %bb.2:
	movq	16(%rbx), %r13
	testq	%r13, %r13
	je	LBB0_8
## %bb.3:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, 40(%rcx)
	je	LBB0_4
## %bb.6:
	cmpl	$40, 4(%rbx)
	jb	LBB0_12
LBB0_7:
	movq	%rdi, %r12
	movq	(%r13), %rcx
	movq	_AF_IPX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_11
	jmp	LBB0_12
LBB0_8:
	movq	(%r15), %rax
	movq	_TCP_ESTABLISHED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_9
## %bb.10:
	movq	%rdi, %r12
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	_AF_IPX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)
	movl	24(%rcx), %eax
	movl	%eax, -56(%rbp)
	movups	8(%rcx), %xmm0
	movups	%xmm0, -72(%rbp)
	movl	(%rcx), %esi
	movq	_IPX_NODE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	leaq	-88(%rbp), %r13
LBB0_11:
	movl	8(%rbx), %edx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	andl	(%r12), %r8d
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rcx
	callq	_ipxrtr_route_packet
	testl	%eax, %eax
	cmovsl	%eax, %r14d
	movl	%r14d, %eax
	jmp	LBB0_12
LBB0_4:
	xorps	%xmm0, %xmm0
	movups	%xmm0, -72(%rbp)
	leaq	-88(%rbp), %rsi
	movq	%r12, %rdi
	movl	$40, %edx
	callq	_ipx_bind
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	xorl	%eax, %eax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rdi
	cmpl	$40, 4(%rbx)
	jae	LBB0_7
	jmp	LBB0_12
LBB0_9:
	movq	_ENOTCONN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.comm	_MSG_CMSG_COMPAT,4,2            ## @MSG_CMSG_COMPAT
	.comm	_AF_IPX,8,3                     ## @AF_IPX
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_TCP_ESTABLISHED,8,3            ## @TCP_ESTABLISHED
	.comm	_IPX_NODE_LEN,4,2               ## @IPX_NODE_LEN
	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
	.no_dead_strip	_ipx_sendmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipx_sendmsg
_ipx_sendmsg:                           ; @ipx_sendmsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x3
	mov	x21, x2
	mov	x23, x1
	ldr	x20, [x1]
	mov	x0, x20
	bl	_ipx_sk
	mov	x8, x0
Lloh0:
	adrp	x26, _EINVAL@GOTPAGE
Lloh1:
	ldr	x26, [x26, _EINVAL@GOTPAGEOFF]
	ldr	w9, [x26]
	neg	w0, w9
	mov	w9, #65530
	cmp	x19, x9
	b.hi	LBB0_12
; %bb.1:
	ldr	w24, [x21]
Lloh2:
	adrp	x25, _MSG_DONTWAIT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MSG_DONTWAIT@GOTPAGEOFF]
	ldr	w9, [x25]
Lloh4:
	adrp	x10, _MSG_CMSG_COMPAT@GOTPAGE
Lloh5:
	ldr	x10, [x10, _MSG_CMSG_COMPAT@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w9, w24, w9
	cbnz	w9, LBB0_12
; %bb.2:
	ldr	x22, [x21, #16]
	cbz	x22, LBB0_6
; %bb.3:
	ldr	w8, [x8, #40]
	cbz	w8, LBB0_9
LBB0_4:
	ldr	w8, [x21, #4]
	cmp	w8, #40
	b.lo	LBB0_12
; %bb.5:
	ldr	x8, [x22]
Lloh7:
	adrp	x9, _AF_IPX@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AF_IPX@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
	b	LBB0_12
LBB0_6:
	ldr	x9, [x20]
Lloh10:
	adrp	x10, _TCP_ESTABLISHED@GOTPAGE
Lloh11:
	ldr	x10, [x10, _TCP_ESTABLISHED@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_11
; %bb.7:
Lloh13:
	adrp	x9, _AF_IPX@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AF_IPX@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	str	x9, [sp, #8]
	ldr	w9, [x8, #24]
	str	w9, [sp, #40]
	ldur	q0, [x8, #8]
	stur	q0, [sp, #24]
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _IPX_NODE_LEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IPX_NODE_LEN@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	bl	_memcpy
	add	x22, sp, #8
LBB0_8:
	ldr	w2, [x21, #8]
	ldr	w8, [x25]
	and	w4, w8, w24
	mov	x0, x20
	mov	x1, x22
	mov	x3, x19
	bl	_ipxrtr_route_packet
	cmp	w0, #0
	csel	w0, w0, w19, lt
	b	LBB0_12
LBB0_9:
	stp	xzr, xzr, [sp, #24]
	add	x1, sp, #8
	mov	x0, x23
	mov	w2, #40
	bl	_ipx_bind
	cbnz	w0, LBB0_12
; %bb.10:
	ldr	w8, [x26]
	neg	w0, w8
	b	LBB0_4
LBB0_11:
Lloh19:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.comm	_MSG_CMSG_COMPAT,4,2            ; @MSG_CMSG_COMPAT
	.comm	_AF_IPX,8,3                     ; @AF_IPX
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_TCP_ESTABLISHED,8,3            ; @TCP_ESTABLISHED
	.comm	_IPX_NODE_LEN,4,2               ; @IPX_NODE_LEN
	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
	.no_dead_strip	_ipx_sendmsg
.subsections_via_symbols
