	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_s_fmt_vid_cap
_vidioc_s_fmt_vid_cap:                  ## @vidioc_s_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rdi, %rbx
	callq	_video_drvdata
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r13, %rdx
	callq	_vidioc_try_fmt_vid_cap
	testl	%eax, %eax
	js	LBB0_26
## %bb.1:
	movl	20(%r13), %edi
	callq	_format_by_fourcc
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %r12
	movq	%r15, %r14
	leaq	68(%r15), %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	64(%r14), %edi
	leaq	L_.str(%rip), %rdx
	movl	$1, %esi
	callq	_dprintk
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_26
LBB0_6:
	movq	40(%r14), %rax
	movq	%rax, -48(%rbp)
	movups	24(%r14), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	%r12, 48(%r14)
	movq	(%r13), %rbx
	movups	(%r13), %xmm0
	movups	%xmm0, (%r14)
	movl	16(%r13), %eax
	movl	%eax, 60(%r14)
	movq	%r14, %rdi
	callq	_norm_minw
	cmpq	%rax, %rbx
	jle	LBB0_12
## %bb.7:
	movq	8(%r14), %rbx
	movq	%r14, %rdi
	callq	_norm_minh
	cmpq	%rax, %rbx
	jle	LBB0_11
## %bb.8:
	movq	_V4L2_MODE_HIGHQUALITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 56(%r14)
	je	LBB0_10
## %bb.9:
	movq	_SCALE_4CIFSI@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movq	_SCALE_1CIFS@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_SCALE_2CIFS@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	movq	_SCALE_4CIFS@GOTPCREL(%rip), %rax
LBB0_13:
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	48(%r14), %rcx
	movl	(%rcx), %ecx
	leal	-131(%rcx), %edx
	cmpl	$2, %edx
	jb	LBB0_17
## %bb.14:
	cmpl	$129, %ecx
	je	LBB0_18
## %bb.15:
	cmpl	$133, %ecx
	jne	LBB0_19
## %bb.16:
	movq	_MASK_COLOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	notl	%edx
	andl	-56(%rbp), %edx
	movq	_COLOR_Y8@GOTPCREL(%rip), %rsi
	jmp	LBB0_20
LBB0_17:
	movq	_MASK_COLOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %esi
	notl	%esi
	andl	-56(%rbp), %esi
	movq	_COLOR_JPG@GOTPCREL(%rip), %rdx
	orl	(%rdx), %esi
	movl	16(%r14), %edx
	shll	$8, %edx
	orl	%esi, %edx
	jmp	LBB0_21
LBB0_18:
	movq	_MASK_COLOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	notl	%edx
	andl	-56(%rbp), %edx
	movq	_COLOR_YUVPL@GOTPCREL(%rip), %rsi
	jmp	LBB0_20
LBB0_19:
	movq	_MASK_COLOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	notl	%edx
	andl	-56(%rbp), %edx
	movq	_COLOR_YUVPK@GOTPCREL(%rip), %rsi
LBB0_20:
	orl	(%rsi), %edx
LBB0_21:
	movl	%edx, -56(%rbp)
	addq	$24, %r15
	xorl	32(%r14), %edx
	testl	%ecx, %edx
	jne	LBB0_24
## %bb.22:
	cmpq	(%r15), %rax
	jne	LBB0_24
## %bb.23:
	movq	-48(%rbp), %rax
	cmpq	40(%r14), %rax
	je	LBB0_25
LBB0_24:
	movl	$1, -52(%rbp)
LBB0_25:
	movq	-48(%rbp), %rax
	movq	%rax, 16(%r15)
	movq	-64(%rbp), %rax
	movq	%rax, (%r15)
	movl	-56(%rbp), %eax
	movl	%eax, 8(%r15)
	movl	-52(%rbp), %eax
	movl	%eax, 12(%r15)
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_s2255_set_mode
	xorl	%eax, %eax
LBB0_26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"queue busy\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_V4L2_MODE_HIGHQUALITY,4,2      ## @V4L2_MODE_HIGHQUALITY
	.comm	_SCALE_4CIFSI,8,3               ## @SCALE_4CIFSI
	.comm	_SCALE_4CIFS,8,3                ## @SCALE_4CIFS
	.comm	_SCALE_2CIFS,8,3                ## @SCALE_2CIFS
	.comm	_SCALE_1CIFS,8,3                ## @SCALE_1CIFS
	.comm	_MASK_COLOR,4,2                 ## @MASK_COLOR
	.comm	_COLOR_Y8,4,2                   ## @COLOR_Y8
	.comm	_COLOR_JPG,4,2                  ## @COLOR_JPG
	.comm	_COLOR_YUVPL,4,2                ## @COLOR_YUVPL
	.comm	_COLOR_YUVPK,4,2                ## @COLOR_YUVPK
	.no_dead_strip	_vidioc_s_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 vidioc_s_fmt_vid_cap
_vidioc_s_fmt_vid_cap:                  ; @vidioc_s_fmt_vid_cap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x2
	mov	x21, x0
	bl	_video_drvdata
	mov	x19, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_vidioc_try_fmt_vid_cap
	tbnz	w0, #31, LBB0_26
; %bb.1:
	ldr	w0, [x20, #20]
	bl	_format_by_fourcc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x0
	add	x0, x19, #68
	bl	_vb2_is_busy
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w0, [x19, #64]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dprintk
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_26
LBB0_6:
	ldur	q1, [x19, #24]
	ldr	x8, [x19, #40]
	str	x8, [sp, #32]
	str	x21, [x19, #48]
	ldr	q0, [x20]
	stp	q0, q1, [sp]                    ; 16-byte Folded Spill
	str	q0, [x19]
	ldr	w8, [x20, #16]
	str	w8, [x19, #60]
	mov	x0, x19
	bl	_norm_minw
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	fmov	x8, d0
	cmp	x8, x0
	b.le	LBB0_10
; %bb.7:
	ldr	x20, [x19, #8]
	mov	x0, x19
	bl	_norm_minh
	cmp	x20, x0
	b.le	LBB0_11
; %bb.8:
	ldr	w8, [x19, #56]
Lloh6:
	adrp	x9, _V4L2_MODE_HIGHQUALITY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_MODE_HIGHQUALITY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.9:
Lloh9:
	adrp	x8, _SCALE_4CIFSI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SCALE_4CIFSI@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
Lloh11:
	adrp	x8, _SCALE_1CIFS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SCALE_1CIFS@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh13:
	adrp	x8, _SCALE_2CIFS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SCALE_2CIFS@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh15:
	adrp	x8, _SCALE_4CIFS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SCALE_4CIFS@GOTPAGEOFF]
LBB0_13:
	ldr	x8, [x8]
	str	x8, [sp, #16]
	ldr	x9, [x19, #48]
	ldr	w9, [x9]
	sub	w10, w9, #131
	cmp	w10, #2
	b.lo	LBB0_17
; %bb.14:
	cmp	w9, #129
	b.eq	LBB0_18
; %bb.15:
	cmp	w9, #133
	b.ne	LBB0_19
; %bb.16:
Lloh17:
	adrp	x9, _MASK_COLOR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MASK_COLOR@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	ldr	w10, [sp, #24]
	bic	w10, w10, w9
Lloh20:
	adrp	x11, _COLOR_Y8@GOTPAGE
Lloh21:
	ldr	x11, [x11, _COLOR_Y8@GOTPAGEOFF]
	b	LBB0_20
LBB0_17:
Lloh22:
	adrp	x9, _MASK_COLOR@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MASK_COLOR@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	ldr	w10, [sp, #24]
Lloh25:
	adrp	x11, _COLOR_JPG@GOTPAGE
Lloh26:
	ldr	x11, [x11, _COLOR_JPG@GOTPAGEOFF]
	bic	w10, w10, w9
Lloh27:
	ldr	w11, [x11]
	orr	w10, w11, w10
	ldr	w11, [x19, #16]
	orr	w10, w10, w11, lsl #8
	b	LBB0_21
LBB0_18:
Lloh28:
	adrp	x9, _MASK_COLOR@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MASK_COLOR@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	ldr	w10, [sp, #24]
	bic	w10, w10, w9
Lloh31:
	adrp	x11, _COLOR_YUVPL@GOTPAGE
Lloh32:
	ldr	x11, [x11, _COLOR_YUVPL@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
Lloh33:
	adrp	x9, _MASK_COLOR@GOTPAGE
Lloh34:
	ldr	x9, [x9, _MASK_COLOR@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	ldr	w10, [sp, #24]
	bic	w10, w10, w9
Lloh36:
	adrp	x11, _COLOR_YUVPK@GOTPAGE
Lloh37:
	ldr	x11, [x11, _COLOR_YUVPK@GOTPAGEOFF]
LBB0_20:
	ldr	w11, [x11]
	orr	w10, w11, w10
LBB0_21:
	str	w10, [sp, #24]
	add	x11, x19, #24
	ldr	w12, [x19, #32]
	eor	w10, w12, w10
	tst	w10, w9
	b.ne	LBB0_24
; %bb.22:
	ldr	x9, [x11]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.23:
	ldr	x8, [sp, #32]
	ldr	x9, [x19, #40]
	cmp	x8, x9
	b.eq	LBB0_25
LBB0_24:
	mov	w8, #1
	str	w8, [sp, #28]
LBB0_25:
	ldr	q0, [sp, #16]
	str	q0, [x11]
	ldr	x8, [sp, #32]
	str	x8, [x11, #16]
	add	x1, sp, #16
	mov	x0, x19
	bl	_s2255_set_mode
	mov	w0, #0
LBB0_26:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"queue busy\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_V4L2_MODE_HIGHQUALITY,4,2      ; @V4L2_MODE_HIGHQUALITY
	.comm	_SCALE_4CIFSI,8,3               ; @SCALE_4CIFSI
	.comm	_SCALE_4CIFS,8,3                ; @SCALE_4CIFS
	.comm	_SCALE_2CIFS,8,3                ; @SCALE_2CIFS
	.comm	_SCALE_1CIFS,8,3                ; @SCALE_1CIFS
	.comm	_MASK_COLOR,4,2                 ; @MASK_COLOR
	.comm	_COLOR_Y8,4,2                   ; @COLOR_Y8
	.comm	_COLOR_JPG,4,2                  ; @COLOR_JPG
	.comm	_COLOR_YUVPL,4,2                ; @COLOR_YUVPL
	.comm	_COLOR_YUVPK,4,2                ; @COLOR_YUVPK
	.no_dead_strip	_vidioc_s_fmt_vid_cap
.subsections_via_symbols
