	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_from_usocketsource
_get_from_usocketsource:                ## @get_from_usocketsource
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	cmpq	$0, 24(%rdi)
	jne	LBB0_33
## %bb.1:
	movq	%rdi, %rbx
	leal	7(%rsi), %ecx
	testl	%esi, %esi
	cmovnsl	%esi, %ecx
	sarl	$3, %ecx
	xorl	%edi, %edi
	testb	$7, %sil
	setne	%dil
	addl	%ecx, %edi
	jle	LBB0_33
## %bb.2:
	movq	32(%rbx), %rax
	movq	%rax, -208(%rbp)                ## 8-byte Spill
	movl	(%rbx), %r15d
	movq	8(%rbx), %rax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	leaq	LJTI0_0(%rip), %r12
	leaq	-176(%rbp), %r13
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movl	%edi, -188(%rbp)                ## 4-byte Spill
	movl	$128, %esi
	callq	_ISC_MIN
	movl	%eax, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	$130, 16(%rbx)
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	16(%rbx), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_31
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movslq	(%r12,%rax,4), %rax
	addq	%r12, %rax
	jmpq	*%rax
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=2
	movb	$1, -176(%rbp)
	movb	%r14b, -175(%rbp)
	movl	%r15d, %edi
	movq	%r13, %rsi
	movl	$2, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sendto
	testl	%eax, %eax
	js	LBB0_7
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$1, %eax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=2
	xorl	%edi, %edi
	cmpl	$2, %eax
	sete	%dil
	callq	_INSIST
	movl	$128, 16(%rbx)
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	%r15d, %edi
	movq	%r13, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_recvfrom
	cmpl	$1, %eax
	je	LBB0_30
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_usleep
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movb	%r14b, -176(%rbp)
	movl	%r15d, %edi
	movq	%r13, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sendto
	testl	%eax, %eax
	js	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=2
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_INSIST
	movl	$128, 16(%rbx)
	jmp	LBB0_4
LBB0_30:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$129, 16(%rbx)
	movzbl	-176(%rbp), %eax
	movq	%rax, 8(%rbx)
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	cmpq	$128, %rax
	ja	LBB0_31
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-200(%rbp), %rdx                ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_22
## %bb.25:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %edi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	movq	%rdx, %r14
	callq	_recv
	movq	%r14, %rdx
	testl	%eax, %eax
	jns	LBB0_23
	jmp	LBB0_26
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r14d
	cmpq	%r14, %rdx
	jne	LBB0_24
## %bb.27:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$132, 16(%rbx)
	jmp	LBB0_28
LBB0_24:                                ##   in Loop: Header=BB0_3 Depth=1
	subq	%r14, 8(%rbx)
LBB0_28:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%r14, %r14
	je	LBB0_32
## %bb.29:                              ##   in Loop: Header=BB0_3 Depth=1
	leal	(,%r14,8), %ecx
	movq	-208(%rbp), %rdi                ## 8-byte Reload
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_entropypool_adddata
	movq	-184(%rbp), %rax                ## 8-byte Reload
	leal	(%rax,%r14,8), %eax
	movl	-188(%rbp), %edi                ## 4-byte Reload
	subl	%r14d, %edi
	jg	LBB0_3
	jmp	LBB0_33
LBB0_7:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_32
## %bb.8:
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_32
## %bb.9:
	movq	_ECONNRESET@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_26:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_19:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_32
## %bb.20:
	movq	_EINTR@GOTPCREL(%rip), %rcx
LBB0_10:
	cmpl	(%rcx), %eax
	je	LBB0_32
LBB0_31:
	movl	%r15d, %edi
	callq	_close
	movq	_ISC_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	_isc_usocketsource_disconnected@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	$-1, (%rbx)
LBB0_32:
	movq	-184(%rbp), %rax                ## 8-byte Reload
LBB0_33:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_35
## %bb.34:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_21
	.long	L0_0_set_6
	.long	L0_0_set_12
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_ISC_TRUE,8,3                   ## @ISC_TRUE
	.comm	_isc_usocketsource_disconnected,4,2 ## @isc_usocketsource_disconnected
	.no_dead_strip	_get_from_usocketsource
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_from_usocketsource
_get_from_usocketsource:                ; @get_from_usocketsource
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x28, x27, [sp, #160]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_4
LBB0_1:
	mov	w19, #0
LBB0_2:
	ldur	x8, [x29, #-96]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.3:
	mov	x0, x19
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
LBB0_4:
	add	w8, w1, #7
	cmp	w1, #0
	csel	w8, w8, w1, lt
	asr	w8, w8, #3
	tst	w1, #0x7
	cinc	w22, w8, ne
	cmp	w22, #1
	b.lt	LBB0_1
; %bb.5:
	mov	x20, x0
	mov	w19, #0
	ldr	x9, [x0, #32]
	ldr	w21, [x0]
	mov	w26, #128
	mov	w23, #1
Lloh6:
	adrp	x24, lJTI0_0@PAGE
Lloh7:
	add	x24, x24, lJTI0_0@PAGEOFF
	ldr	x8, [x0, #8]
	stp	x9, x8, [sp]                    ; 16-byte Folded Spill
Lloh8:
	adrp	x28, _errno@GOTPAGE
Lloh9:
	ldr	x28, [x28, _errno@GOTPAGEOFF]
Lloh10:
	adrp	x27, _EAGAIN@GOTPAGE
Lloh11:
	ldr	x27, [x27, _EAGAIN@GOTPAGEOFF]
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x0, x22
	mov	w1, #128
	bl	_ISC_MIN
	mov	x25, x0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	w8, #130
	str	w8, [x20, #16]
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x20, #16]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_30
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	adr	x9, LBB0_10
	ldrb	w10, [x24, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=2
	strb	w23, [sp, #16]
	strb	w25, [sp, #17]
	add	x1, sp, #16
	mov	x0, x21
	mov	w2, #2
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_sendto
	tbnz	w0, #31, LBB0_27
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	w0, #1
	b.eq	LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	w0, #2
	cset	w0, eq
	bl	_INSIST
	str	w26, [x20, #16]
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x1, sp, #16
	mov	x0, x21
	mov	w2, #1
	mov	w3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_recvfrom
	cmp	w0, #1
	b.eq	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x28]
	ldr	w9, [x27]
	cmp	w8, w9
	b.ne	LBB0_29
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w0, #1000
	bl	_usleep
	b	LBB0_8
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=2
	strb	w25, [sp, #16]
	add	x1, sp, #16
	mov	x0, x21
	mov	w2, #1
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_sendto
	tbnz	w0, #31, LBB0_27
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	w0, #1
	cset	w0, eq
	bl	_INSIST
	str	w26, [x20, #16]
	b	LBB0_8
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #129
	str	w8, [x20, #16]
	ldrb	w8, [sp, #16]
	str	x8, [x20, #8]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	cmp	x8, #128
	b.hi	LBB0_30
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	cbz	x26, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #16
	mov	x0, x21
	mov	x2, x26
	mov	w3, #0
	bl	_recv
	tbz	w0, #31, LBB0_22
	b	LBB0_28
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #0
LBB0_22:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w25, w0
	cmp	x26, x25
	b.ne	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #132
	str	w8, [x20, #16]
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #8]
	sub	x8, x8, x25
	str	x8, [x20, #8]
LBB0_25:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w25, LBB0_2
; %bb.26:                               ;   in Loop: Header=BB0_6 Depth=1
	lsl	w26, w25, #3
	add	x1, sp, #16
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x2, x25
	mov	x3, x26
	bl	_entropypool_adddata
	add	w19, w26, w19
	mov	w26, #128
	sub	w22, w22, w25
	cmp	w22, #0
	b.gt	LBB0_6
	b	LBB0_2
LBB0_27:
	ldr	w8, [x28]
Lloh12:
	adrp	x9, _EWOULDBLOCK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EWOULDBLOCK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _EINTR@GOTPAGE
Lloh16:
	ldr	x10, [x10, _EINTR@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
Lloh18:
	adrp	x11, _ECONNRESET@GOTPAGE
Lloh19:
	ldr	x11, [x11, _ECONNRESET@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	ccmp	w8, w11, #4, ne
	b.eq	LBB0_2
	b	LBB0_30
LBB0_28:
	ldr	w8, [x28]
LBB0_29:
Lloh21:
	adrp	x9, _EWOULDBLOCK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _EWOULDBLOCK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _EINTR@GOTPAGE
Lloh25:
	ldr	x10, [x10, _EINTR@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.eq	LBB0_2
LBB0_30:
	mov	x0, x21
	bl	_close
Lloh27:
	adrp	x8, _ISC_TRUE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ISC_TRUE@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	str	x8, [x20, #24]
Lloh30:
	adrp	x8, _isc_usocketsource_disconnected@GOTPAGE
Lloh31:
	ldr	x8, [x8, _isc_usocketsource_disconnected@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	mov	w8, #-1
	str	w8, [x20]
	b	LBB0_2
LBB0_31:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_19-LBB0_10)>>2
	.byte	(LBB0_16-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_ISC_TRUE,8,3                   ; @ISC_TRUE
	.comm	_isc_usocketsource_disconnected,4,2 ; @isc_usocketsource_disconnected
	.no_dead_strip	_get_from_usocketsource
.subsections_via_symbols
