	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_write_callback
_tls_write_callback:                    ## @tls_write_callback
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rcx, %rdi
	callq	_ffurl_write
	movl	%eax, %ebx
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %ebx
	jne	LBB0_2
## %bb.1:
	movq	_TLS_WANT_POLLOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
LBB0_2:
	movq	_AVERROR_EXIT@GOTPCREL(%rip), %rcx
	testl	%ebx, %ebx
	movl	$-1, %edx
	cmovnsl	%ebx, %edx
	xorl	%eax, %eax
	cmpl	(%rcx), %ebx
	cmovnel	%edx, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_TLS_WANT_POLLOUT,4,2           ## @TLS_WANT_POLLOUT
	.comm	_AVERROR_EXIT,4,2               ## @AVERROR_EXIT
	.no_dead_strip	_tls_write_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_write_callback
_tls_write_callback:                    ; @tls_write_callback
	.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	x0, x3
	bl	_ffurl_write
	mov	x19, x0
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_AVERROR
	cmp	w19, w0
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _TLS_WANT_POLLOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TLS_WANT_POLLOUT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _AVERROR_EXIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVERROR_EXIT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w19, #0
	csinv	w9, w19, wzr, ge
	cmp	w19, w8
	csel	w0, wzr, w9, eq
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_TLS_WANT_POLLOUT,4,2           ; @TLS_WANT_POLLOUT
	.comm	_AVERROR_EXIT,4,2               ; @AVERROR_EXIT
	.no_dead_strip	_tls_write_callback
.subsections_via_symbols
