	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5c73m3_oif_enum_frame_size
_s5c73m3_oif_enum_frame_size:           ## @s5c73m3_oif_enum_frame_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_oif_sd_to_s5c73m3
	movq	(%r14), %rdi
	movq	_OIF_SOURCE_PAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	jne	LBB0_8
## %bb.1:
	cmpq	$0, 8(%r14)
	jne	LBB0_2
## %bb.3:
	movl	16(%r14), %ecx
	andl	$-2, %ecx
	cmpl	$128, %ecx
	jne	LBB0_2
## %bb.4:
	movl	36(%r14), %ecx
	movq	_V4L2_SUBDEV_FORMAT_TRY@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_6
## %bb.5:
	movq	_OIF_ISP_PAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_v4l2_subdev_get_try_format
	movq	%rax, %rcx
	addq	$4, %rcx
	jmp	LBB0_7
LBB0_8:
	movl	16(%r14), %r15d
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_s5c73m3_oif_get_pad_code
	cmpl	%eax, %r15d
	jne	LBB0_9
## %bb.10:
	movq	_OIF_JPEG_PAD@GOTPCREL(%rip), %rcx
	movq	(%r14), %rdx
	movq	8(%r14), %rax
	cmpq	(%rcx), %rdx
	jne	LBB0_11
## %bb.12:
	movq	_RES_JPEG@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_11:
	movq	_RES_ISP@GOTPCREL(%rip), %rcx
LBB0_13:
	movslq	(%rcx), %rcx
	movq	_s5c73m3_resolutions_len@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	(%rdx,%rcx,8), %rax
	jae	LBB0_2
## %bb.14:
	movq	_s5c73m3_resolutions@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movq	(%rcx,%rax,8), %xmm0            ## xmm0 = mem[0],zero
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	movdqu	%xmm0, 20(%r14)
	jmp	LBB0_15
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_6:
	movq	(%rax), %rax
	movq	_RES_ISP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	leaq	4(%rax), %rcx
LBB0_7:
	movl	(%rcx), %ecx
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movl	%eax, 20(%r14)
	movl	%ecx, 32(%r14)
	movl	%ecx, 28(%r14)
LBB0_15:
	xorl	%ebx, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OIF_SOURCE_PAD,8,3             ## @OIF_SOURCE_PAD
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_SUBDEV_FORMAT_TRY,4,2     ## @V4L2_SUBDEV_FORMAT_TRY
	.comm	_OIF_ISP_PAD,4,2                ## @OIF_ISP_PAD
	.comm	_RES_ISP,8,3                    ## @RES_ISP
	.comm	_OIF_JPEG_PAD,8,3               ## @OIF_JPEG_PAD
	.comm	_RES_JPEG,4,2                   ## @RES_JPEG
	.comm	_s5c73m3_resolutions_len,8,3    ## @s5c73m3_resolutions_len
	.comm	_s5c73m3_resolutions,8,3        ## @s5c73m3_resolutions
	.no_dead_strip	_s5c73m3_oif_enum_frame_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5c73m3_oif_enum_frame_size
_s5c73m3_oif_enum_frame_size:           ; @s5c73m3_oif_enum_frame_size
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_oif_sd_to_s5c73m3
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _OIF_SOURCE_PAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OIF_SOURCE_PAD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_8
; %bb.2:
	ldr	w8, [x19, #16]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.3:
	ldr	w8, [x19, #36]
Lloh3:
	adrp	x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.4:
Lloh6:
	adrp	x8, _OIF_ISP_PAD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OIF_ISP_PAD@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_v4l2_subdev_get_try_format
	mov	x8, x0
	add	x9, x0, #4
	b	LBB0_11
LBB0_5:
	ldr	w20, [x19, #16]
	mov	x0, x8
	mov	w1, #0
	bl	_s5c73m3_oif_get_pad_code
	cmp	w20, w0
	b.ne	LBB0_8
; %bb.6:
Lloh9:
	adrp	x8, _OIF_JPEG_PAD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OIF_JPEG_PAD@GOTPAGEOFF]
Lloh11:
	adrp	x9, _RES_JPEG@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RES_JPEG@GOTPAGEOFF]
Lloh13:
	adrp	x10, _RES_ISP@GOTPAGE
Lloh14:
	ldr	x10, [x10, _RES_ISP@GOTPAGEOFF]
Lloh15:
	ldr	x11, [x8]
	ldp	x12, x8, [x19]
	cmp	x12, x11
	csel	x9, x9, x10, eq
	ldrsw	x9, [x9]
Lloh16:
	adrp	x10, _s5c73m3_resolutions_len@GOTPAGE
Lloh17:
	ldr	x10, [x10, _s5c73m3_resolutions_len@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	ldr	x10, [x10, x9, lsl #3]
	cmp	x8, x10
	b.hs	LBB0_8
; %bb.7:
	mov	w0, #0
Lloh19:
	adrp	x10, _s5c73m3_resolutions@GOTPAGE
Lloh20:
	ldr	x10, [x10, _s5c73m3_resolutions@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	ldr	x9, [x10, x9, lsl #3]
	add	x10, x19, #20
	ldr	d0, [x9, x8, lsl #3]
	fmov	d1, d0
	st2.2s	{ v0, v1 }, [x10]
	b	LBB0_9
LBB0_8:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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_10:
	ldr	x8, [x0]
Lloh25:
	adrp	x9, _RES_ISP@GOTPAGE
Lloh26:
	ldr	x9, [x9, _RES_ISP@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	add	x9, x8, #4
LBB0_11:
	mov	w0, #0
	ldr	w9, [x9]
	ldr	w8, [x8]
	stp	w8, w8, [x19, #20]
	stp	w9, w9, [x19, #28]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_OIF_SOURCE_PAD,8,3             ; @OIF_SOURCE_PAD
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_SUBDEV_FORMAT_TRY,4,2     ; @V4L2_SUBDEV_FORMAT_TRY
	.comm	_OIF_ISP_PAD,4,2                ; @OIF_ISP_PAD
	.comm	_RES_ISP,8,3                    ; @RES_ISP
	.comm	_OIF_JPEG_PAD,8,3               ; @OIF_JPEG_PAD
	.comm	_RES_JPEG,4,2                   ; @RES_JPEG
	.comm	_s5c73m3_resolutions_len,8,3    ; @s5c73m3_resolutions_len
	.comm	_s5c73m3_resolutions,8,3        ; @s5c73m3_resolutions
	.no_dead_strip	_s5c73m3_oif_enum_frame_size
.subsections_via_symbols
