	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opt_sync
_opt_sync:                              ## @opt_sync
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rdx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	_AV_SYNC_EXTERNAL_CLOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_AV_SYNC_AUDIO_MASTER@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_AV_SYNC_VIDEO_MASTER@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movq	_av_sync_type@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%edi, %edi
	movq	%r14, %rcx
	movq	%rbx, %r8
	callq	_av_log
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"audio"

	.comm	_AV_SYNC_AUDIO_MASTER,4,2       ## @AV_SYNC_AUDIO_MASTER
	.comm	_av_sync_type,4,2               ## @av_sync_type
L_.str.1:                               ## @.str.1
	.asciz	"video"

	.comm	_AV_SYNC_VIDEO_MASTER,4,2       ## @AV_SYNC_VIDEO_MASTER
L_.str.2:                               ## @.str.2
	.asciz	"ext"

	.comm	_AV_SYNC_EXTERNAL_CLOCK,4,2     ## @AV_SYNC_EXTERNAL_CLOCK
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"Unknown value for %s: %s\n"

	.no_dead_strip	_opt_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opt_sync
_opt_sync:                              ; @opt_sync
	.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	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x2
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	w0, LBB0_5
; %bb.2:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbnz	w0, LBB0_7
; %bb.3:
Lloh6:
	adrp	x8, _AV_SYNC_EXTERNAL_CLOCK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_SYNC_EXTERNAL_CLOCK@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _AV_SYNC_AUDIO_MASTER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_SYNC_AUDIO_MASTER@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _AV_SYNC_VIDEO_MASTER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_SYNC_VIDEO_MASTER@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _av_sync_type@GOTPAGE
Lloh13:
	ldr	x9, [x9, _av_sync_type@GOTPAGEOFF]
Lloh14:
	str	w8, [x9]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh15:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str.3@PAGE
Lloh19:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, #0
	mov	x3, x20
	mov	x4, x19
	bl	_av_log
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"audio"

	.comm	_AV_SYNC_AUDIO_MASTER,4,2       ; @AV_SYNC_AUDIO_MASTER
	.comm	_av_sync_type,4,2               ; @av_sync_type
l_.str.1:                               ; @.str.1
	.asciz	"video"

	.comm	_AV_SYNC_VIDEO_MASTER,4,2       ; @AV_SYNC_VIDEO_MASTER
l_.str.2:                               ; @.str.2
	.asciz	"ext"

	.comm	_AV_SYNC_EXTERNAL_CLOCK,4,2     ; @AV_SYNC_EXTERNAL_CLOCK
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"Unknown value for %s: %s\n"

	.no_dead_strip	_opt_sync
.subsections_via_symbols
