	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_udp_set_remote_url          ## -- Begin function ff_udp_set_remote_url
	.p2align	4, 0x90
_ff_udp_set_remote_url:                 ## @ff_udp_set_remote_url
	.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
	subq	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r14
	leaq	-320(%rbp), %rax
	leaq	-304(%rbp), %r13
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r13, %r8
	movl	$256, %r9d                      ## imm = 0x100
	pushq	%rbx
	pushq	$0
	pushq	$0
	pushq	%rax
	callq	_av_url_split
	addq	$32, %rsp
	leaq	12(%r14), %r12
	movl	-320(%rbp), %ecx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_udp_set_url
	movq	%rax, (%r14)
	testq	%rax, %rax
	js	LBB0_8
## %bb.1:
	movq	%r12, %rdi
	callq	_ff_is_multicast_address
	movl	%eax, 20(%r14)
	movq	%rbx, %rdi
	movl	$63, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	leaq	L_.str(%rip), %rdx
	leaq	-314(%rbp), %rdi
	movl	$10, %esi
	movq	%rax, %rcx
	callq	_av_find_info_tag
	testq	%rax, %rax
	movl	$0, %ebx
	je	LBB0_9
## %bb.4:
	movl	8(%r14), %r13d
	xorl	%ebx, %ebx
	leaq	-314(%rbp), %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	testl	%r13d, %r13d
	jne	LBB0_9
## %bb.6:
	movl	16(%r14), %edi
	movq	(%r14), %rdx
	movq	%r12, %rsi
	callq	_connect
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	$0, 8(%r14)
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_ff_log_net_error
LBB0_8:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_2:
	xorl	%ebx, %ebx
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%ebx, %eax
	addq	$280, %rsp                      ## imm = 0x118
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"connect"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_udp_set_remote_url          ; -- Begin function ff_udp_set_remote_url
	.p2align	2
_ff_udp_set_remote_url:                 ; @ff_udp_set_remote_url
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #368
	.cfi_def_cfa_offset 368
	stp	x28, x27, [sp, #304]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #320]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #336]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #352]            ; 16-byte Folded Spill
	add	x29, sp, #352
	.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 w27, -56
	.cfi_offset w28, -64
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x22, [x0]
	str	x1, [sp, #8]
	str	wzr, [sp]
	add	x4, sp, #40
	add	x6, sp, #24
	mov	x0, #0
	mov	w1, #0
	mov	x2, #0
	mov	w3, #0
	mov	w5, #256
	mov	x7, #0
	bl	_av_url_split
	add	x20, x22, #12
	ldr	w3, [sp, #24]
	add	x2, sp, #40
	mov	x0, x19
	mov	x1, x20
	bl	_udp_set_url
	str	x0, [x22]
	tbnz	x0, #63, LBB0_7
; %bb.1:
	mov	x0, x20
	bl	_ff_is_multicast_address
	str	w0, [x22, #20]
	mov	x0, x21
	mov	w1, #63
	bl	_strchr
	cbz	x0, LBB0_8
; %bb.2:
	mov	x3, x0
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #30
	mov	w1, #10
	bl	_av_find_info_tag
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w21, [x22, #8]
	add	x0, sp, #30
	mov	x1, #0
	mov	w2, #10
	bl	_strtol
	mov	x8, x0
	mov	w0, #0
	str	w8, [x22, #8]
	cbz	w8, LBB0_8
; %bb.4:
	cbnz	w21, LBB0_8
; %bb.5:
	ldr	w0, [x22, #16]
	ldr	x2, [x22]
	mov	x1, x20
	bl	_connect
	cbz	x0, LBB0_8
; %bb.6:
	str	wzr, [x22, #8]
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ff_log_net_error
LBB0_7:
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #352]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #336]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #320]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #304]            ; 16-byte Folded Reload
	add	sp, sp, #368
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"connect"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
.subsections_via_symbols
