	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipx_connect
_ipx_connect:                           ## @ipx_connect
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_ipx_sk
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	subl	(%rcx), %r13d
	movq	%rax, %r12
	movq	_TCP_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_SS_UNCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	cmpl	$24, %r15d
	jne	LBB0_12
## %bb.1:
	cmpl	$0, 40(%r12)
	je	LBB0_2
LBB0_3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rdi
	callq	_ipxrtr_lookup
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r15
	movq	16(%rbx), %rdx
	jmp	LBB0_8
LBB0_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, -72(%rbp)
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	movl	$24, %edx
	callq	_ipx_bind
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_3
LBB0_5:
	movq	_ENETUNREACH@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%r13d, %r13d
	subl	(%rcx), %r13d
	cmpq	$0, 16(%rbx)
	jne	LBB0_12
## %bb.6:
	movq	_ipx_primary_net@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_12
## %bb.7:
	movq	%rax, %r15
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_8:
	movq	%rdx, 24(%r12)
	movq	8(%rbx), %rax
	movq	%rax, 16(%r12)
	movl	8(%r12), %edi
	movl	4(%rbx), %esi
	movq	_IPX_NODE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	(%rbx), %eax
	movl	%eax, (%r12)
	movq	(%r14), %rax
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	_SS_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_TCP_ESTABLISHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_10:
	xorl	%r13d, %r13d
	testq	%r15, %r15
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_ipxrtr_put
LBB0_12:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TCP_CLOSE,4,2                  ## @TCP_CLOSE
	.comm	_SS_UNCONNECTED,4,2             ## @SS_UNCONNECTED
	.comm	_ENETUNREACH,4,2                ## @ENETUNREACH
	.comm	_ipx_primary_net,8,3            ## @ipx_primary_net
	.comm	_IPX_NODE_LEN,4,2               ## @IPX_NODE_LEN
	.comm	_SOCK_DGRAM,8,3                 ## @SOCK_DGRAM
	.comm	_SS_CONNECTED,4,2               ## @SS_CONNECTED
	.comm	_TCP_ESTABLISHED,4,2            ## @TCP_ESTABLISHED
	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
	.no_dead_strip	_ipx_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipx_connect
_ipx_connect:                           ; @ipx_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #16]
	mov	x0, x19
	bl	_ipx_sk
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TCP_CLOSE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TCP_CLOSE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [x19]
Lloh6:
	adrp	x9, _SS_UNCONNECTED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SS_UNCONNECTED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [x20, #8]
	cmp	w23, #24
	b.ne	LBB0_4
; %bb.1:
	mov	x22, x0
	ldr	w8, [x0, #40]
	cbz	w8, LBB0_5
LBB0_2:
	ldr	x0, [x21, #16]
	bl	_ipxrtr_lookup
	mov	x23, x0
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x21, #16]
	b	LBB0_9
LBB0_4:
	neg	w0, w8
	b	LBB0_14
LBB0_5:
	stp	xzr, xzr, [sp, #16]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #24
	bl	_ipx_bind
	cbnz	w0, LBB0_14
	b	LBB0_2
LBB0_6:
Lloh9:
	adrp	x8, _ENETUNREACH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENETUNREACH@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_14
; %bb.7:
Lloh12:
	adrp	x8, _ipx_primary_net@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ipx_primary_net@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.8:
	mov	x8, #0
LBB0_9:
	str	x8, [x22, #24]
	ldr	x8, [x21, #8]
	str	x8, [x22, #16]
	ldr	w0, [x22, #8]
	ldr	w1, [x21, #4]
Lloh15:
	adrp	x8, _IPX_NODE_LEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IPX_NODE_LEN@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	w8, [x21]
	str	w8, [x22]
	ldr	x8, [x20]
Lloh18:
	adrp	x9, _SOCK_DGRAM@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SOCK_DGRAM@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
Lloh21:
	adrp	x8, _SS_CONNECTED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SS_CONNECTED@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x20, #8]
Lloh24:
	adrp	x8, _TCP_ESTABLISHED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TCP_ESTABLISHED@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_11:
	cbz	x23, LBB0_13
; %bb.12:
	mov	x0, x23
	bl	_ipxrtr_put
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TCP_CLOSE,4,2                  ; @TCP_CLOSE
	.comm	_SS_UNCONNECTED,4,2             ; @SS_UNCONNECTED
	.comm	_ENETUNREACH,4,2                ; @ENETUNREACH
	.comm	_ipx_primary_net,8,3            ; @ipx_primary_net
	.comm	_IPX_NODE_LEN,4,2               ; @IPX_NODE_LEN
	.comm	_SOCK_DGRAM,8,3                 ; @SOCK_DGRAM
	.comm	_SS_CONNECTED,4,2               ; @SS_CONNECTED
	.comm	_TCP_ESTABLISHED,4,2            ; @TCP_ESTABLISHED
	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
	.no_dead_strip	_ipx_connect
.subsections_via_symbols
