	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reconfig_encoder
_reconfig_encoder:                      ## @reconfig_encoder
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	24(%rdi), %rbx
	cmpq	$0, (%rbx)
	js	LBB0_1
LBB0_24:
	movq	_AV_FRAME_DATA_STEREO3D@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_av_frame_get_side_data
	testq	%rax, %rax
	je	LBB0_30
## %bb.25:
	movq	(%rax), %rax
	movl	(%rax), %edx
	addl	$-128, %edx
	movl	$-1, %ecx
	cmpl	$5, %edx
	ja	LBB0_27
## %bb.26:
	movslq	%edx, %rcx
	leaq	l_switch.table.reconfig_encoder(%rip), %rdx
	movl	(%rdx,%rcx,4), %ecx
LBB0_27:
	movq	_AV_STEREO3D_FLAG_INVERT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 4(%rax)
	je	LBB0_29
## %bb.28:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
	movl	$-1, %ecx
LBB0_29:
	cmpl	40(%rbx), %ecx
	jne	LBB0_31
LBB0_30:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	32(%rbx), %r15
	cmpq	$0, 104(%rbx)
	je	LBB0_4
## %bb.2:
	movq	(%r14), %rax
	cmpq	%rax, (%r15)
	je	LBB0_4
## %bb.3:
	movq	%rax, 32(%rbx)
	movl	112(%rbx), %edi
	movq	%r15, %rsi
	callq	_x264_encoder_reconfig
LBB0_4:
	movl	12(%r12), %eax
	movl	16(%r12), %ecx
	movl	96(%rbx), %edx
	imull	%eax, %edx
	movl	100(%rbx), %esi
	imull	%ecx, %esi
	cmpl	%esi, %edx
	je	LBB0_6
## %bb.5:
	movl	%ecx, 96(%rbx)
	movl	%eax, 100(%rbx)
	movl	112(%rbx), %edi
	movq	%r15, %rsi
	callq	_x264_encoder_reconfig
LBB0_6:
	movslq	(%r12), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	cmpl	%eax, 48(%rbx)
	jne	LBB0_7
## %bb.8:
	movslq	4(%r12), %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	cmpl	%ecx, 52(%rbx)
	jne	LBB0_9
	jmp	LBB0_10
LBB0_31:
	leaq	32(%rbx), %rsi
	movl	%ecx, 40(%rbx)
	movl	112(%rbx), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_x264_encoder_reconfig          ## TAILCALL
LBB0_7:
	movslq	4(%r12), %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
LBB0_9:
	movl	%eax, 48(%rbx)
	movl	%ecx, 52(%rbx)
	movl	112(%rbx), %edi
	movq	%r15, %rsi
	callq	_x264_encoder_reconfig
LBB0_10:
	movq	56(%rbx), %rax
	movq	_X264_RC_ABR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.11:
	movslq	8(%r12), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	cmpl	%eax, 64(%rbx)
	je	LBB0_13
## %bb.12:
	movl	%eax, 64(%rbx)
	movl	112(%rbx), %edi
	movq	%r15, %rsi
	callq	_x264_encoder_reconfig
LBB0_13:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	js	LBB0_17
## %bb.14:
	movq	56(%rbx), %rcx
	movq	_X264_RC_CRF@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_17
## %bb.15:
	cmpq	%rax, 72(%rbx)
	je	LBB0_17
## %bb.16:
	movq	%rax, 72(%rbx)
	movl	112(%rbx), %edi
	movq	%r15, %rsi
	callq	_x264_encoder_reconfig
LBB0_17:
	movq	56(%rbx), %rax
	movq	_X264_RC_CQP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.18:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	js	LBB0_21
## %bb.19:
	cmpq	%rax, 80(%rbx)
	je	LBB0_21
## %bb.20:
	movq	%rax, 80(%rbx)
	movl	112(%rbx), %edi
	movq	%r15, %rsi
	callq	_x264_encoder_reconfig
LBB0_21:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	js	LBB0_24
## %bb.22:
	cmpq	%rax, 88(%rbx)
	je	LBB0_24
## %bb.23:
	movq	%rax, 88(%rbx)
	movl	112(%rbx), %edi
	movq	%r15, %rsi
	callq	_x264_encoder_reconfig
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_X264_RC_ABR,8,3                ## @X264_RC_ABR
	.comm	_X264_RC_CRF,8,3                ## @X264_RC_CRF
	.comm	_X264_RC_CQP,8,3                ## @X264_RC_CQP
	.comm	_AV_FRAME_DATA_STEREO3D,4,2     ## @AV_FRAME_DATA_STEREO3D
	.comm	_AV_STEREO3D_FLAG_INVERT,4,2    ## @AV_STEREO3D_FLAG_INVERT
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Ignoring unsupported inverted stereo value %d\n"

	.no_dead_strip	_reconfig_encoder
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.reconfig_encoder
l_switch.table.reconfig_encoder:
	.long	4                               ## 0x4
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	5                               ## 0x5
	.long	1                               ## 0x1
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reconfig_encoder
_reconfig_encoder:                      ; @reconfig_encoder
	.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
	ldr	x22, [x0, #24]
	ldr	x8, [x22]
	tbnz	x8, #63, LBB0_4
LBB0_1:
Lloh0:
	adrp	x8, _AV_FRAME_DATA_STEREO3D@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_FRAME_DATA_STEREO3D@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_av_frame_get_side_data
	cbz	x0, LBB0_15
; %bb.2:
	ldr	x8, [x0]
	ldr	w9, [x8]
	sub	w9, w9, #128
	cmp	w9, #5
	b.hi	LBB0_11
; %bb.3:
Lloh3:
	adrp	x10, l_switch.table.reconfig_encoder@PAGE
Lloh4:
	add	x10, x10, l_switch.table.reconfig_encoder@PAGEOFF
	ldr	w3, [x10, w9, sxtw #2]
	b	LBB0_12
LBB0_4:
	add	x21, x22, #32
	ldr	x8, [x22, #104]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x9, [x21]
	ldr	x8, [x20]
	cmp	x9, x8
	b.eq	LBB0_7
; %bb.6:
	str	x8, [x22, #32]
	ldr	w0, [x22, #112]
	mov	x1, x21
	bl	_x264_encoder_reconfig
LBB0_7:
	ldp	w8, w9, [x19, #12]
	ldp	w10, w11, [x22, #96]
	mul	w10, w8, w10
	mul	w11, w11, w9
	cmp	w10, w11
	b.eq	LBB0_9
; %bb.8:
	stp	w9, w8, [x22, #96]
	ldr	w0, [x22, #112]
	mov	x1, x21
	bl	_x264_encoder_reconfig
LBB0_9:
	ldr	w9, [x22, #48]
	ldrsw	x8, [x19]
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	mul	x8, x8, x10
	lsr	x10, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w10
	cmp	w9, w8
	b.ne	LBB0_17
; %bb.10:
	ldr	w10, [x22, #52]
	ldrsw	x9, [x19, #4]
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	mul	x9, x9, x11
	lsr	x11, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w11
	cmp	w10, w9
	b.ne	LBB0_18
	b	LBB0_19
LBB0_11:
	mov	w3, #-1
LBB0_12:
	ldr	w8, [x8, #4]
Lloh5:
	adrp	x9, _AV_STEREO3D_FLAG_INVERT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_STEREO3D_FLAG_INVERT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
Lloh8:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	mov	w3, #-1
LBB0_14:
	ldr	w8, [x22, #40]
	cmp	w3, w8
	b.ne	LBB0_16
LBB0_15:
	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
LBB0_16:
	add	x1, x22, #32
	str	w3, [x22, #40]
	ldr	w0, [x22, #112]
	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
	b	_x264_encoder_reconfig
LBB0_17:
	ldrsw	x9, [x19, #4]
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
LBB0_18:
	stp	w8, w9, [x22, #48]
	ldr	w0, [x22, #112]
	mov	x1, x21
	bl	_x264_encoder_reconfig
LBB0_19:
	ldr	x8, [x22, #56]
Lloh13:
	adrp	x9, _X264_RC_ABR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _X264_RC_ABR@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.20:
	ldr	w9, [x22, #64]
	ldrsw	x8, [x19, #8]
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	mul	x8, x8, x10
	lsr	x10, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w10
	cmp	w9, w8
	b.eq	LBB0_22
; %bb.21:
	str	w8, [x22, #64]
	ldr	w0, [x22, #112]
	mov	x1, x21
	bl	_x264_encoder_reconfig
LBB0_22:
	ldr	x8, [x22, #8]
	tbnz	x8, #63, LBB0_26
; %bb.23:
	ldr	x9, [x22, #56]
Lloh16:
	adrp	x10, _X264_RC_CRF@GOTPAGE
Lloh17:
	ldr	x10, [x10, _X264_RC_CRF@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_26
; %bb.24:
	ldr	x9, [x22, #72]
	cmp	x9, x8
	b.eq	LBB0_26
; %bb.25:
	str	x8, [x22, #72]
	ldr	w0, [x22, #112]
	mov	x1, x21
	bl	_x264_encoder_reconfig
LBB0_26:
	ldr	x8, [x22, #56]
Lloh19:
	adrp	x9, _X264_RC_CQP@GOTPAGE
Lloh20:
	ldr	x9, [x9, _X264_RC_CQP@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_30
; %bb.27:
	ldr	x8, [x22, #16]
	tbnz	x8, #63, LBB0_30
; %bb.28:
	ldr	x9, [x22, #80]
	cmp	x9, x8
	b.eq	LBB0_30
; %bb.29:
	str	x8, [x22, #80]
	ldr	w0, [x22, #112]
	mov	x1, x21
	bl	_x264_encoder_reconfig
LBB0_30:
	ldr	x8, [x22, #24]
	tbnz	x8, #63, LBB0_1
; %bb.31:
	ldr	x9, [x22, #88]
	cmp	x9, x8
	b.eq	LBB0_1
; %bb.32:
	str	x8, [x22, #88]
	ldr	w0, [x22, #112]
	mov	x1, x21
	bl	_x264_encoder_reconfig
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_X264_RC_ABR,8,3                ; @X264_RC_ABR
	.comm	_X264_RC_CRF,8,3                ; @X264_RC_CRF
	.comm	_X264_RC_CQP,8,3                ; @X264_RC_CQP
	.comm	_AV_FRAME_DATA_STEREO3D,4,2     ; @AV_FRAME_DATA_STEREO3D
	.comm	_AV_STEREO3D_FLAG_INVERT,4,2    ; @AV_STEREO3D_FLAG_INVERT
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Ignoring unsupported inverted stereo value %d\n"

	.no_dead_strip	_reconfig_encoder
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.reconfig_encoder
l_switch.table.reconfig_encoder:
	.long	4                               ; 0x4
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	5                               ; 0x5
	.long	1                               ; 0x1
	.long	0                               ; 0x0

.subsections_via_symbols
