	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_socket_receive_all_nonblocking ## -- Begin function ssl_socket_receive_all_nonblocking
	.p2align	4, 0x90
_ssl_socket_receive_all_nonblocking:    ## @ssl_socket_receive_all_nonblocking
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	addq	$4, %rdi
	callq	_mbedtls_net_set_nonblock
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_mbedtls_ssl_read
	movq	%rax, %rbx
	testq	%rax, %rax
	jle	LBB0_2
## %bb.1:
	movq	%rbx, %rax
	jmp	LBB0_6
LBB0_2:
	je	LBB0_5
## %bb.3:
	movl	%ebx, %edi
	callq	_isagain
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_6
## %bb.4:
	movq	_MBEDTLS_ERR_SSL_WANT_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	je	LBB0_6
LBB0_5:
	movl	$1, (%r14)
	movq	$-1, %rax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_SSL_WANT_READ,8,3  ## @MBEDTLS_ERR_SSL_WANT_READ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_socket_receive_all_nonblocking ; -- Begin function ssl_socket_receive_all_nonblocking
	.p2align	2
_ssl_socket_receive_all_nonblocking:    ; @ssl_socket_receive_all_nonblocking
	.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	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	add	x0, x0, #4
	bl	_mbedtls_net_set_nonblock
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_mbedtls_ssl_read
	mov	x20, x0
	cmp	x0, #0
	b.le	LBB0_2
; %bb.1:
	mov	x0, x20
	b	LBB0_6
LBB0_2:
	cbz	x20, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_isagain
	mov	x8, x0
	mov	x0, #0
	cbnz	x8, LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, _MBEDTLS_ERR_SSL_WANT_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_WANT_READ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x20, x8
	b.eq	LBB0_6
LBB0_5:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, #-1
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_SSL_WANT_READ,8,3  ; @MBEDTLS_ERR_SSL_WANT_READ
.subsections_via_symbols
