	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_net_http_get                   ## -- Begin function net_http_get
	.p2align	4, 0x90
_net_http_get:                          ## @net_http_get
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_NET_HTTP_GET_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_cpu_features_get_time_usec
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_net_http_connection_new
	movq	$0, (%r13)
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_net_http_connection_iterate
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_net_http_connection_done
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_net_http_new
	testq	%rax, %rax
	je	LBB0_23
## %bb.6:
	movq	%rax, %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_net_http_update
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	testq	%r12, %r12
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	_cpu_features_get_time_usec
	subq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	cmpq	(%r12), %rax
	jle	LBB0_7
## %bb.10:
	movq	_NET_HTTP_GET_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_18
LBB0_4:
	movq	_NET_HTTP_GET_MALFORMED_URL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_19
LBB0_11:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_net_http_data
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdi
	incq	%rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:
	movq	%rax, %r15
	movq	-56(%rbp), %rdx
	movq	%rax, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movq	-56(%rbp), %rax
	movb	$0, (%r15,%rax)
	jmp	LBB0_15
LBB0_23:
	movq	_NET_HTTP_GET_CONNECT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_19
LBB0_14:
	movq	$0, -56(%rbp)
	xorl	%r15d, %r15d
LBB0_15:
	movq	%r15, (%r13)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.16:
	movq	-56(%rbp), %rax
	movq	%rax, (%rcx)
LBB0_17:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_18:
	movq	%r14, %rdi
	callq	_net_http_delete
LBB0_19:
	movq	%rbx, %rdi
	callq	_net_http_connection_free
LBB0_20:
	testq	%r12, %r12
	je	LBB0_22
## %bb.21:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_cpu_features_get_time_usec
	subq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	movq	(%r12), %rcx
	subq	%rax, %rcx
	cmovgq	%rcx, %rbx
	movq	%rbx, (%r12)
LBB0_22:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NET_HTTP_GET_OK,4,2            ## @NET_HTTP_GET_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GET"

	.comm	_NET_HTTP_GET_MALFORMED_URL,4,2 ## @NET_HTTP_GET_MALFORMED_URL
	.comm	_NET_HTTP_GET_CONNECT_ERROR,4,2 ## @NET_HTTP_GET_CONNECT_ERROR
	.comm	_NET_HTTP_GET_TIMEOUT,4,2       ## @NET_HTTP_GET_TIMEOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_net_http_get                   ; -- Begin function net_http_get
	.p2align	2
_net_http_get:                          ; @net_http_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _NET_HTTP_GET_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NET_HTTP_GET_OK@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_cpu_features_get_time_usec
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, #0
	bl	_net_http_connection_new
	str	xzr, [x24]
	cbz	x0, LBB0_19
; %bb.1:
	mov	x22, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_net_http_connection_iterate
	cbz	w0, LBB0_2
; %bb.3:
	mov	x0, x22
	bl	_net_http_connection_done
	cbz	w0, LBB0_10
; %bb.4:
	mov	x0, x22
	bl	_net_http_new
	cbz	x0, LBB0_14
; %bb.5:
	mov	x25, x0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, #0
	mov	x2, #0
	bl	_net_http_update
	cbnz	w0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x19, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_cpu_features_get_time_usec
	ldr	x8, [x19]
	sub	x9, x0, x21
	cmp	x9, x8
	b.le	LBB0_6
; %bb.9:
Lloh5:
	adrp	x8, _NET_HTTP_GET_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NET_HTTP_GET_TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	b	LBB0_17
LBB0_10:
Lloh8:
	adrp	x8, _NET_HTTP_GET_MALFORMED_URL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NET_HTTP_GET_MALFORMED_URL@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	b	LBB0_18
LBB0_11:
	add	x1, sp, #8
	mov	x0, x25
	mov	w2, #0
	bl	_net_http_data
	cbz	x0, LBB0_15
; %bb.12:
	mov	x27, x0
	ldr	x8, [sp, #8]
	add	x0, x8, #1
	bl	_malloc
	cbz	x0, LBB0_17
; %bb.13:
	mov	x26, x0
	ldr	x2, [sp, #8]
	mov	x1, x27
	bl	_memcpy
	mov	x0, x27
	bl	_free
	ldr	x8, [sp, #8]
	strb	wzr, [x26, x8]
	str	x26, [x24]
	cbnz	x23, LBB0_16
	b	LBB0_17
LBB0_14:
Lloh11:
	adrp	x8, _NET_HTTP_GET_CONNECT_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NET_HTTP_GET_CONNECT_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	b	LBB0_18
LBB0_15:
	mov	x26, #0
	str	xzr, [sp, #8]
	str	x26, [x24]
	cbz	x23, LBB0_17
LBB0_16:
	ldr	x8, [sp, #8]
	str	x8, [x23]
LBB0_17:
	mov	x0, x25
	bl	_net_http_delete
LBB0_18:
	mov	x0, x22
	bl	_net_http_connection_free
LBB0_19:
	cbz	x19, LBB0_21
; %bb.20:
	bl	_cpu_features_get_time_usec
	ldr	x8, [x19]
	sub	x9, x0, x21
	subs	x8, x8, x9
	csel	x8, x8, xzr, gt
	str	x8, [x19]
LBB0_21:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NET_HTTP_GET_OK,4,2            ; @NET_HTTP_GET_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GET"

	.comm	_NET_HTTP_GET_MALFORMED_URL,4,2 ; @NET_HTTP_GET_MALFORMED_URL
	.comm	_NET_HTTP_GET_CONNECT_ERROR,4,2 ; @NET_HTTP_GET_CONNECT_ERROR
	.comm	_NET_HTTP_GET_TIMEOUT,4,2       ; @NET_HTTP_GET_TIMEOUT
.subsections_via_symbols
