	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_httpread_create                ## -- Begin function httpread_create
	.p2align	4, 0x90
_httpread_create:                       ## @httpread_create
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movq	%rsi, %r14
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	$32, %edi
	callq	_os_zalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
	movq	%r14, 8(%rbx)
	movq	%r13, 24(%rbx)
	movl	%r12d, 16(%rbx)
	movl	%r15d, 20(%rbx)
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.2:
	movq	_httpread_timeout_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_eloop_register_timeout
	testq	%rax, %rax
	jne	LBB0_4
LBB0_3:
	movq	_EVENT_TYPE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_httpread_read_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_eloop_register_sock
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_httpread_destroy
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_httpread_timeout_handler,4,2   ## @httpread_timeout_handler
	.comm	_EVENT_TYPE_READ,4,2            ## @EVENT_TYPE_READ
	.comm	_httpread_read_handler,4,2      ## @httpread_read_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_httpread_create                ; -- Begin function httpread_create
	.p2align	2
_httpread_create:                       ; @httpread_create
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
	mov	w0, #32
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	str	w20, [x19]
	str	x24, [x19, #8]
	str	x23, [x19, #24]
	stp	w22, w21, [x19, #16]
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _httpread_timeout_handler@GOTPAGE
Lloh1:
	ldr	x8, [x8, _httpread_timeout_handler@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #0
	mov	x3, #0
	mov	x4, x19
	bl	_eloop_register_timeout
	cbnz	x0, LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _EVENT_TYPE_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVENT_TYPE_READ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _httpread_read_handler@GOTPAGE
Lloh7:
	ldr	x8, [x8, _httpread_read_handler@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, #0
	mov	x4, x19
	bl	_eloop_register_sock
	cbz	x0, LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_httpread_destroy
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_httpread_timeout_handler,4,2   ; @httpread_timeout_handler
	.comm	_EVENT_TYPE_READ,4,2            ; @EVENT_TYPE_READ
	.comm	_httpread_read_handler,4,2      ; @httpread_read_handler
.subsections_via_symbols
