	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_own                            ## -- Begin function own
	.p2align	4, 0x90
_own:                                   ## @own
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_S_WAIT_RELAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	leaq	-32(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_4:
	leaq	24(%r15), %rdi
	leaq	-32(%rbp), %r14
	movq	%r14, %rsi
	callq	_elapsed
	cmpl	$10000, %eax                    ## imm = 0x2710
	jl	LBB0_8
## %bb.5:
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.7:
	movq	%r15, %rdi
	callq	_send_queue
	xorl	%eax, %eax
LBB0_8:
	movl	$10000, %ecx                    ## imm = 0x2710
	subl	%eax, %ecx
	imulq	$1125899907, %rcx, %rax         ## imm = 0x431BDE83
	shrq	$50, %rax
	movl	%eax, -32(%rbp)
	imull	$-1000000, %eax, %eax           ## imm = 0xFFF0BDC0
	addl	%ecx, %eax
	movl	%eax, -28(%rbp)
	jmp	LBB0_9
LBB0_1:
	xorl	%r14d, %r14d
LBB0_9:
	leaq	-36(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_FD_ZERO
	movq	8(%r15), %rdi
	movq	%rbx, %rsi
	callq	_FD_SET
	movq	8(%r15), %rdi
	incq	%rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_select
	cmpl	$-1, %eax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_11:
	movq	8(%r15), %rdi
	leaq	-36(%rbp), %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_read_wifi
	jmp	LBB0_13
LBB0_14:
	movq	_S_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_WAIT_RELAY,8,3               ## @S_WAIT_RELAY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gettimeofday()"

	.comm	_S_START,8,3                    ## @S_START
L_.str.1:                               ## @.str.1
	.asciz	"select()"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_own                            ; -- Begin function own
	.p2align	2
_own:                                   ; @own
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _S_WAIT_RELAY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S_WAIT_RELAY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.1:
	add	x0, sp, #8
	mov	x1, #0
	bl	_gettimeofday
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_3:
	add	x0, x19, #24
	add	x1, sp, #8
	bl	_elapsed
	mov	w20, #10000
	cmp	w0, w20
	b.lt	LBB0_7
; %bb.4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_13
; %bb.5:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.6:
	mov	x0, x19
	bl	_send_queue
	mov	w0, #0
LBB0_7:
	sub	w8, w20, w0
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	umull	x9, w8, w9
	lsr	x9, x9, #50
	mov	w10, #48576
	movk	w10, #65520, lsl #16
	madd	w8, w9, w10, w8
	stp	w9, w8, [sp, #8]
	add	x20, sp, #8
	b	LBB0_9
LBB0_8:
	mov	x20, #0
LBB0_9:
	add	x0, sp, #4
	bl	_FD_ZERO
	ldr	x0, [x19, #8]
	add	x1, sp, #4
	bl	_FD_SET
	ldr	x8, [x19, #8]
	add	x0, x8, #1
	add	x1, sp, #4
	mov	x2, #0
	mov	x3, #0
	mov	x4, x20
	bl	_select
	cmn	w0, #1
	b.ne	LBB0_11
; %bb.10:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_11:
	ldr	x0, [x19, #8]
	add	x1, sp, #4
	bl	_FD_ISSET
	cbz	x0, LBB0_14
; %bb.12:
	mov	x0, x19
	bl	_read_wifi
	b	LBB0_14
LBB0_13:
Lloh7:
	adrp	x8, _S_START@GOTPAGE
Lloh8:
	ldr	x8, [x8, _S_START@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_S_WAIT_RELAY,8,3               ; @S_WAIT_RELAY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gettimeofday()"

	.comm	_S_START,8,3                    ; @S_START
l_.str.1:                               ; @.str.1
	.asciz	"select()"

.subsections_via_symbols
