	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdx), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movq	8(%rdx), %rcx
	movq	_V4L2_FIELD_ANY@GOTPCREL(%rip), %rdx
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.3:
	cmpq	%rax, %rcx
	je	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_4:
	movq	%rax, 8(%rbx)
	movq	_meye@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	xorl	%eax, %eax
	cmpl	$321, 16(%rbx)                  ## imm = 0x141
	setl	%al
	movl	$320, %ecx                      ## imm = 0x140
	movl	$640, %edx                      ## imm = 0x280
	cmovll	%ecx, %edx
	movl	$240, %ecx
	movl	$480, %esi                      ## imm = 0x1E0
	cmovll	%ecx, %esi
	movl	%edx, 16(%rbx)
	movl	%esi, 20(%rbx)
	movl	%eax, 8(%r14)
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.6:
	cmpl	$129, %eax
	jne	LBB0_9
## %bb.7:
	movq	_MCHIP_HIC_MODE_CONT_COMP@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_MCHIP_HIC_MODE_CONT_OUT@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
LBB0_9:
	movq	_meye@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	16(%rbx), %eax
	addl	%eax, %eax
	movl	%eax, 24(%rbx)
	imull	20(%rbx), %eax
	movl	%eax, 28(%rbx)
	movq	$0, 32(%rbx)
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FIELD_ANY,8,3             ## @V4L2_FIELD_ANY
	.comm	_V4L2_FIELD_NONE,8,3            ## @V4L2_FIELD_NONE
	.comm	_meye,12,2                      ## @meye
	.comm	_MCHIP_HIC_MODE_CONT_OUT,4,2    ## @MCHIP_HIC_MODE_CONT_OUT
	.comm	_MCHIP_HIC_MODE_CONT_COMP,4,2   ## @MCHIP_HIC_MODE_CONT_COMP
	.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
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function vidioc_s_fmt_vid_cap
lCPI0_0:
	.long	640                             ; 0x280
	.long	480                             ; 0x1e0
lCPI0_1:
	.long	320                             ; 0x140
	.long	240                             ; 0xf0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_vidioc_s_fmt_vid_cap:                  ; @vidioc_s_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
	ldr	w8, [x2]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x2
	ldr	x9, [x2, #8]
Lloh0:
	adrp	x8, _V4L2_FIELD_ANY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_FIELD_ANY@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
Lloh3:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x9, x10
	ccmp	x9, x8, #4, ne
	b.ne	LBB0_5
; %bb.2:
	str	x8, [x19, #8]
Lloh6:
	adrp	x20, _meye@GOTPAGE
Lloh7:
	ldr	x20, [x20, _meye@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x19, #16]
	cmp	w8, #321
	cset	w8, lt
	dup.2s	v0, w8
	shl.2s	v0, v0, #31
	cmlt.2s	v0, v0, #0
Lloh8:
	adrp	x9, lCPI0_0@PAGE
Lloh9:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
Lloh10:
	adrp	x9, lCPI0_1@PAGE
Lloh11:
	ldr	d2, [x9, lCPI0_1@PAGEOFF]
	bsl.8b	v0, v2, v1
	str	d0, [x19, #16]
	str	w8, [x20, #8]
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_8
; %bb.4:
Lloh12:
	adrp	x8, _MCHIP_HIC_MODE_CONT_COMP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MCHIP_HIC_MODE_CONT_COMP@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_6:
Lloh17:
	adrp	x8, _MCHIP_HIC_MODE_CONT_OUT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MCHIP_HIC_MODE_CONT_OUT@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	str	w8, [x20, #4]
LBB0_8:
Lloh19:
	adrp	x0, _meye@GOTPAGE
Lloh20:
	ldr	x0, [x0, _meye@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	w0, #0
	ldp	w8, w9, [x19, #16]
	lsl	w8, w8, #1
	mul	w9, w9, w8
	stp	w8, w9, [x19, #24]
	str	xzr, [x19, #32]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpAdrp	Lloh8, Lloh10
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FIELD_ANY,8,3             ; @V4L2_FIELD_ANY
	.comm	_V4L2_FIELD_NONE,8,3            ; @V4L2_FIELD_NONE
	.comm	_meye,12,2                      ; @meye
	.comm	_MCHIP_HIC_MODE_CONT_OUT,4,2    ; @MCHIP_HIC_MODE_CONT_OUT
	.comm	_MCHIP_HIC_MODE_CONT_COMP,4,2   ; @MCHIP_HIC_MODE_CONT_COMP
	.no_dead_strip	_vidioc_s_fmt_vid_cap
.subsections_via_symbols
