	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mi0360_set_pix_format
_mi0360_set_pix_format:                 ## @mi0360_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_sn9c102_get_sensor
	movq	(%rbx), %rdx
	movq	_V4L2_PIX_FMT_SBGGR8@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	$5
	callq	_sn9c102_i2c_try_raw_write
	addq	$32, %rsp
	movq	%rax, %r15
	movq	%r14, %rdi
	movl	$96, %esi
	movl	$25, %edx
	callq	_sn9c102_write_reg
	movq	%rax, %rbx
	addq	%r15, %rbx
	movq	%r14, %rdi
	callq	_sn9c102_get_bridge
	movq	_BRIDGE_SN9C105@GOTPCREL(%rip), %rcx
	movl	$166, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_4
	jmp	LBB0_5
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	$2
	callq	_sn9c102_i2c_try_raw_write
	addq	$32, %rsp
	movq	%rax, %r15
	movq	%r14, %rdi
	movl	$32, %esi
	movl	$25, %edx
	callq	_sn9c102_write_reg
	movq	%rax, %rbx
	addq	%r15, %rbx
	movq	%r14, %rdi
	callq	_sn9c102_get_bridge
	movq	_BRIDGE_SN9C105@GOTPCREL(%rip), %rcx
	movl	$162, %r15d
	cmpq	(%rcx), %rax
	je	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	callq	_sn9c102_get_bridge
	movq	_BRIDGE_SN9C120@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	$23, %edx
	callq	_sn9c102_write_reg
	addq	%rax, %rbx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_PIX_FMT_SBGGR8,8,3        ## @V4L2_PIX_FMT_SBGGR8
	.comm	_BRIDGE_SN9C105,8,3             ## @BRIDGE_SN9C105
	.comm	_BRIDGE_SN9C120,8,3             ## @BRIDGE_SN9C120
	.no_dead_strip	_mi0360_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 mi0360_set_pix_format
_mi0360_set_pix_format:                 ; @mi0360_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_SBGGR8@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_PIX_FMT_SBGGR8@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w3, [x0]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	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, #96
	mov	w2, #25
	bl	_sn9c102_write_reg
	add	x20, x0, x20
	mov	x0, x19
	bl	_sn9c102_get_bridge
Lloh3:
	adrp	x8, _BRIDGE_SN9C105@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BRIDGE_SN9C105@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_sn9c102_get_bridge
Lloh6:
	adrp	x8, _BRIDGE_SN9C120@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BRIDGE_SN9C120@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
LBB0_3:
	mov	w1, #166
	b	LBB0_7
LBB0_4:
	str	wzr, [sp]
	mov	x0, x19
	mov	w2, #4
	mov	w4, #10
	mov	w5, #0
	mov	w6, #2
	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	x20, x0, x20
	mov	x0, x19
	bl	_sn9c102_get_bridge
Lloh9:
	adrp	x8, _BRIDGE_SN9C105@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BRIDGE_SN9C105@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_sn9c102_get_bridge
Lloh12:
	adrp	x8, _BRIDGE_SN9C120@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BRIDGE_SN9C120@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
LBB0_6:
	mov	w1, #162
LBB0_7:
	mov	x0, x19
	mov	w2, #23
	bl	_sn9c102_write_reg
	add	x20, x0, x20
LBB0_8:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_PIX_FMT_SBGGR8,8,3        ; @V4L2_PIX_FMT_SBGGR8
	.comm	_BRIDGE_SN9C105,8,3             ; @BRIDGE_SN9C105
	.comm	_BRIDGE_SN9C120,8,3             ; @BRIDGE_SN9C120
	.no_dead_strip	_mi0360_set_pix_format
.subsections_via_symbols
