	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwrap_check_connection         ## -- Begin function iwrap_check_connection
	.p2align	4, 0x90
_iwrap_check_connection:                ## @iwrap_check_connection
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	leaq	L_.str(%rip), %rdi
	callq	_iwrap_mux_send
	movl	$100, %edi
	callq	__delay_ms
	movq	_rcv_buf@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$5, %edx
	callq	_strncmp
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	$6, %edx
	callq	_strncmp
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
LBB0_2:
	movq	_connected@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LIST"

	.comm	_rcv_buf,4,2                    ## @rcv_buf
L_.str.1:                               ## @.str.1
	.asciz	"LIST "

L_.str.2:                               ## @.str.2
	.asciz	"LIST 0"

	.comm	_connected,4,2                  ## @connected
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwrap_check_connection         ; -- Begin function iwrap_check_connection
	.p2align	2
_iwrap_check_connection:                ; @iwrap_check_connection
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_iwrap_mux_send
	mov	w0, #100
	bl	__delay_ms
Lloh2:
	adrp	x19, _rcv_buf@GOTPAGE
Lloh3:
	ldr	x19, [x19, _rcv_buf@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #5
	bl	_strncmp
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #6
	bl	_strncmp
	cmp	x0, #0
	cset	w0, ne
LBB0_3:
Lloh8:
	adrp	x8, _connected@GOTPAGE
Lloh9:
	ldr	x8, [x8, _connected@GOTPAGEOFF]
Lloh10:
	str	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LIST"

	.comm	_rcv_buf,4,2                    ; @rcv_buf
l_.str.1:                               ; @.str.1
	.asciz	"LIST "

l_.str.2:                               ; @.str.2
	.asciz	"LIST 0"

	.comm	_connected,4,2                  ; @connected
.subsections_via_symbols
