	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sap_write_packet
_sap_write_packet:                      ## @sap_write_packet
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	8(%rdi), %rbx
	xorl	%eax, %eax
	callq	_av_gettime_relative
	movl	%eax, %r15d
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%r15d, %ecx
	subl	%eax, %ecx
	cmpl	$5000001, %ecx                  ## imm = 0x4C4B41
	jl	LBB0_5
LBB0_2:
	movl	12(%rbx), %edi
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	callq	_ffurl_write
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	movq	_ECONNREFUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %r12d
	jne	LBB0_6
LBB0_4:
	movl	%r15d, (%rbx)
LBB0_5:
	movq	(%r13), %rax
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_write_chained               ## TAILCALL
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ECONNREFUSED,4,2               ## @ECONNREFUSED
	.no_dead_strip	_sap_write_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sap_write_packet
_sap_write_packet:                      ; @sap_write_packet
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x23, [x0, #8]
	bl	_av_gettime_relative
	ldr	w8, [x23]
	sub	w9, w0, w8
	cmp	w8, #0
	mov	w8, #19265
	movk	w8, #76, lsl #16
	ccmp	w9, w8, #0, ne
	b.lt	LBB0_4
; %bb.1:
	mov	x21, x0
	ldp	w1, w0, [x23, #8]
	ldr	w2, [x23, #4]
	bl	_ffurl_write
	tbz	w0, #31, LBB0_3
; %bb.2:
	mov	x22, x0
Lloh0:
	adrp	x8, _ECONNREFUSED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ECONNREFUSED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_AVERROR
	cmp	w22, w0
	b.ne	LBB0_5
LBB0_3:
	str	w21, [x23]
LBB0_4:
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x0, [x8]
	mov	w1, #0
	mov	x2, x20
	mov	x3, x19
	mov	w4, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ff_write_chained
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ECONNREFUSED,4,2               ; @ECONNREFUSED
	.no_dead_strip	_sap_write_packet
.subsections_via_symbols
