	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zoran_try_fmt_vid_overlay
_zoran_try_fmt_vid_overlay:             ## @zoran_try_fmt_vid_overlay
	.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
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	_BUZ_MAX_WIDTH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_2
## %bb.1:
	movq	%rcx, (%rbx)
	movq	%rcx, %rax
LBB0_2:
	movq	_BUZ_MIN_WIDTH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_4
## %bb.3:
	movq	%rcx, (%rbx)
LBB0_4:
	movq	8(%rbx), %rax
	movq	_BUZ_MAX_HEIGHT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_6
## %bb.5:
	movq	%rcx, 8(%rbx)
	movq	%rcx, %rax
LBB0_6:
	movq	_BUZ_MIN_HEIGHT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_8
## %bb.7:
	movq	%rcx, 8(%rbx)
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUZ_MAX_WIDTH,8,3              ## @BUZ_MAX_WIDTH
	.comm	_BUZ_MIN_WIDTH,8,3              ## @BUZ_MIN_WIDTH
	.comm	_BUZ_MAX_HEIGHT,8,3             ## @BUZ_MAX_HEIGHT
	.comm	_BUZ_MIN_HEIGHT,8,3             ## @BUZ_MIN_HEIGHT
	.no_dead_strip	_zoran_try_fmt_vid_overlay
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zoran_try_fmt_vid_overlay
_zoran_try_fmt_vid_overlay:             ; @zoran_try_fmt_vid_overlay
	.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	x20, x2
	ldr	x19, [x1]
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _BUZ_MAX_WIDTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BUZ_MAX_WIDTH@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
	str	x9, [x20]
	mov	x8, x9
LBB0_2:
Lloh3:
	adrp	x9, _BUZ_MIN_WIDTH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BUZ_MIN_WIDTH@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.3:
	str	x9, [x20]
LBB0_4:
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x9, _BUZ_MAX_HEIGHT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BUZ_MAX_HEIGHT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_6
; %bb.5:
	str	x9, [x20, #8]
	mov	x8, x9
LBB0_6:
Lloh9:
	adrp	x9, _BUZ_MIN_HEIGHT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BUZ_MIN_HEIGHT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_8
; %bb.7:
	str	x9, [x20, #8]
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BUZ_MAX_WIDTH,8,3              ; @BUZ_MAX_WIDTH
	.comm	_BUZ_MIN_WIDTH,8,3              ; @BUZ_MIN_WIDTH
	.comm	_BUZ_MAX_HEIGHT,8,3             ; @BUZ_MAX_HEIGHT
	.comm	_BUZ_MIN_HEIGHT,8,3             ; @BUZ_MIN_HEIGHT
	.no_dead_strip	_zoran_try_fmt_vid_overlay
.subsections_via_symbols
