	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_outnet_comm_point_for_http     ## -- Begin function outnet_comm_point_for_http
	.p2align	4, 0x90
_outnet_comm_point_for_http:            ## @outnet_comm_point_for_http
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %ebx
	movq	%rcx, %r14
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	8(%rdi), %edx
	movq	%rcx, %rdi
	movl	%r8d, %esi
	callq	_outnet_get_tcp_fd
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.1:
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_fd_set_nonblock
	movl	%r13d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_outnet_tcp_connect
	testl	%eax, %eax
	je	LBB0_10
## %bb.2:
	movl	(%r12), %r8d
	movl	4(%r12), %edi
	movl	$65552, %esi                    ## imm = 0x10010
	movq	%r15, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_comm_point_create_http_out
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	24(%rbp), %rax
	movq	%r15, %rdi
	addq	$4, %rdi
	movl	%ebx, 8(%r15)
	movq	%r14, %rsi
	movq	%rax, %r14
	movl	%ebx, %edx
	callq	_memcpy
	cmpl	$0, 16(%rbp)
	je	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	movq	%r14, %rcx
	callq	_setup_comm_ssl
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	movq	32(%rbp), %rbx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_comm_point_start_listening
	movl	(%r15), %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_setup_http_request
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_log_err
	movl	%r13d, %edi
	callq	_close
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
LBB0_9:
	callq	_log_err
	movq	%r15, %rdi
	callq	_comm_point_delete
LBB0_10:
	xorl	%r15d, %r15d
LBB0_11:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc failure"

L_.str.1:                               ## @.str.1
	.asciz	"cannot setup https"

L_.str.2:                               ## @.str.2
	.asciz	"error setting up http request"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_outnet_comm_point_for_http     ; -- Begin function outnet_comm_point_for_http
	.p2align	2
_outnet_comm_point_for_http:            ; @outnet_comm_point_for_http
	.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
	mov	x19, x7
	mov	x23, x6
	mov	x20, x5
	mov	x25, x4
	mov	x26, x3
	mov	x21, x2
	mov	x27, x1
	mov	x24, x0
	ldr	w2, [x0, #8]
	mov	x0, x3
	mov	x1, x4
	bl	_outnet_get_tcp_fd
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.1:
	mov	x22, x0
	bl	_fd_set_nonblock
	mov	x0, x22
	mov	x1, x26
	mov	x2, x25
	bl	_outnet_tcp_connect
	cbz	w0, LBB0_10
; %bb.2:
	ldp	w4, w0, [x24]
	mov	w1, #16
	movk	w1, #1, lsl #16
	mov	x2, x27
	mov	x3, x21
	bl	_comm_point_create_http_out
	mov	x21, x0
	cbz	x0, LBB0_7
; %bb.3:
	add	x0, x21, #4
	str	w25, [x21, #8]
	mov	x1, x26
	mov	x2, x25
	bl	_memcpy
	cbz	w23, LBB0_5
; %bb.4:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x22
	mov	x3, x19
	bl	_setup_comm_ssl
	cbz	w0, LBB0_8
LBB0_5:
	ldr	x23, [x29, #16]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_comm_point_start_listening
	ldr	w0, [x21]
	mov	x1, x19
	mov	x2, x23
	bl	_setup_http_request
	cbnz	w0, LBB0_11
; %bb.6:
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
	mov	x0, x22
	bl	_close
	b	LBB0_11
LBB0_8:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	bl	_log_err
	mov	x0, x21
	bl	_comm_point_delete
LBB0_10:
	mov	x21, #0
LBB0_11:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc failure"

l_.str.1:                               ; @.str.1
	.asciz	"cannot setup https"

l_.str.2:                               ; @.str.2
	.asciz	"error setting up http request"

.subsections_via_symbols
