	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___v4l2_find_nearest_size       ## -- Begin function __v4l2_find_nearest_size
	.p2align	4, 0x90
___v4l2_find_nearest_size:              ## @__v4l2_find_nearest_size
	.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
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.2:
	movq	16(%rbp), %r10
	movq	_U32_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	movl	$1, %r14d
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r11, %rbx
	cmovlq	%rbx, %r11
	addq	%rdx, %rdi
	movl	%r14d, %ebx
	incl	%r14d
	cmpq	%rsi, %rbx
	jae	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rcx), %rbx
	subq	%r9, %rbx
	movq	%rbx, %r15
	negq	%r15
	cmovsq	%rbx, %r15
	movq	(%rdi,%r8), %r12
	subq	%r10, %r12
	movq	%r12, %rbx
	negq	%rbx
	cmovsq	%r12, %rbx
	addq	%r15, %rbx
	cmpq	%r11, %rbx
	cmovleq	%rdi, %rax
	jg	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%rbx, %rbx
	jne	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_U32_MAX,8,3                    ## @U32_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___v4l2_find_nearest_size       ; -- Begin function __v4l2_find_nearest_size
	.p2align	2
___v4l2_find_nearest_size:              ; @__v4l2_find_nearest_size
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	mov	x0, #0
	cbz	x8, LBB0_5
; %bb.1:
	cbz	x1, LBB0_5
; %bb.2:
	mov	x0, #0
Lloh0:
	adrp	x9, _U32_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _U32_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	w10, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8, x3]
	subs	x11, x11, x5
	cneg	x11, x11, mi
	ldr	x12, [x8, x4]
	subs	x12, x12, x6
	cneg	x12, x12, mi
	add	x11, x12, x11
	cmp	x11, x9
	csel	x0, x0, x8, gt
	ccmp	x11, #0, #0, le
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x11, x9
	csel	x9, x11, x9, lt
	add	x8, x8, x2
	mov	w11, w10
	add	w10, w10, #1
	cmp	x11, x1
	b.lo	LBB0_3
LBB0_5:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_U32_MAX,8,3                    ; @U32_MAX
.subsections_via_symbols
