	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_via_proxy
_send_via_proxy:                        ## @send_via_proxy
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movl	4(%rdi), %edi
	callq	_strdup
	movq	%rax, %r14
	movq	%rsp, %r12
	movq	$0, -64(%rbp)
	movq	_NI_MAXSERV@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	$7, %edx
	callq	_strncmp
	leaq	7(%r14), %r12
	testq	%rax, %rax
	cmovneq	%r14, %r12
	movq	%r12, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	incq	%r13
	movb	$0, (%rax)
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_22
LBB0_3:
	xorl	%r13d, %r13d
LBB0_5:
	leaq	-144(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_PF_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -128(%rbp)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -144(%rbp)
	movl	$80, %edi
	callq	_htons
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_init_port
	movl	%eax, %edi
	callq	_ntohs
	leaq	L_.str.1(%rip), %rdx
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %ecx
	callq	_snprintf
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	leaq	-144(%rbp), %rdx
	callq	_getaddrinfo
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_free
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.8:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_krb5_eai_to_heim_errno
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_22
LBB0_6:
	movq	-56(%rbp), %rbx
	testq	%rbx, %rbx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_7
## %bb.9:
	movq	_SOCK_CLOEXEC@GOTPCREL(%rip), %r14
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	12(%rbx), %edx
	movl	16(%rbx), %edi
	movl	(%r14), %esi
	orl	(%rbx), %esi
	callq	_socket
	testq	%rax, %rax
	js	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_rk_cloexec
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	movq	%r15, %rdi
	callq	_connect
	testq	%rax, %rax
	jns	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	callq	_rk_closesocket
	jmp	LBB0_13
LBB0_14:
	movq	-56(%rbp), %rdi
	callq	_freeaddrinfo
	jmp	LBB0_21
LBB0_7:
	xorl	%edi, %edi
	callq	_freeaddrinfo
	jmp	LBB0_21
LBB0_16:
	movq	-56(%rbp), %rdi
	callq	_freeaddrinfo
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	leaq	-64(%rbp), %rdi
	callq	_asprintf
	testl	%eax, %eax
	js	LBB0_18
## %bb.17:
	movq	-64(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_18
## %bb.19:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	callq	_send_and_recv_http
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_rk_closesocket
	movq	-64(%rbp), %rdi
	callq	_free
	testl	%r14d, %r14d
	jne	LBB0_21
## %bb.20:
	xorl	%eax, %eax
	cmpq	$0, (%r13)
	jne	LBB0_22
	jmp	LBB0_21
LBB0_18:
	movq	%r15, %rdi
	callq	_close
LBB0_21:
	movl	$1, %eax
LBB0_22:
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_24
## %bb.23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_rk_INVALID_SOCKET,8,3          ## @rk_INVALID_SOCKET
	.comm	_NI_MAXSERV,4,2                 ## @NI_MAXSERV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"http://"

	.comm	_PF_UNSPEC,4,2                  ## @PF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
L_.str.1:                               ## @.str.1
	.asciz	"%d"

	.comm	_errno,4,2                      ## @errno
	.comm	_SOCK_CLOEXEC,4,2               ## @SOCK_CLOEXEC
L_.str.2:                               ## @.str.2
	.asciz	"http://%s/"

	.no_dead_strip	_send_via_proxy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_via_proxy
_send_via_proxy:                        ; @send_via_proxy
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #64
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	w0, [x0, #4]
	bl	_strdup
	mov	x23, x0
	mov	x28, sp
	stur	xzr, [x29, #-96]
Lloh3:
	adrp	x8, _NI_MAXSERV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NI_MAXSERV@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	mov	x9, x25
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x25, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
	cbz	x0, LBB0_5
; %bb.1:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w26, #7
	mov	x0, x23
	mov	w2, #7
	bl	_strncmp
	cmp	x0, #0
	csel	x8, x26, xzr, eq
	add	x26, x23, x8
	mov	x0, x26
	mov	w1, #58
	bl	_strchr
	mov	x27, x0
	cbz	x0, LBB0_3
; %bb.2:
	strb	wzr, [x27], #1
LBB0_3:
	sub	x0, x29, #128
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh10:
	adrp	x8, _PF_UNSPEC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PF_UNSPEC@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stur	w8, [x29, #-112]
	stur	w9, [x29, #-128]
	mov	w0, #80
	bl	_htons
	mov	x1, x0
	mov	x0, x27
	bl	_init_port
	bl	_ntohs
	mov	x3, x0
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x24
	mov	x1, x25
	bl	_snprintf
	sub	x2, x29, #128
	sub	x3, x29, #136
	mov	x0, x26
	mov	x1, x24
	bl	_getaddrinfo
	mov	x24, x0
	mov	x0, x23
	bl	_free
	cbz	w24, LBB0_6
; %bb.4:
Lloh18:
	adrp	x8, _errno@GOTPAGE
Lloh19:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_krb5_eai_to_heim_errno
	b	LBB0_22
LBB0_5:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	b	LBB0_22
LBB0_6:
	ldur	x24, [x29, #-136]
	cbz	x24, LBB0_13
; %bb.7:
Lloh24:
	adrp	x25, _SOCK_CLOEXEC@GOTPAGE
Lloh25:
	ldr	x25, [x25, _SOCK_CLOEXEC@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x24, [x24, #24]
	cbz	x24, LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w1, w9, w8
	ldp	w2, w0, [x24, #12]
	bl	_socket
	tbnz	x0, #63, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x23, x0
	bl	_rk_cloexec
	ldp	w2, w1, [x24, #4]
	mov	x0, x23
	bl	_connect
	tbz	x0, #63, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x23
	bl	_rk_closesocket
	b	LBB0_8
LBB0_12:
	ldur	x0, [x29, #-136]
	b	LBB0_14
LBB0_13:
	mov	x0, #0
LBB0_14:
	bl	_freeaddrinfo
	mov	w0, #1
	b	LBB0_22
LBB0_15:
	ldur	x0, [x29, #-136]
	bl	_freeaddrinfo
	ldr	w2, [x22]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	sub	x0, x29, #96
	bl	_asprintf
	tbnz	w0, #31, LBB0_20
; %bb.16:
	ldur	x2, [x29, #-96]
	cbz	x2, LBB0_20
; %bb.17:
	ldr	w1, [x21]
	mov	x0, x23
	mov	x3, x20
	mov	x4, x19
	bl	_send_and_recv_http
	mov	x20, x0
	mov	x0, x23
	bl	_rk_closesocket
	ldur	x0, [x29, #-96]
	bl	_free
	cbnz	w20, LBB0_21
; %bb.18:
	ldr	x8, [x19]
	cbz	x8, LBB0_21
; %bb.19:
	mov	w0, #0
	b	LBB0_22
LBB0_20:
	mov	x0, x23
	bl	_close
LBB0_21:
	mov	w0, #1
LBB0_22:
	mov	sp, x28
	ldur	x8, [x29, #-88]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_rk_INVALID_SOCKET,8,3          ; @rk_INVALID_SOCKET
	.comm	_NI_MAXSERV,4,2                 ; @NI_MAXSERV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"http://"

	.comm	_PF_UNSPEC,4,2                  ; @PF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
l_.str.1:                               ; @.str.1
	.asciz	"%d"

	.comm	_errno,4,2                      ; @errno
	.comm	_SOCK_CLOEXEC,4,2               ; @SOCK_CLOEXEC
l_.str.2:                               ; @.str.2
	.asciz	"http://%s/"

	.no_dead_strip	_send_via_proxy
.subsections_via_symbols
