	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function url_resetbuf
_url_resetbuf:                          ## @url_resetbuf
	.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
	movl	%esi, %ebx
	movq	_AVIO_FLAG_WRITE@GOTPCREL(%rip), %r15
	cmpl	%esi, (%r15)
	sete	%al
	movq	_AVIO_FLAG_READ@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	movq	%rdi, %r14
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_av_assert1
	movq	8(%r14), %rax
	testl	%ebx, (%r15)
	je	LBB0_1
## %bb.2:
	addq	24(%r14), %rax
	movl	$1, %ecx
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
LBB0_3:
	movq	%rax, 16(%r14)
	movl	%ecx, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVIO_FLAG_WRITE,4,2            ## @AVIO_FLAG_WRITE
	.comm	_AVIO_FLAG_READ,4,2             ## @AVIO_FLAG_READ
	.no_dead_strip	_url_resetbuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function url_resetbuf
_url_resetbuf:                          ; @url_resetbuf
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _AVIO_FLAG_WRITE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AVIO_FLAG_WRITE@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w1
Lloh2:
	adrp	x8, _AVIO_FLAG_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVIO_FLAG_READ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ccmp	w8, w1, #4, ne
	cset	w0, eq
	bl	_av_assert1
	ldr	w9, [x21]
	ldr	x8, [x19, #8]
	tst	w9, w20
	b.eq	LBB0_2
; %bb.1:
	ldr	x9, [x19, #24]
	add	x8, x9, x8
	mov	w9, #1
	b	LBB0_3
LBB0_2:
	mov	w9, #0
LBB0_3:
	str	x8, [x19, #16]
	str	w9, [x19]
	mov	w0, #0
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AVIO_FLAG_WRITE,4,2            ; @AVIO_FLAG_WRITE
	.comm	_AVIO_FLAG_READ,4,2             ; @AVIO_FLAG_READ
	.no_dead_strip	_url_resetbuf
.subsections_via_symbols
