	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwc_vidioc_try_fmt
_pwc_vidioc_try_fmt:                    ## @pwc_vidioc_try_fmt
	.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	(%rsi), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	8(%rsi), %eax
	cmpl	$128, %eax
	je	LBB0_11
## %bb.3:
	cmpl	$129, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$130, %eax
	jne	LBB0_5
## %bb.6:
	movl	(%r14), %edi
	callq	_DEVICE_USE_CODEC23
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_PWC_DEBUG_IOCTL
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_8:
	movl	(%r14), %edi
	callq	_DEVICE_USE_CODEC1
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
LBB0_10:
	callq	_PWC_DEBUG_IOCTL
	movl	$128, 8(%rbx)
LBB0_11:
	movl	12(%rbx), %edx
	movl	16(%rbx), %esi
	movq	%r14, %rdi
	callq	_pwc_get_size
	movq	_pwc_image_sizes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edx
	movl	8(%rbx), %ecx
	movq	%rbx, %rdi
	callq	_pwc_vidioc_fill_fmt
	xorl	%eax, %eax
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad video type must be V4L2_BUF_TYPE_VIDEO_CAPTURE\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"codec1 is only supported for old pwc webcam\n"

L_.str.2:                               ## @.str.2
	.asciz	"codec23 is only supported for new pwc webcam\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unsupported pixel format\n"

	.comm	_pwc_image_sizes,8,3            ## @pwc_image_sizes
	.no_dead_strip	_pwc_vidioc_try_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwc_vidioc_try_fmt
_pwc_vidioc_try_fmt:                    ; @pwc_vidioc_try_fmt
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1, #8]
	cmp	w8, #128
	b.eq	LBB0_11
; %bb.2:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #130
	b.ne	LBB0_9
; %bb.4:
	ldr	w0, [x20]
	bl	_DEVICE_USE_CODEC23
	cbz	w0, LBB0_11
; %bb.5:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_6:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_PWC_DEBUG_IOCTL
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_7:
	ldr	w0, [x20]
	bl	_DEVICE_USE_CODEC1
	cbz	w0, LBB0_11
; %bb.8:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_10:
	bl	_PWC_DEBUG_IOCTL
	mov	w8, #128
	str	w8, [x19, #8]
LBB0_11:
	ldp	w2, w1, [x19, #12]
	mov	x0, x20
	bl	_pwc_get_size
Lloh14:
	adrp	x8, _pwc_image_sizes@GOTPAGE
Lloh15:
	ldr	x8, [x8, _pwc_image_sizes@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
	ldp	w1, w2, [x8]
	ldr	w3, [x19, #8]
	mov	x0, x19
	bl	_pwc_vidioc_fill_fmt
	mov	w0, #0
LBB0_12:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad video type must be V4L2_BUF_TYPE_VIDEO_CAPTURE\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"codec1 is only supported for old pwc webcam\n"

l_.str.2:                               ; @.str.2
	.asciz	"codec23 is only supported for new pwc webcam\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unsupported pixel format\n"

	.comm	_pwc_image_sizes,8,3            ; @pwc_image_sizes
	.no_dead_strip	_pwc_vidioc_try_fmt
.subsections_via_symbols
