	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function comm_point_http_handle_write
_comm_point_http_handle_write:          ## @comm_point_http_handle_write
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	(%rsi), %rax
	movq	_comm_http@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_log_assert
	xorl	%edi, %edi
	cmpl	$-1, %r15d
	setne	%dil
	callq	_log_assert
	cmpq	$0, 56(%rbx)
	je	LBB0_5
## %bb.1:
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_http_check_connect
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$1, %r14d
	jne	LBB0_4
## %bb.3:
	movl	$1, %r14d
	jmp	LBB0_6
LBB0_4:
	movq	$0, 56(%rbx)
LBB0_5:
	movl	$1, %r14d
	cmpl	$0, 16(%rbx)
	je	LBB0_7
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpq	$0, 48(%rbx)
	je	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	callq	_ssl_http_write_more
	testl	%eax, %eax
	je	LBB0_9
LBB0_11:
	movl	40(%rbx), %edi
	callq	_sldns_buffer_remaining
	testq	%rax, %rax
	jne	LBB0_6
## %bb.12:
	movl	40(%rbx), %edi
	callq	_sldns_buffer_clear
	cmpq	$0, 32(%rbx)
	je	LBB0_14
## %bb.13:
	movl	$1, 16(%rbx)
LBB0_14:
	movq	$0, 24(%rbx)
	movq	%rbx, %rdi
	callq	_comm_point_stop_listening
	movq	%rbx, %rdi
	movl	$-1, %esi
	movl	$-1, %edx
	callq	_comm_point_start_listening
	jmp	LBB0_6
LBB0_10:
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_http_write_more
	testl	%eax, %eax
	jne	LBB0_11
LBB0_9:
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_comm_http,8,3                  ## @comm_http
	.comm	_comm_ssl_shake_none,8,3        ## @comm_ssl_shake_none
	.no_dead_strip	_comm_point_http_handle_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function comm_point_http_handle_write
_comm_point_http_handle_write:          ; @comm_point_http_handle_write
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _comm_http@GOTPAGE
Lloh1:
	ldr	x9, [x9, _comm_http@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_log_assert
	cmn	w20, #1
	cset	w0, ne
	bl	_log_assert
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_http_check_connect
	cbz	w0, LBB0_6
; %bb.2:
	cmp	w0, #1
	b.eq	LBB0_6
; %bb.3:
	str	xzr, [x19, #56]
LBB0_4:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_7
LBB0_5:
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_ssl_http_write_more
	cbnz	w0, LBB0_10
	b	LBB0_6
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	_http_write_more
	cbz	w0, LBB0_6
LBB0_10:
	ldr	w0, [x19, #40]
	bl	_sldns_buffer_remaining
	cbnz	x0, LBB0_5
; %bb.11:
	ldr	w0, [x19, #40]
	bl	_sldns_buffer_clear
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_13
; %bb.12:
	mov	w8, #1
	str	w8, [x19, #16]
LBB0_13:
	str	xzr, [x19, #24]
	mov	x0, x19
	bl	_comm_point_stop_listening
	mov	x0, x19
	mov	w1, #-1
	mov	w2, #-1
	bl	_comm_point_start_listening
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_comm_http,8,3                  ; @comm_http
	.comm	_comm_ssl_shake_none,8,3        ; @comm_ssl_shake_none
	.no_dead_strip	_comm_point_http_handle_write
.subsections_via_symbols
