	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function net_http_new_socket
_net_http_new_socket:                   ## @net_http_new_socket
	.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, %r14
	movq	$0, -32(%rbp)
	movl	16(%rdi), %edx
	movl	20(%rdi), %esi
	movq	_SOCKET_TYPE_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %rdi
	callq	_socket_init
	movl	%eax, %ebx
	movq	-32(%rbp), %rsi
	movq	%rsi, -40(%rbp)
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	leaq	-40(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movl	$1, %edx
	callq	_socket_connect
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_socket_nonblock
	testq	%rax, %rax
	jne	LBB0_6
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_socket_close
	movq	%r15, %rdi
	callq	_socket_next
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-40(%rbp), %rsi
	jmp	LBB0_2
LBB0_6:
	movq	-32(%rbp), %rsi
LBB0_7:
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movq	%rsi, %rdi
	callq	_freeaddrinfo_retro
LBB0_9:
	movl	%ebx, (%r14)
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCKET_TYPE_STREAM,4,2         ## @SOCKET_TYPE_STREAM
	.no_dead_strip	_net_http_new_socket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function net_http_new_socket
_net_http_new_socket:                   ; @net_http_new_socket
	.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
	str	xzr, [sp, #8]
	ldp	w2, w1, [x0, #16]
Lloh0:
	adrp	x8, _SOCKET_TYPE_STREAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCKET_TYPE_STREAM@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x0, sp, #8
	bl	_socket_init
	mov	x20, x0
	ldr	x1, [sp, #8]
	str	x1, [sp]
	tbnz	w0, #31, LBB0_6
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w2, #1
	bl	_socket_connect
	tbnz	w0, #31, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_socket_nonblock
	cbnz	x0, LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_socket_close
	mov	x0, sp
	bl	_socket_next
	mov	x20, x0
	tbnz	w0, #31, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x1, [sp]
	b	LBB0_1
LBB0_5:
	ldr	x1, [sp, #8]
LBB0_6:
	cbz	x1, LBB0_8
; %bb.7:
	mov	x0, x1
	bl	_freeaddrinfo_retro
LBB0_8:
	str	w20, [x19]
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCKET_TYPE_STREAM,4,2         ; @SOCKET_TYPE_STREAM
	.no_dead_strip	_net_http_new_socket
.subsections_via_symbols
