	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stateless_connect
_stateless_connect:                     ## @stateless_connect
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	xorl	%esi, %esi
	callq	_discover_refs
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	_protocol_v2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movl	$10, %edi
	callq	_putchar
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	%rbx, -176(%rbp)
	movq	_url@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_xstrfmt
	movq	%rax, -120(%rbp)
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_xstrfmt
	movq	%rax, -128(%rbp)
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_xstrfmt
	movq	%rax, -136(%rbp)
	movq	(%r14), %rdi
	leaq	-48(%rbp), %rsi
	callq	_get_protocol_http_header
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
	movq	%rax, -144(%rbp)
	jmp	LBB0_5
LBB0_1:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movl	$-1, %eax
	jmp	LBB0_12
LBB0_4:
	movq	$0, -144(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
LBB0_5:
	movq	_http_post_buffer@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_xmalloc
	movq	%rax, -152(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -64(%rbp)
	movq	$0, -112(%rbp)
	movq	$0, -72(%rbp)
	movl	$1, -168(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -88(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -164(%rbp)
	movups	%xmm0, -104(%rbp)
	movl	8(%r14), %edx
	movl	12(%r14), %esi
	movl	$1, %edi
	callq	_write_or_die
	leaq	-176(%rbp), %rbx
	leaq	-184(%rbp), %r14
	leaq	-52(%rbp), %r15
	movq	_PACKET_READ_EOF@GOTPCREL(%rip), %r12
	movq	_PACKET_READ_FLUSH@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_PACKET_READ_GENTLE_ON_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_rpc_read_from_out
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.5(%rip), %rdi
	callq	_BUG
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	-52(%rbp), %eax
	cmpl	(%r12), %eax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%esi, %esi
	cmpl	(%r13), %eax
	sete	%sil
	movq	%rbx, %rdi
	callq	_post_rpc
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	$0, -112(%rbp)
	jmp	LBB0_6
LBB0_11:
	movq	-120(%rbp), %rdi
	callq	_free
	movq	-128(%rbp), %rdi
	callq	_free
	movq	-136(%rbp), %rdi
	callq	_free
	movq	-144(%rbp), %rdi
	callq	_free
	movq	-152(%rbp), %rdi
	callq	_free
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	xorl	%eax, %eax
LBB0_12:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_protocol_v2,8,3                ## @protocol_v2
	.comm	_stdout,4,2                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"%s%s"

	.comm	_url,4,2                        ## @url
L_.str.3:                               ## @.str.3
	.asciz	"Content-Type: application/x-%s-request"

L_.str.4:                               ## @.str.4
	.asciz	"Accept: application/x-%s-result"

	.comm	_http_post_buffer,4,2           ## @http_post_buffer
	.comm	_PACKET_READ_GENTLE_ON_EOF,4,2  ## @PACKET_READ_GENTLE_ON_EOF
L_.str.5:                               ## @.str.5
	.asciz	"The entire rpc->buf should be larger than LARGE_PACKET_MAX"

	.comm	_PACKET_READ_EOF,4,2            ## @PACKET_READ_EOF
	.comm	_PACKET_READ_FLUSH,4,2          ## @PACKET_READ_FLUSH
L_str:                                  ## @str
	.asciz	"fallback"

	.no_dead_strip	_stateless_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stateless_connect
_stateless_connect:                     ; @stateless_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	mov	w1, #0
	bl	_discover_refs
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _protocol_v2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _protocol_v2@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	mov	w0, #10
	bl	_putchar
Lloh6:
	adrp	x8, _stdout@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_fflush
	str	x20, [sp, #40]
Lloh9:
	adrp	x8, _url@GOTPAGE
Lloh10:
	ldr	x8, [x8, _url@GOTPAGEOFF]
Lloh11:
	ldrsw	x1, [x8]
	str	x20, [sp]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_xstrfmt
	str	x0, [sp, #96]
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_xstrfmt
	str	x0, [sp, #88]
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	bl	_xstrfmt
	str	x0, [sp, #80]
	ldr	x0, [x19]
	add	x1, sp, #32
	bl	_get_protocol_http_header
	cbz	x0, LBB0_4
; %bb.2:
	add	x0, sp, #32
	mov	x1, #0
	bl	_strbuf_detach
	str	x0, [sp, #72]
	b	LBB0_5
LBB0_3:
Lloh18:
	adrp	x0, l_str@PAGE
Lloh19:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh20:
	adrp	x8, _stdout@GOTPAGE
Lloh21:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_fflush
	mov	w0, #-1
	b	LBB0_12
LBB0_4:
	str	xzr, [sp, #72]
	add	x0, sp, #32
	bl	_strbuf_release
LBB0_5:
Lloh23:
	adrp	x20, _http_post_buffer@GOTPAGE
Lloh24:
	ldr	x20, [x20, _http_post_buffer@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_xmalloc
	ldr	w8, [x20]
	str	w8, [sp, #152]
	str	x0, [sp, #64]
	stp	xzr, xzr, [sp, #104]
	stp	xzr, xzr, [sp, #136]
	stp	xzr, xzr, [sp, #120]
	movi.2s	v0, #1
	str	d0, [sp, #48]
	mov	w8, #1
	str	w8, [sp, #56]
	ldp	w2, w1, [x19, #8]
	mov	w0, #1
	bl	_write_or_die
Lloh25:
	adrp	x20, _PACKET_READ_GENTLE_ON_EOF@GOTPAGE
Lloh26:
	ldr	x20, [x20, _PACKET_READ_GENTLE_ON_EOF@GOTPAGEOFF]
Lloh27:
	adrp	x19, l_.str.5@PAGE
Lloh28:
	add	x19, x19, l_.str.5@PAGEOFF
Lloh29:
	adrp	x21, _PACKET_READ_EOF@GOTPAGE
Lloh30:
	ldr	x21, [x21, _PACKET_READ_EOF@GOTPAGEOFF]
Lloh31:
	adrp	x22, _PACKET_READ_FLUSH@GOTPAGE
Lloh32:
	ldr	x22, [x22, _PACKET_READ_FLUSH@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	add	x0, sp, #40
	add	x2, sp, #24
	add	x3, sp, #20
	bl	_rpc_read_from_out
	cbnz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_BUG
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #20]
	ldr	w9, [x21]
	cmp	w8, w9
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x22]
	cmp	w8, w9
	cset	w1, eq
	add	x0, sp, #40
	bl	_post_rpc
	cbnz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [sp, #104]
	b	LBB0_6
LBB0_11:
	ldr	x0, [sp, #96]
	bl	_free
	ldr	x0, [sp, #88]
	bl	_free
	ldr	x0, [sp, #80]
	bl	_free
	ldr	x0, [sp, #72]
	bl	_free
	ldr	x0, [sp, #64]
	bl	_free
	add	x0, sp, #32
	bl	_strbuf_release
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_protocol_v2,8,3                ; @protocol_v2
	.comm	_stdout,4,2                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"%s%s"

	.comm	_url,4,2                        ; @url
l_.str.3:                               ; @.str.3
	.asciz	"Content-Type: application/x-%s-request"

l_.str.4:                               ; @.str.4
	.asciz	"Accept: application/x-%s-result"

	.comm	_http_post_buffer,4,2           ; @http_post_buffer
	.comm	_PACKET_READ_GENTLE_ON_EOF,4,2  ; @PACKET_READ_GENTLE_ON_EOF
l_.str.5:                               ; @.str.5
	.asciz	"The entire rpc->buf should be larger than LARGE_PACKET_MAX"

	.comm	_PACKET_READ_EOF,4,2            ; @PACKET_READ_EOF
	.comm	_PACKET_READ_FLUSH,4,2          ; @PACKET_READ_FLUSH
l_str:                                  ; @str
	.asciz	"fallback"

	.no_dead_strip	_stateless_connect
.subsections_via_symbols
