	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwc_enum_framesizes
_pwc_enum_framesizes:                   ## @pwc_enum_framesizes
	.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, %r15
	callq	_video_drvdata
	movq	%rax, %r14
	movl	(%r15), %ebx
	movq	8(%r15), %rax
	movq	_V4L2_PIX_FMT_YUV420@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.1:
	movq	_V4L2_PIX_FMT_PWC1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movl	8(%r14), %edi
	callq	_DEVICE_USE_CODEC1
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	8(%r15), %rax
LBB0_4:
	movq	_V4L2_PIX_FMT_PWC2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.5:
	movl	8(%r14), %edi
	callq	_DEVICE_USE_CODEC23
	testq	%rax, %rax
	je	LBB0_12
LBB0_6:
	movq	_PSZ_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.7:
	movq	(%r14), %rdx
	xorl	%eax, %eax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	je	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	btq	%rax, %rdx
	jae	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	subl	$1, %ebx
	jae	LBB0_11
## %bb.10:
	movq	_V4L2_FRMSIZE_TYPE_DISCRETE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%r15)
	movq	_pwc_image_sizes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 24(%r15)
	movq	(%rcx,%rax,8), %rax
	movq	8(%rax), %rax
	movq	%rax, 16(%r15)
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_PIX_FMT_YUV420,8,3        ## @V4L2_PIX_FMT_YUV420
	.comm	_V4L2_PIX_FMT_PWC1,8,3          ## @V4L2_PIX_FMT_PWC1
	.comm	_V4L2_PIX_FMT_PWC2,8,3          ## @V4L2_PIX_FMT_PWC2
	.comm	_PSZ_MAX,4,2                    ## @PSZ_MAX
	.comm	_V4L2_FRMSIZE_TYPE_DISCRETE,4,2 ## @V4L2_FRMSIZE_TYPE_DISCRETE
	.comm	_pwc_image_sizes,8,3            ## @pwc_image_sizes
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pwc_enum_framesizes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwc_enum_framesizes
_pwc_enum_framesizes:                   ; @pwc_enum_framesizes
	.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
	bl	_video_drvdata
	mov	x20, x0
	ldr	w21, [x19]
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _V4L2_PIX_FMT_YUV420@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_PIX_FMT_YUV420@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.1:
Lloh3:
	adrp	x9, _V4L2_PIX_FMT_PWC1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_PIX_FMT_PWC1@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x20, #8]
	bl	_DEVICE_USE_CODEC1
	cbnz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x19, #8]
LBB0_4:
Lloh6:
	adrp	x9, _V4L2_PIX_FMT_PWC2@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_PIX_FMT_PWC2@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.5:
	ldr	w0, [x20, #8]
	bl	_DEVICE_USE_CODEC23
	cbz	x0, LBB0_12
LBB0_6:
Lloh9:
	adrp	x8, _PSZ_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PSZ_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x8]
	cbz	w9, LBB0_12
; %bb.7:
	mov	x8, #0
	ldr	x10, [x20]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.eq	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	lsr	x11, x10, x8
	tbz	w11, #0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cbz	w21, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	w21, w21, #1
	b	LBB0_8
LBB0_12:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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_14:
	mov	w0, #0
Lloh15:
	adrp	x9, _V4L2_FRMSIZE_TYPE_DISCRETE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _V4L2_FRMSIZE_TYPE_DISCRETE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	str	w9, [x19, #32]
Lloh18:
	adrp	x9, _pwc_image_sizes@GOTPAGE
Lloh19:
	ldr	x9, [x9, _pwc_image_sizes@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	lsl	x8, x8, #3
	ldr	x10, [x9, x8]
	ldr	x10, [x10]
	str	x10, [x19, #24]
	ldr	x8, [x9, x8]
	ldr	x8, [x8, #8]
	str	x8, [x19, #16]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_PIX_FMT_YUV420,8,3        ; @V4L2_PIX_FMT_YUV420
	.comm	_V4L2_PIX_FMT_PWC1,8,3          ; @V4L2_PIX_FMT_PWC1
	.comm	_V4L2_PIX_FMT_PWC2,8,3          ; @V4L2_PIX_FMT_PWC2
	.comm	_PSZ_MAX,4,2                    ; @PSZ_MAX
	.comm	_V4L2_FRMSIZE_TYPE_DISCRETE,4,2 ; @V4L2_FRMSIZE_TYPE_DISCRETE
	.comm	_pwc_image_sizes,8,3            ; @pwc_image_sizes
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_pwc_enum_framesizes
.subsections_via_symbols
