	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_read_cb
_tls_read_cb:                           ## @tls_read_cb
	.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	%rdx, %rbx
	movq	(%rdi), %r12
	movq	(%rdx), %r15
	movl	4(%r12), %edi
	movq	%r15, %rdx
	callq	_ffurl_read
	movl	%eax, %r14d
	testl	%eax, %eax
	jle	LBB0_1
## %bb.8:
	movl	%r14d, %eax
	movq	%rax, (%rbx)
	cmpq	%rax, %r15
	jbe	LBB0_9
LBB0_10:
	movq	_errSSLWouldBlock@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_1:
	movq	$0, (%rbx)
	movl	%r14d, %edi
	callq	_AVUNERROR
	cmpl	$128, %eax
	jg	LBB0_5
## %bb.2:
	movq	_errSSLClosedGraceful@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_11
## %bb.3:
	cmpl	$128, %eax
	je	LBB0_11
	jmp	LBB0_4
LBB0_9:
	movq	_noErr@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_5:
	cmpl	$130, %eax
	je	LBB0_10
## %bb.6:
	cmpl	$129, %eax
	jne	LBB0_4
## %bb.7:
	movq	_errSSLClosedAbort@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_4:
	movl	%r14d, (%r12)
	movq	_ioErr@GOTPCREL(%rip), %rcx
LBB0_11:
	movl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errSSLClosedGraceful,4,2       ## @errSSLClosedGraceful
	.comm	_errSSLClosedAbort,4,2          ## @errSSLClosedAbort
	.comm	_errSSLWouldBlock,4,2           ## @errSSLWouldBlock
	.comm	_ioErr,4,2                      ## @ioErr
	.comm	_noErr,4,2                      ## @noErr
	.no_dead_strip	_tls_read_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_read_cb
_tls_read_cb:                           ; @tls_read_cb
	.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, x2
	ldr	x22, [x0]
	ldr	x21, [x2]
	ldr	w0, [x22, #4]
	mov	x2, x21
	bl	_ffurl_read
	mov	x19, x0
	cmp	w0, #0
	b.le	LBB0_3
; %bb.1:
	mov	w8, w19
	str	x8, [x20]
Lloh0:
	adrp	x9, _noErr@GOTPAGE
Lloh1:
	ldr	x9, [x9, _noErr@GOTPAGEOFF]
Lloh2:
	adrp	x10, _errSSLWouldBlock@GOTPAGE
Lloh3:
	ldr	x10, [x10, _errSSLWouldBlock@GOTPAGEOFF]
	cmp	x21, x8
	csel	x8, x10, x9, hi
LBB0_2:
	ldr	w0, [x8]
	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
LBB0_3:
	str	xzr, [x20]
	mov	x0, x19
	bl	_AVUNERROR
	cmp	w0, #128
	b.gt	LBB0_6
; %bb.4:
Lloh4:
	adrp	x8, _errSSLClosedGraceful@GOTPAGE
Lloh5:
	ldr	x8, [x8, _errSSLClosedGraceful@GOTPAGEOFF]
	cbz	w0, LBB0_2
; %bb.5:
	cmp	w0, #128
	b.eq	LBB0_2
	b	LBB0_10
LBB0_6:
	cmp	w0, #130
	b.eq	LBB0_9
; %bb.7:
	cmp	w0, #129
	b.ne	LBB0_10
; %bb.8:
Lloh6:
	adrp	x8, _errSSLClosedAbort@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errSSLClosedAbort@GOTPAGEOFF]
	b	LBB0_2
LBB0_9:
Lloh8:
	adrp	x8, _errSSLWouldBlock@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errSSLWouldBlock@GOTPAGEOFF]
	b	LBB0_2
LBB0_10:
	str	w19, [x22]
Lloh10:
	adrp	x8, _ioErr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ioErr@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_errSSLClosedGraceful,4,2       ; @errSSLClosedGraceful
	.comm	_errSSLClosedAbort,4,2          ; @errSSLClosedAbort
	.comm	_errSSLWouldBlock,4,2           ; @errSSLWouldBlock
	.comm	_ioErr,4,2                      ; @ioErr
	.comm	_noErr,4,2                      ; @noErr
	.no_dead_strip	_tls_read_cb
.subsections_via_symbols
