	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_app_data_step
_do_app_data_step:                      ## @do_app_data_step
	.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	%rdi, %r15
	movl	(%rdi), %edi
	movq	_PEER_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	cmpq	$0, 8(%r15)
	je	LBB0_8
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	36(%r15), %esi
	movl	28(%r15), %edi
	movl	32(%r15), %edx
	callq	_SSL_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rsi
	movl	%ebx, %edi
	callq	_TEST_int_le
	testl	%eax, %eax
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %eax
	subq	%rax, 8(%r15)
	jne	LBB0_2
	jmp	LBB0_8
LBB0_5:
	je	LBB0_6
## %bb.7:
	movl	28(%r15), %edi
	movl	%ebx, %esi
	callq	_SSL_get_error
	movq	_SSL_ERROR_WANT_READ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
LBB0_8:
	movl	16(%r15), %eax
	movl	20(%r15), %r14d
	cmpl	%r14d, %eax
	cmovll	%eax, %r14d
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.9:
	movl	24(%r15), %esi
	movl	28(%r15), %edi
	movl	%r14d, %edx
	callq	_SSL_write
	testl	%eax, %eax
	jle	LBB0_6
## %bb.10:
	movl	%eax, %ebx
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	16(%r15), %eax
	subl	%ebx, %eax
	movl	%eax, 16(%r15)
LBB0_13:
	testl	%eax, %eax
	jne	LBB0_17
## %bb.14:
	cmpq	$0, 8(%r15)
	jne	LBB0_17
## %bb.15:
	movq	_PEER_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_11:
	movq	_PEER_TEST_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_6:
	movq	_PEER_ERROR@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PEER_RETRY,4,2                 ## @PEER_RETRY
	.comm	_PEER_TEST_FAILURE,8,3          ## @PEER_TEST_FAILURE
	.comm	_PEER_ERROR,8,3                 ## @PEER_ERROR
	.comm	_SSL_ERROR_WANT_READ,4,2        ## @SSL_ERROR_WANT_READ
	.comm	_PEER_SUCCESS,4,2               ## @PEER_SUCCESS
	.no_dead_strip	_do_app_data_step
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_app_data_step
_do_app_data_step:                      ; @do_app_data_step
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _PEER_RETRY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PEER_RETRY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_TEST_int_eq
	cbz	w0, LBB0_14
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w2, w1, [x19, #32]
	ldr	w0, [x19, #28]
	bl	_SSL_read
	mov	x20, x0
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x19, #8]
	mov	x0, x20
	bl	_TEST_int_le
	cbz	w0, LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, w20
	ldr	x9, [x19, #8]
	subs	x8, x9, x8
	str	x8, [x19, #8]
	b.ne	LBB0_2
	b	LBB0_7
LBB0_5:
	cbz	w20, LBB0_15
; %bb.6:
	ldr	w0, [x19, #28]
	mov	x1, x20
	bl	_SSL_get_error
Lloh3:
	adrp	x8, _SSL_ERROR_WANT_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_ERROR_WANT_READ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_15
LBB0_7:
	ldp	w8, w9, [x19, #16]
	cmp	w8, w9
	csel	w20, w8, w9, lt
	cbz	w20, LBB0_11
; %bb.8:
	ldp	w1, w0, [x19, #24]
	mov	x2, x20
	bl	_SSL_write
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.9:
	mov	x21, x0
	mov	x1, x20
	bl	_TEST_int_eq
	cbz	w0, LBB0_14
; %bb.10:
	ldr	w8, [x19, #16]
	sub	w8, w8, w21
	str	w8, [x19, #16]
LBB0_11:
	cbnz	w8, LBB0_17
; %bb.12:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_17
; %bb.13:
Lloh6:
	adrp	x8, _PEER_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PEER_SUCCESS@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
Lloh8:
	adrp	x8, _PEER_TEST_FAILURE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PEER_TEST_FAILURE@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh10:
	adrp	x8, _PEER_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PEER_ERROR@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_17:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PEER_RETRY,4,2                 ; @PEER_RETRY
	.comm	_PEER_TEST_FAILURE,8,3          ; @PEER_TEST_FAILURE
	.comm	_PEER_ERROR,8,3                 ; @PEER_ERROR
	.comm	_SSL_ERROR_WANT_READ,4,2        ; @SSL_ERROR_WANT_READ
	.comm	_PEER_SUCCESS,4,2               ; @PEER_SUCCESS
	.no_dead_strip	_do_app_data_step
.subsections_via_symbols
