	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwc_decode_size                ## -- Begin function pwc_decode_size
	.p2align	4, 0x90
_pwc_decode_size:                       ## @pwc_decode_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_V4L2_PIX_FMT_YUV420@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rax
	cmpl	%esi, 12(%rdi)
	jl	LBB0_5
## %bb.2:
	cmpl	%edx, 16(%rdi)
	jl	LBB0_5
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rax
	cmpl	%esi, 20(%rdi)
	jl	LBB0_5
## %bb.4:
	cmpl	%edx, 24(%rdi)
	jge	LBB0_6
LBB0_5:
	movq	%rax, %rdi
	callq	_PWC_DEBUG_SIZE
LBB0_14:
	movl	$-1, %eax
	popq	%rbp
	retq
LBB0_6:
	movq	_PSZ_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_14
## %bb.7:
	movl	8(%rdi), %r11d
	movq	_pwc_image_sizes@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	cmpl	$1, %r8d
	jne	LBB0_15
## %bb.8:
	movl	$-1, %eax
	xorl	%ecx, %ecx
LBB0_9:
	testb	$1, %r8b
	je	LBB0_13
## %bb.10:
	btl	%ecx, %r11d
	jae	LBB0_13
## %bb.11:
	cmpl	%esi, (%r9,%rcx,8)
	jg	LBB0_13
## %bb.12:
	cmpl	%edx, 4(%r9,%rcx,8)
	cmovlel	%ecx, %eax
LBB0_13:
	popq	%rbp
	retq
LBB0_15:
	movl	%r8d, %r10d
	andl	$-2, %r10d
	movl	$-1, %eax
	xorl	%ecx, %ecx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	addq	$2, %rcx
	cmpq	%rcx, %r10
	je	LBB0_9
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	btl	%ecx, %r11d
	jae	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpl	%esi, (%r9,%rcx,8)
	jg	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpl	%edx, 4(%r9,%rcx,8)
	cmovlel	%ecx, %eax
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	leaq	1(%rcx), %rdi
	btl	%edi, %r11d
	jae	LBB0_16
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpl	%esi, 8(%r9,%rcx,8)
	jg	LBB0_16
## %bb.22:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpl	%edx, 12(%r9,%rcx,8)
	cmovgl	%eax, %edi
	movl	%edi, %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_PIX_FMT_YUV420,8,3        ## @V4L2_PIX_FMT_YUV420
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VIDEO_PALETTE_RAW: going beyond abs_max.\n"

L_.str.1:                               ## @.str.1
	.asciz	"VIDEO_PALETTE_not RAW: going beyond view_max.\n"

	.comm	_PSZ_MAX,4,2                    ## @PSZ_MAX
	.comm	_pwc_image_sizes,8,3            ## @pwc_image_sizes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwc_decode_size                ; -- Begin function pwc_decode_size
	.p2align	2
_pwc_decode_size:                       ; @pwc_decode_size
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
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.ne	LBB0_4
; %bb.1:
	ldr	w8, [x0, #12]
	cmp	w8, w1
	b.lt	LBB0_3
; %bb.2:
	ldr	w8, [x0, #16]
	cmp	w8, w2
	b.ge	LBB0_9
LBB0_3:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_4:
	ldr	w8, [x0, #20]
	cmp	w8, w1
	b.lt	LBB0_6
; %bb.5:
	ldr	w8, [x0, #24]
	cmp	w8, w2
	b.ge	LBB0_9
LBB0_6:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	bl	_PWC_DEBUG_SIZE
LBB0_8:
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh7:
	adrp	x8, _PSZ_MAX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PSZ_MAX@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.10:
	mov	x9, #0
	ldr	w10, [x0, #8]
Lloh10:
	adrp	x11, _pwc_image_sizes@GOTPAGE
Lloh11:
	ldr	x11, [x11, _pwc_image_sizes@GOTPAGEOFF]
Lloh12:
	ldr	x11, [x11]
	add	x11, x11, #4
	mov	w0, #-1
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x9, x9, #1
	add	x11, x11, #8
	cmp	x8, x9
	b.eq	LBB0_15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	lsr	w12, w10, w9
	tbz	w12, #0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldur	w12, [x11, #-4]
	cmp	w12, w1
	b.gt	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w12, [x11]
	cmp	w12, w2
	csel	w0, w0, w9, gt
	b	LBB0_11
LBB0_15:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_PIX_FMT_YUV420,8,3        ; @V4L2_PIX_FMT_YUV420
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VIDEO_PALETTE_RAW: going beyond abs_max.\n"

l_.str.1:                               ; @.str.1
	.asciz	"VIDEO_PALETTE_not RAW: going beyond view_max.\n"

	.comm	_PSZ_MAX,4,2                    ; @PSZ_MAX
	.comm	_pwc_image_sizes,8,3            ; @pwc_image_sizes
.subsections_via_symbols
