	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mi0343_set_pix_format
_mi0343_set_pix_format:                 ## @mi0343_set_pix_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	%rsi, %rbx
	movq	%rdi, %r14
	callq	_sn9c102_get_sensor
	movq	(%rbx), %rdx
	movq	_V4L2_PIX_FMT_SN9C10X@GOTPCREL(%rip), %rsi
	movl	(%rax), %ecx
	cmpq	(%rsi), %rdx
	jne	LBB0_2
## %bb.1:
	subq	$8, %rsp
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$4, %edx
	movl	$10, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	$3
	callq	_sn9c102_i2c_try_raw_write
	addq	$32, %rsp
	movq	%rax, %rbx
	movq	%r14, %rdi
	movl	$32, %esi
	movl	$25, %edx
	callq	_sn9c102_write_reg
	movq	%rax, %rcx
	movslq	%ebx, %rax
	addq	%rcx, %rax
	jmp	LBB0_3
LBB0_2:
	subq	$8, %rsp
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$4, %edx
	movl	$10, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	$5
	callq	_sn9c102_i2c_try_raw_write
	addq	$32, %rsp
	movq	%rax, %rbx
	movq	%r14, %rdi
	movl	$160, %esi
	movl	$25, %edx
	callq	_sn9c102_write_reg
	addq	%rbx, %rax
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_PIX_FMT_SN9C10X,8,3       ## @V4L2_PIX_FMT_SN9C10X
	.no_dead_strip	_mi0343_set_pix_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mi0343_set_pix_format
_mi0343_set_pix_format:                 ; @mi0343_set_pix_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_sn9c102_get_sensor
	mov	x1, x0
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _V4L2_PIX_FMT_SN9C10X@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_PIX_FMT_SN9C10X@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w3, [x0]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	str	wzr, [sp]
	mov	x0, x19
	mov	w2, #4
	mov	w4, #10
	mov	w5, #0
	mov	w6, #3
	mov	w7, #0
	bl	_sn9c102_i2c_try_raw_write
	mov	x20, x0
	mov	x0, x19
	mov	w1, #32
	mov	w2, #25
	bl	_sn9c102_write_reg
	add	x0, x0, w20, sxtw
	b	LBB0_3
LBB0_2:
	str	wzr, [sp]
	mov	x0, x19
	mov	w2, #4
	mov	w4, #10
	mov	w5, #0
	mov	w6, #5
	mov	w7, #0
	bl	_sn9c102_i2c_try_raw_write
	mov	x20, x0
	mov	x0, x19
	mov	w1, #160
	mov	w2, #25
	bl	_sn9c102_write_reg
	add	x0, x0, x20
LBB0_3:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_PIX_FMT_SN9C10X,8,3       ; @V4L2_PIX_FMT_SN9C10X
	.no_dead_strip	_mi0343_set_pix_format
.subsections_via_symbols
