	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function connect
_connect:                               ## @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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	%r14, %rdi
	callq	_lock_sock
	movq	(%r15), %rax
	movq	_SS_READY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_25:
	movq	%r14, %rdi
	callq	_release_sock
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_SS_LISTENING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_1
## %bb.6:
	movq	_SS_CONNECTING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_EALREADY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_8:
	movq	_SS_UNCONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.10:
	movq	(%r13), %rax
	movq	_TIPC_ADDR_MCAST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_12:
	movq	%r14, %rdi
	callq	_reject_rx_queue
	movq	%r13, -56(%rbp)
	movl	%r12d, -64(%rbp)
	leaq	-64(%rbp), %rdx
	xorl	%edi, %edi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_send_msg
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	movq	%r14, %rdi
	callq	_release_sock
	movq	8(%r14), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_skb_queue_empty
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movq	(%r15), %rax
	xorl	%esi, %esi
	movq	_SS_CONNECTING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%sil
	jmp	LBB0_17
LBB0_13:
	movl	%eax, %ebx
	jmp	LBB0_25
LBB0_15:
	movl	$1, %esi
LBB0_17:
	movl	4(%r14), %edx
	movl	%ebx, %edi
	callq	_wait_event_interruptible_timeout
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_lock_sock
	testl	%r12d, %r12d
	jle	LBB0_24
## %bb.18:
	movq	%r14, %rdi
	callq	_skb_peek
	testq	%rax, %rax
	je	LBB0_22
## %bb.19:
	movq	%rax, %rdi
	callq	_buf_msg
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_auto_connect
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.20:
	movq	%r12, %rdi
	callq	_msg_data_sz
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.21:
	movq	%r14, %rdi
	callq	_advance_rx_queue
	jmp	LBB0_25
LBB0_24:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%r12d, %r12d
	cmovnel	%r12d, %ebx
	movq	_SS_DISCONNECTING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	jmp	LBB0_25
LBB0_22:
	movq	(%r15), %rax
	movq	_SS_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
LBB0_9:
	movq	_EISCONN@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_23:
	movq	_ECONNREFUSED@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_SS_READY,8,3                   ## @SS_READY
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
	.comm	_SS_LISTENING,8,3               ## @SS_LISTENING
	.comm	_SS_CONNECTING,8,3              ## @SS_CONNECTING
	.comm	_EALREADY,4,2                   ## @EALREADY
	.comm	_SS_UNCONNECTED,8,3             ## @SS_UNCONNECTED
	.comm	_EISCONN,4,2                    ## @EISCONN
	.comm	_TIPC_ADDR_MCAST,8,3            ## @TIPC_ADDR_MCAST
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SS_CONNECTED,8,3               ## @SS_CONNECTED
	.comm	_ECONNREFUSED,4,2               ## @ECONNREFUSED
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_SS_DISCONNECTING,8,3           ## @SS_DISCONNECTING
	.no_dead_strip	_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function connect
_connect:                               ; @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, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	mov	x0, x19
	bl	_lock_sock
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _SS_READY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SS_READY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w23
	b.eq	LBB0_6
; %bb.3:
Lloh8:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x19
	bl	_release_sock
	mov	x0, x21
	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
LBB0_6:
Lloh10:
	adrp	x9, _SS_LISTENING@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SS_LISTENING@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_1
; %bb.7:
Lloh13:
	adrp	x23, _SS_CONNECTING@GOTPAGE
Lloh14:
	ldr	x23, [x23, _SS_CONNECTING@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
Lloh15:
	adrp	x8, _EALREADY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EALREADY@GOTPAGEOFF]
	b	LBB0_4
LBB0_9:
Lloh17:
	adrp	x9, _SS_UNCONNECTED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SS_UNCONNECTED@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.10:
	ldr	x8, [x22]
Lloh20:
	adrp	x9, _TIPC_ADDR_MCAST@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TIPC_ADDR_MCAST@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_12:
	mov	x0, x19
	bl	_reject_rx_queue
	str	x22, [sp, #16]
	str	w21, [sp, #8]
	add	x2, sp, #8
	mov	x0, #0
	mov	x1, x20
	mov	w3, #0
	bl	_send_msg
	tbnz	w0, #31, LBB0_15
; %bb.13:
	mov	x0, x19
	bl	_release_sock
	ldr	x8, [x19, #8]
	ldr	w21, [x8]
	mov	x0, x19
	bl	_skb_queue_empty
	cbz	w0, LBB0_16
; %bb.14:
	ldr	x8, [x20]
	ldr	x9, [x23]
	cmp	x8, x9
	cset	w1, ne
	b	LBB0_17
LBB0_15:
	mov	x21, x0
	b	LBB0_5
LBB0_16:
	mov	w1, #1
LBB0_17:
	ldr	w2, [x19, #4]
	mov	x0, x21
	bl	_wait_event_interruptible_timeout
	mov	x21, x0
	mov	x0, x19
	bl	_lock_sock
	cmp	w21, #1
	b.lt	LBB0_22
; %bb.18:
	mov	x0, x19
	bl	_skb_peek
	cbz	x0, LBB0_23
; %bb.19:
	bl	_buf_msg
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_auto_connect
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.20:
	mov	x0, x22
	bl	_msg_data_sz
	cbz	w0, LBB0_26
; %bb.21:
	mov	w21, #0
	b	LBB0_5
LBB0_22:
Lloh25:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w21, #0
	csneg	w21, w21, w8, ne
Lloh28:
	adrp	x8, _SS_DISCONNECTING@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SS_DISCONNECTING@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	str	x8, [x20]
	b	LBB0_5
LBB0_23:
	ldr	x8, [x20]
Lloh31:
	adrp	x9, _SS_CONNECTED@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SS_CONNECTED@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_25
LBB0_24:
Lloh34:
	adrp	x8, _EISCONN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EISCONN@GOTPAGEOFF]
	b	LBB0_4
LBB0_25:
Lloh36:
	adrp	x8, _ECONNREFUSED@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ECONNREFUSED@GOTPAGEOFF]
	b	LBB0_4
LBB0_26:
	mov	x0, x19
	bl	_advance_rx_queue
	mov	w21, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_SS_READY,8,3                   ; @SS_READY
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
	.comm	_SS_LISTENING,8,3               ; @SS_LISTENING
	.comm	_SS_CONNECTING,8,3              ; @SS_CONNECTING
	.comm	_EALREADY,4,2                   ; @EALREADY
	.comm	_SS_UNCONNECTED,8,3             ; @SS_UNCONNECTED
	.comm	_EISCONN,4,2                    ; @EISCONN
	.comm	_TIPC_ADDR_MCAST,8,3            ; @TIPC_ADDR_MCAST
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SS_CONNECTED,8,3               ; @SS_CONNECTED
	.comm	_ECONNREFUSED,4,2               ; @ECONNREFUSED
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_SS_DISCONNECTING,8,3           ; @SS_DISCONNECTING
	.no_dead_strip	_connect
.subsections_via_symbols
