	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tm6000_set_fourcc_format       ## -- Begin function tm6000_set_fourcc_format
	.p2align	4, 0x90
_tm6000_set_fourcc_format:              ## @tm6000_set_fourcc_format
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_TM6010@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	_TM6010_REQ07_RCC_ACTIVE_IF@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_tm6000_get_reg
	andl	$252, %eax
	movq	8(%rbx), %rcx
	movq	_V4L2_PIX_FMT_UYVY@GOTPCREL(%rip), %rdx
	movl	(%r14), %esi
	cmpq	(%rdx), %rcx
	je	LBB0_2
## %bb.4:
	orl	$1, %eax
LBB0_2:
	movq	%rbx, %rdi
	movl	%eax, %edx
	jmp	LBB0_3
LBB0_5:
	movq	8(%rbx), %rax
	movq	_V4L2_PIX_FMT_UYVY@GOTPCREL(%rip), %rcx
	movq	_TM6010_REQ07_RC1_TRESHOLD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movl	$208, %edx
	jmp	LBB0_3
LBB0_7:
	movq	%rbx, %rdi
	movl	$144, %edx
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_tm6000_set_reg                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TM6010,8,3                     ## @TM6010
	.comm	_TM6010_REQ07_RCC_ACTIVE_IF,4,2 ## @TM6010_REQ07_RCC_ACTIVE_IF
	.comm	_V4L2_PIX_FMT_UYVY,8,3          ## @V4L2_PIX_FMT_UYVY
	.comm	_TM6010_REQ07_RC1_TRESHOLD,4,2  ## @TM6010_REQ07_RC1_TRESHOLD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tm6000_set_fourcc_format       ; -- Begin function tm6000_set_fourcc_format
	.p2align	2
_tm6000_set_fourcc_format:              ; @tm6000_set_fourcc_format
	.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, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _TM6010@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TM6010@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
Lloh3:
	adrp	x20, _TM6010_REQ07_RCC_ACTIVE_IF@GOTPAGE
Lloh4:
	ldr	x20, [x20, _TM6010_REQ07_RCC_ACTIVE_IF@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_tm6000_get_reg
	and	w2, w0, #0xfc
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _V4L2_PIX_FMT_UYVY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V4L2_PIX_FMT_UYVY@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	w1, [x20]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	orr	w2, w2, #0x1
LBB0_3:
	mov	x0, x19
	b	LBB0_7
LBB0_4:
Lloh8:
	adrp	x8, _V4L2_PIX_FMT_UYVY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_PIX_FMT_UYVY@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x10, _TM6010_REQ07_RC1_TRESHOLD@GOTPAGE
Lloh12:
	ldr	x10, [x10, _TM6010_REQ07_RC1_TRESHOLD@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x10]
	mov	x0, x19
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	w2, #208
	b	LBB0_7
LBB0_6:
	mov	w2, #144
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tm6000_set_reg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TM6010,8,3                     ; @TM6010
	.comm	_TM6010_REQ07_RCC_ACTIVE_IF,4,2 ; @TM6010_REQ07_RCC_ACTIVE_IF
	.comm	_V4L2_PIX_FMT_UYVY,8,3          ; @V4L2_PIX_FMT_UYVY
	.comm	_TM6010_REQ07_RC1_TRESHOLD,4,2  ; @TM6010_REQ07_RC1_TRESHOLD
.subsections_via_symbols
