	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enum_fmt
_enum_fmt:                              ## @enum_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	cmpq	$0, 8(%rsi)
	sete	%r15b
	testl	%edx, %edx
	setne	%bl
	movl	16(%rdi), %edi
	callq	_V4L2_TYPE_IS_MULTIPLANAR
	movq	_multiplanar@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpq	$0, (%r13)
	je	LBB0_2
LBB0_3:
	movl	16(%r14), %edi
	callq	_V4L2_TYPE_IS_MULTIPLANAR
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	cmpq	$0, (%r13)
	jne	LBB0_2
LBB0_5:
	xorb	%r15b, %bl
	je	LBB0_12
## %bb.6:
	movl	16(%r14), %esi
	movq	%r12, %rdi
	callq	_get_q_data
	cmpq	$0, 8(%r12)
	je	LBB0_7
LBB0_8:
	movq	8(%r14), %rdi
	callq	_v4l2_fwht_get_pixfmt
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_2
LBB0_12:
	cmpq	$0, 8(%r14)
	je	LBB0_13
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%rax), %rbx
	movq	16(%r12), %rdi
	callq	_vb2_is_streaming
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	16(%rbx), %edi
	movl	12(%rbx), %esi
	movl	4(%rbx), %ecx
	movl	8(%rbx), %edx
	movq	8(%r14), %r8
	callq	_v4l2_fwht_find_nth_fmt
	testq	%rax, %rax
	je	LBB0_2
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_13:
	movq	(%r12), %rcx
	testq	%rcx, %rcx
	jne	LBB0_14
## %bb.15:
	movq	_V4L2_PIX_FMT_FWHT@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	_V4L2_PIX_FMT_FWHT_STATELESS@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
	orq	8(%r12), %rcx
	jne	LBB0_18
## %bb.17:
	movq	_V4L2_FMT_FLAG_DYN_RESOLUTION@GOTPCREL(%rip), %rcx
	movq	_V4L2_FMT_FLAG_CONTINUOUS_BYTESTREAM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%edx, (%r14)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_multiplanar,8,3                ## @multiplanar
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_PIX_FMT_FWHT_STATELESS,4,2 ## @V4L2_PIX_FMT_FWHT_STATELESS
	.comm	_V4L2_PIX_FMT_FWHT,4,2          ## @V4L2_PIX_FMT_FWHT
	.comm	_V4L2_FMT_FLAG_DYN_RESOLUTION,4,2 ## @V4L2_FMT_FLAG_DYN_RESOLUTION
	.comm	_V4L2_FMT_FLAG_CONTINUOUS_BYTESTREAM,4,2 ## @V4L2_FMT_FLAG_CONTINUOUS_BYTESTREAM
	.no_dead_strip	_enum_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enum_fmt
_enum_fmt:                              ; @enum_fmt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #8]
	cmp	x8, #0
	cset	w21, eq
	cmp	w2, #0
	cset	w22, ne
	ldr	w0, [x0, #16]
	bl	_V4L2_TYPE_IS_MULTIPLANAR
Lloh0:
	adrp	x23, _multiplanar@GOTPAGE
Lloh1:
	ldr	x23, [x23, _multiplanar@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, #0
	ccmp	x8, #0, #0, ne
	b.eq	LBB0_6
; %bb.1:
	ldr	w0, [x19, #16]
	bl	_V4L2_TYPE_IS_MULTIPLANAR
	ldr	x8, [x23]
	cmp	x0, #0
	ccmp	x8, #0, #4, eq
	b.ne	LBB0_6
; %bb.2:
	eor	w8, w22, w21
	cbz	w8, LBB0_5
; %bb.3:
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_get_q_data
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
LBB0_4:
	ldr	x0, [x19, #8]
	bl	_v4l2_fwht_get_pixfmt
	mov	x8, x0
	cbnz	x0, LBB0_10
	b	LBB0_6
LBB0_5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x21, [x0]
	ldr	x0, [x20, #16]
	bl	_vb2_is_streaming
	cbz	w0, LBB0_4
; %bb.9:
	ldp	w1, w0, [x21, #12]
	ldp	w3, w2, [x21, #4]
	ldr	x4, [x19, #8]
	bl	_v4l2_fwht_find_nth_fmt
	mov	x8, x0
	cbz	x0, LBB0_6
LBB0_10:
	mov	w0, #0
	ldr	w8, [x8]
	str	w8, [x19, #4]
	b	LBB0_7
LBB0_11:
Lloh5:
	adrp	x8, _V4L2_PIX_FMT_FWHT_STATELESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_PIX_FMT_FWHT_STATELESS@GOTPAGEOFF]
Lloh7:
	adrp	x9, _V4L2_PIX_FMT_FWHT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _V4L2_PIX_FMT_FWHT@GOTPAGEOFF]
	ldp	x10, x11, [x20]
	cmp	x10, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	w0, #0
	orr	x8, x11, x10
	cbnz	x8, LBB0_7
; %bb.12:
Lloh9:
	adrp	x8, _V4L2_FMT_FLAG_DYN_RESOLUTION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_FMT_FLAG_DYN_RESOLUTION@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _V4L2_FMT_FLAG_CONTINUOUS_BYTESTREAM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _V4L2_FMT_FLAG_CONTINUOUS_BYTESTREAM@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_multiplanar,8,3                ; @multiplanar
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_PIX_FMT_FWHT_STATELESS,4,2 ; @V4L2_PIX_FMT_FWHT_STATELESS
	.comm	_V4L2_PIX_FMT_FWHT,4,2          ; @V4L2_PIX_FMT_FWHT
	.comm	_V4L2_FMT_FLAG_DYN_RESOLUTION,4,2 ; @V4L2_FMT_FLAG_DYN_RESOLUTION
	.comm	_V4L2_FMT_FLAG_CONTINUOUS_BYTESTREAM,4,2 ; @V4L2_FMT_FLAG_CONTINUOUS_BYTESTREAM
	.no_dead_strip	_enum_fmt
.subsections_via_symbols
