	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwc_enum_fmt_vid_cap
_pwc_enum_fmt_vid_cap:                  ## @pwc_enum_fmt_vid_cap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	movl	(%rbx), %ecx
	cmpl	$1, %ecx
	je	LBB0_6
## %bb.1:
	testl	%ecx, %ecx
	jne	LBB0_7
## %bb.2:
	cmpl	$647, (%rax)                    ## imm = 0x287
	jge	LBB0_3
## %bb.4:
	movq	_V4L2_PIX_FMT_PWC1@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	_V4L2_PIX_FMT_YUV420@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_3:
	movq	_V4L2_PIX_FMT_PWC2@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_PIX_FMT_PWC1,4,2          ## @V4L2_PIX_FMT_PWC1
	.comm	_V4L2_PIX_FMT_PWC2,4,2          ## @V4L2_PIX_FMT_PWC2
	.comm	_V4L2_PIX_FMT_YUV420,4,2        ## @V4L2_PIX_FMT_YUV420
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pwc_enum_fmt_vid_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwc_enum_fmt_vid_cap
_pwc_enum_fmt_vid_cap:                  ; @pwc_enum_fmt_vid_cap
	.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
	mov	x19, x2
	bl	_video_drvdata
	ldr	w9, [x19]
	cmp	w9, #1
	b.eq	LBB0_3
; %bb.1:
	cbnz	w9, LBB0_5
; %bb.2:
	mov	x8, x0
	mov	w0, #0
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _V4L2_PIX_FMT_PWC1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_PIX_FMT_PWC1@GOTPAGEOFF]
Lloh2:
	adrp	x10, _V4L2_PIX_FMT_PWC2@GOTPAGE
Lloh3:
	ldr	x10, [x10, _V4L2_PIX_FMT_PWC2@GOTPAGEOFF]
	cmp	w8, #647
	csel	x8, x9, x10, lt
	b	LBB0_4
LBB0_3:
	mov	w0, #0
Lloh4:
	adrp	x8, _V4L2_PIX_FMT_YUV420@GOTPAGE
Lloh5:
	ldr	x8, [x8, _V4L2_PIX_FMT_YUV420@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_PIX_FMT_PWC1,4,2          ; @V4L2_PIX_FMT_PWC1
	.comm	_V4L2_PIX_FMT_PWC2,4,2          ; @V4L2_PIX_FMT_PWC2
	.comm	_V4L2_PIX_FMT_YUV420,4,2        ; @V4L2_PIX_FMT_YUV420
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_pwc_enum_fmt_vid_cap
.subsections_via_symbols
