	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_try_fmt
_vidioc_try_fmt:                        ## @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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	cmpq	$0, (%rdi)
	jne	LBB0_1
## %bb.2:
	movq	_pixfmt_fwht@GOTPCREL(%rip), %r14
	jmp	LBB0_3
LBB0_1:
	movq	_pixfmt_stateless_fwht@GOTPCREL(%rip), %r14
LBB0_3:
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_16
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	movq	40(%rbx), %r15
	movl	24(%rbx), %edi
	movq	_V4L2_PIX_FMT_FWHT@GOTPCREL(%rip), %r12
	cmpl	(%r12), %edi
	je	LBB0_13
## %bb.11:
	movq	_V4L2_PIX_FMT_FWHT_STATELESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	je	LBB0_13
## %bb.12:
	callq	_find_fmt
	movq	%rax, %r14
LBB0_13:
	movl	$1, 8(%rbx)
	movl	12(%rbx), %edi
	movq	_MIN_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_clamp
	movl	%eax, 12(%rbx)
	movl	16(%r14), %esi
	movl	%eax, %edi
	callq	_vic_round_dim
	movl	%eax, 12(%rbx)
	movl	16(%rbx), %edi
	movq	_MIN_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_clamp
	movl	%eax, 16(%rbx)
	movl	12(%r14), %esi
	movl	%eax, %edi
	callq	_vic_round_dim
	movl	%eax, 16(%rbx)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 32(%rbx)
	movl	12(%rbx), %ecx
	movl	(%r14), %edx
	imull	%ecx, %edx
	movl	%edx, (%r15)
	imull	%ecx, %eax
	imull	4(%r14), %eax
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	8(%r14)
	movl	%eax, 4(%r15)
	movl	24(%rbx), %ecx
	cmpl	(%r12), %ecx
	jne	LBB0_15
## %bb.14:
	addl	$4, %eax
	movl	%eax, 4(%r15)
LBB0_15:
	movl	20(%rbx), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	8(%r15), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	jmp	LBB0_17
LBB0_5:
	movl	64(%rbx), %edi
	movq	_V4L2_PIX_FMT_FWHT@GOTPCREL(%rip), %r15
	cmpl	(%r15), %edi
	je	LBB0_8
## %bb.6:
	movq	_V4L2_PIX_FMT_FWHT_STATELESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	je	LBB0_8
## %bb.7:
	callq	_find_fmt
	movq	%rax, %r14
LBB0_8:
	movl	48(%rbx), %edi
	movq	_MIN_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_clamp
	movl	%eax, 48(%rbx)
	movl	16(%r14), %esi
	movl	%eax, %edi
	callq	_vic_round_dim
	movl	%eax, 48(%rbx)
	movl	52(%rbx), %edi
	movq	_MIN_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_clamp
	movl	%eax, 52(%rbx)
	movl	12(%r14), %esi
	movl	%eax, %edi
	callq	_vic_round_dim
	movl	%eax, 52(%rbx)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 72(%rbx)
	movl	48(%rbx), %ecx
	movl	64(%rbx), %esi
	movl	(%r14), %edx
	imull	%ecx, %edx
	movl	%edx, 56(%rbx)
	imull	%ecx, %eax
	imull	4(%r14), %eax
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	8(%r14)
	movl	%eax, 60(%rbx)
	xorl	%r14d, %r14d
	cmpl	(%r15), %esi
	jne	LBB0_17
## %bb.9:
	addl	$4, %eax
	movl	%eax, 60(%rbx)
	jmp	LBB0_17
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_17:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_5
	.long	L0_0_set_10
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_pixfmt_stateless_fwht,20,2     ## @pixfmt_stateless_fwht
	.comm	_pixfmt_fwht,20,2               ## @pixfmt_fwht
	.comm	_V4L2_PIX_FMT_FWHT,4,2          ## @V4L2_PIX_FMT_FWHT
	.comm	_V4L2_PIX_FMT_FWHT_STATELESS,4,2 ## @V4L2_PIX_FMT_FWHT_STATELESS
	.comm	_MIN_WIDTH,4,2                  ## @MIN_WIDTH
	.comm	_MAX_WIDTH,4,2                  ## @MAX_WIDTH
	.comm	_MIN_HEIGHT,4,2                 ## @MIN_HEIGHT
	.comm	_MAX_HEIGHT,4,2                 ## @MAX_HEIGHT
	.comm	_V4L2_FIELD_NONE,8,3            ## @V4L2_FIELD_NONE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_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 vidioc_try_fmt
_vidioc_try_fmt:                        ; @vidioc_try_fmt
	.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
Lloh0:
	adrp	x8, _pixfmt_stateless_fwht@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pixfmt_stateless_fwht@GOTPAGEOFF]
Lloh2:
	adrp	x9, _pixfmt_fwht@GOTPAGE
Lloh3:
	ldr	x9, [x9, _pixfmt_fwht@GOTPAGEOFF]
	ldr	x10, [x0]
	cmp	x10, #0
	csel	x20, x9, x8, eq
	ldr	w8, [x1]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_12
; %bb.1:
	mov	x19, x1
Lloh4:
	adrp	x9, lJTI0_0@PAGE
Lloh5:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x21, [x19, #40]
	ldr	w0, [x19, #24]
Lloh6:
	adrp	x22, _V4L2_PIX_FMT_FWHT@GOTPAGE
Lloh7:
	ldr	x22, [x22, _V4L2_PIX_FMT_FWHT@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh8:
	adrp	x9, _V4L2_PIX_FMT_FWHT_STATELESS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _V4L2_PIX_FMT_FWHT_STATELESS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.eq	LBB0_4
; %bb.3:
	bl	_find_fmt
	mov	x20, x0
LBB0_4:
	mov	w8, #1
	str	w8, [x19, #8]
	ldr	w0, [x19, #12]
Lloh11:
	adrp	x8, _MIN_WIDTH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MIN_WIDTH@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _MAX_WIDTH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAX_WIDTH@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	bl	_clamp
	str	w0, [x19, #12]
	ldr	w1, [x20, #16]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_vic_round_dim
	str	w0, [x19, #12]
	ldr	w0, [x19, #16]
Lloh17:
	adrp	x8, _MIN_HEIGHT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MIN_HEIGHT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _MAX_HEIGHT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MAX_HEIGHT@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	bl	_clamp
	str	w0, [x19, #16]
	ldr	w1, [x20, #12]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_vic_round_dim
	str	w0, [x19, #16]
Lloh23:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	x8, [x19, #32]
	ldr	w8, [x19, #12]
	ldp	w9, w10, [x20]
	mul	w9, w9, w8
	mul	w8, w8, w0
	mul	w8, w8, w10
	ldr	w10, [x20, #8]
	sdiv	w8, w8, w10
	stp	w9, w8, [x21]
	ldr	w9, [x19, #24]
	ldr	w10, [x22]
	cmp	w9, w10
	b.ne	LBB0_6
; %bb.5:
	add	w8, w8, #4
	str	w8, [x21, #4]
LBB0_6:
	ldr	w0, [x19, #20]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [x21, #8]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	b	LBB0_11
LBB0_7:
	ldr	w0, [x19, #64]
Lloh26:
	adrp	x21, _V4L2_PIX_FMT_FWHT@GOTPAGE
Lloh27:
	ldr	x21, [x21, _V4L2_PIX_FMT_FWHT@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh28:
	adrp	x9, _V4L2_PIX_FMT_FWHT_STATELESS@GOTPAGE
Lloh29:
	ldr	x9, [x9, _V4L2_PIX_FMT_FWHT_STATELESS@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.eq	LBB0_9
; %bb.8:
	bl	_find_fmt
	mov	x20, x0
LBB0_9:
	ldr	w0, [x19, #48]
Lloh31:
	adrp	x8, _MIN_WIDTH@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MIN_WIDTH@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x8, _MAX_WIDTH@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MAX_WIDTH@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	bl	_clamp
	str	w0, [x19, #48]
	ldr	w1, [x20, #16]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_vic_round_dim
	str	w0, [x19, #48]
	ldr	w0, [x19, #52]
Lloh37:
	adrp	x8, _MIN_HEIGHT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MIN_HEIGHT@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x8, _MAX_HEIGHT@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MAX_HEIGHT@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	bl	_clamp
	str	w0, [x19, #52]
	ldr	w1, [x20, #12]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_vic_round_dim
Lloh43:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	str	x8, [x19, #72]
	ldr	w8, [x19, #48]
	ldp	w9, w10, [x20]
	mul	w9, w9, w8
	stp	w0, w9, [x19, #52]
	mul	w8, w8, w0
	mul	w8, w8, w10
	ldr	w9, [x20, #8]
	sdiv	w8, w8, w9
	str	w8, [x19, #60]
	ldr	w9, [x19, #64]
	ldr	w10, [x21]
	cmp	w9, w10
	b.ne	LBB0_11
; %bb.10:
	mov	w0, #0
	add	w8, w8, #4
	str	w8, [x19, #60]
	b	LBB0_13
LBB0_11:
	mov	w0, #0
	b	LBB0_13
LBB0_12:
Lloh46:
	adrp	x8, _EINVAL@GOTPAGE
Lloh47:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh48:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_pixfmt_stateless_fwht,20,2     ; @pixfmt_stateless_fwht
	.comm	_pixfmt_fwht,20,2               ; @pixfmt_fwht
	.comm	_V4L2_PIX_FMT_FWHT,4,2          ; @V4L2_PIX_FMT_FWHT
	.comm	_V4L2_PIX_FMT_FWHT_STATELESS,4,2 ; @V4L2_PIX_FMT_FWHT_STATELESS
	.comm	_MIN_WIDTH,4,2                  ; @MIN_WIDTH
	.comm	_MAX_WIDTH,4,2                  ; @MAX_WIDTH
	.comm	_MIN_HEIGHT,4,2                 ; @MIN_HEIGHT
	.comm	_MAX_HEIGHT,4,2                 ; @MAX_HEIGHT
	.comm	_V4L2_FIELD_NONE,8,3            ; @V4L2_FIELD_NONE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vidioc_try_fmt
.subsections_via_symbols
