	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hv7131r_set_pix_format
_hv7131r_set_pix_format:                ## @hv7131r_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, %r15
	callq	_sn9c102_get_bridge
	movl	%eax, %ecx
	leal	-128(%rcx), %eax
	cmpl	$2, %eax
	jae	LBB0_3
## %bb.1:
	movl	(%rbx), %eax
	movq	_V4L2_PIX_FMT_SBGGR8@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.2:
	movq	%r15, %rdi
	movl	$165, %esi
	movl	$23, %edx
	callq	_sn9c102_write_reg
	movl	%eax, %r14d
	movl	$36, %edx
	jmp	LBB0_10
LBB0_3:
	xorl	%eax, %eax
	cmpl	$130, %ecx
	jne	LBB0_11
## %bb.4:
	movl	(%rbx), %eax
	movq	_V4L2_PIX_FMT_SBGGR8@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	movl	$160, %esi
	jmp	LBB0_8
LBB0_6:
	movq	%r15, %rdi
	movl	$163, %esi
	movl	$23, %edx
	jmp	LBB0_9
LBB0_7:
	movq	%r15, %rdi
	movl	$48, %esi
LBB0_8:
	movl	$25, %edx
LBB0_9:
	callq	_sn9c102_write_reg
	movl	%eax, %r14d
	movl	$4, %edx
LBB0_10:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_sn9c102_i2c_write
	addl	%r14d, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_PIX_FMT_SBGGR8,4,2        ## @V4L2_PIX_FMT_SBGGR8
	.no_dead_strip	_hv7131r_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 hv7131r_set_pix_format
_hv7131r_set_pix_format:                ; @hv7131r_set_pix_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	x20, x1
	mov	x19, x0
	bl	_sn9c102_get_bridge
	sub	w8, w0, #128
	cmp	w8, #2
	b.hs	LBB0_3
; %bb.1:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _V4L2_PIX_FMT_SBGGR8@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_PIX_FMT_SBGGR8@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	x0, x19
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.2:
	mov	w1, #165
	mov	w2, #23
	bl	_sn9c102_write_reg
	mov	x20, x0
	mov	w2, #36
	b	LBB0_11
LBB0_3:
	cmp	w0, #130
	b.ne	LBB0_7
; %bb.4:
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _V4L2_PIX_FMT_SBGGR8@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_PIX_FMT_SBGGR8@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	x0, x19
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.5:
	mov	w1, #160
	b	LBB0_9
LBB0_6:
	mov	w1, #163
	mov	w2, #23
	b	LBB0_10
LBB0_7:
	mov	w0, #0
	b	LBB0_12
LBB0_8:
	mov	w1, #48
LBB0_9:
	mov	w2, #25
LBB0_10:
	bl	_sn9c102_write_reg
	mov	x20, x0
	mov	w2, #4
LBB0_11:
	mov	x0, x19
	mov	w1, #1
	bl	_sn9c102_i2c_write
	add	w0, w0, w20
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_PIX_FMT_SBGGR8,4,2        ; @V4L2_PIX_FMT_SBGGR8
	.no_dead_strip	_hv7131r_set_pix_format
.subsections_via_symbols
