	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vga_2wr_probe
_vga_2wr_probe:                         ## @vga_2wr_probe
	.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	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_start_2wr_probe
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$170, %edx
	xorl	%ecx, %ecx
	callq	_i2c_write
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_i2c_read
	testl	%eax, %eax
	jne	LBB0_16
## %bb.1:
	movl	$4, %r14d
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_start_2wr_probe
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$170, %edx
	xorl	%ecx, %ecx
	callq	_i2c_write
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_i2c_read
	testl	%eax, %eax
	jne	LBB0_16
## %bb.2:
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_start_2wr_probe
	movl	$8, %r14d
	movq	%rbx, %rdi
	movl	$8, %esi
	movl	$141, %edx
	callq	_reg_w
	movq	%rbx, %rdi
	movl	$17, %esi
	movl	$170, %edx
	xorl	%ecx, %ecx
	callq	_i2c_write
	movq	%rbx, %rdi
	movl	$17, %esi
	callq	_i2c_read
	testl	%eax, %eax
	je	LBB0_3
LBB0_11:
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_reg_r
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_reg_r
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_reg_w
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_reg_w
	movq	%rbx, %rdi
	movl	$6, %esi
	movl	$16, %edx
	callq	_reg_w
	movq	%rbx, %rdi
	movl	$161, %esi
	movl	$139, %edx
	callq	_reg_w
	movq	%rbx, %rdi
	movl	$8, %esi
	movl	$141, %edx
	callq	_reg_w
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_msleep
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$18, %edx
	callq	_reg_w
	movq	%rbx, %rdi
	movl	$18, %esi
	movl	$128, %edx
	xorl	%ecx, %ecx
	callq	_i2c_write
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_i2c_read
	movl	%eax, %r14d
	shll	$8, %r14d
	movq	%rbx, %rdi
	movl	$11, %esi
	callq	_i2c_read
	movl	%eax, %r15d
	orl	%r14d, %r15d
	movq	_D_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	callq	_gspca_dbg
	cmpl	$30240, %r15d                   ## imm = 0x7620
	je	LBB0_15
## %bb.12:
	cmpl	$30280, %r15d                   ## imm = 0x7648
	je	LBB0_15
## %bb.13:
	movl	$-1, %r14d
	cmpl	$30257, %r15d                   ## imm = 0x7631
	jne	LBB0_16
## %bb.14:
	movq	%rbx, %rdi
	movl	$6, %esi
	movl	$16, %edx
	callq	_reg_w
LBB0_15:
	movl	%r15d, %r14d
	jmp	LBB0_16
LBB0_3:
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_start_2wr_probe
	movq	%rbx, %rdi
	movl	$28, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_i2c_write
	movq	%rbx, %rdi
	movl	$21, %esi
	movl	$170, %edx
	xorl	%ecx, %ecx
	callq	_i2c_write
	movq	%rbx, %rdi
	movl	$21, %esi
	callq	_i2c_read
	testl	%eax, %eax
	jne	LBB0_16
## %bb.4:
	movl	$10, %r14d
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_start_2wr_probe
	movq	%rbx, %rdi
	movl	$7, %esi
	movl	$170, %edx
	movl	$170, %ecx
	callq	_i2c_write
	movq	%rbx, %rdi
	movl	$7, %esi
	callq	_i2c_read
	testl	%eax, %eax
	jne	LBB0_16
## %bb.5:
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_i2c_read
	testl	%eax, %eax
	jne	LBB0_16
## %bb.6:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_i2c_read
	testl	%eax, %eax
	jne	LBB0_16
## %bb.7:
	movl	$12, %r14d
	movq	%rbx, %rdi
	movl	$12, %esi
	callq	_start_2wr_probe
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$17, %edx
	xorl	%ecx, %ecx
	callq	_i2c_write
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_i2c_read
	testl	%eax, %eax
	jne	LBB0_16
## %bb.8:
	movl	$14, %r14d
	movq	%rbx, %rdi
	movl	$14, %esi
	callq	_start_2wr_probe
	movq	%rbx, %rdi
	movl	$8, %esi
	movl	$141, %edx
	callq	_reg_w
	movq	%rbx, %rdi
	movl	$3, %esi
	movl	$170, %edx
	xorl	%ecx, %ecx
	callq	_i2c_write
	movl	$50, %edi
	callq	_msleep
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_i2c_read
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	_SENSOR_PAS202B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_send_unknown
	jmp	LBB0_16
LBB0_10:
	movl	$2, %r14d
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_start_2wr_probe
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$170, %edx
	xorl	%ecx, %ecx
	callq	_i2c_write
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_i2c_read
	testl	%eax, %eax
	je	LBB0_11
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SENSOR_PAS202B,4,2             ## @SENSOR_PAS202B
	.comm	_D_PROBE,4,2                    ## @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"probe 2wr ov vga 0x%04x\n"

	.no_dead_strip	_vga_2wr_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vga_2wr_probe
_vga_2wr_probe:                         ; @vga_2wr_probe
	.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
	mov	w1, #0
	bl	_start_2wr_probe
	mov	x0, x19
	mov	w1, #1
	mov	w2, #170
	mov	w3, #0
	bl	_i2c_write
	mov	x0, x19
	mov	w1, #1
	bl	_i2c_read
	mov	w20, #0
	cbnz	w0, LBB0_2
; %bb.1:
	mov	w20, #4
	mov	x0, x19
	mov	w1, #4
	bl	_start_2wr_probe
	mov	x0, x19
	mov	w1, #1
	mov	w2, #170
	mov	w3, #0
	bl	_i2c_write
	mov	x0, x19
	mov	w1, #1
	bl	_i2c_read
	cbz	w0, LBB0_3
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	mov	w1, #6
	bl	_start_2wr_probe
	mov	x0, x19
	mov	w1, #8
	mov	w2, #141
	bl	_reg_w
	mov	x0, x19
	mov	w1, #17
	mov	w2, #170
	mov	w3, #0
	bl	_i2c_write
	mov	x0, x19
	mov	w1, #17
	bl	_i2c_read
	cbz	w0, LBB0_8
LBB0_4:
	mov	x0, x19
	mov	w1, #16
	bl	_reg_r
	mov	x0, x19
	mov	w1, #16
	bl	_reg_r
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_reg_w
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_reg_w
	mov	x0, x19
	mov	w1, #6
	mov	w2, #16
	bl	_reg_w
	mov	x0, x19
	mov	w1, #161
	mov	w2, #139
	bl	_reg_w
	mov	x0, x19
	mov	w1, #8
	mov	w2, #141
	bl	_reg_w
	mov	w0, #500
	bl	_msleep
	mov	x0, x19
	mov	w1, #1
	mov	w2, #18
	bl	_reg_w
	mov	x0, x19
	mov	w1, #18
	mov	w2, #128
	mov	w3, #0
	bl	_i2c_write
	mov	x0, x19
	mov	w1, #10
	bl	_i2c_read
	mov	x20, x0
	mov	x0, x19
	mov	w1, #11
	bl	_i2c_read
	orr	w20, w0, w20, lsl #8
Lloh0:
	adrp	x8, _D_PROBE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_PROBE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_gspca_dbg
	mov	w8, #30240
	cmp	w20, w8
	b.eq	LBB0_2
; %bb.5:
	mov	w8, #30280
	cmp	w20, w8
	b.eq	LBB0_2
; %bb.6:
	mov	w8, #30257
	cmp	w20, w8
	b.ne	LBB0_13
; %bb.7:
	mov	x0, x19
	mov	w1, #6
	mov	w2, #16
	bl	_reg_w
	b	LBB0_2
LBB0_8:
	mov	w20, #8
	mov	x0, x19
	mov	w1, #8
	bl	_start_2wr_probe
	mov	x0, x19
	mov	w1, #28
	mov	w2, #0
	mov	w3, #0
	bl	_i2c_write
	mov	x0, x19
	mov	w1, #21
	mov	w2, #170
	mov	w3, #0
	bl	_i2c_write
	mov	x0, x19
	mov	w1, #21
	bl	_i2c_read
	cbnz	w0, LBB0_2
; %bb.9:
	mov	w20, #10
	mov	x0, x19
	mov	w1, #10
	bl	_start_2wr_probe
	mov	x0, x19
	mov	w1, #7
	mov	w2, #170
	mov	w3, #170
	bl	_i2c_write
	mov	x0, x19
	mov	w1, #7
	bl	_i2c_read
	cbnz	w0, LBB0_2
; %bb.10:
	mov	x0, x19
	mov	w1, #3
	bl	_i2c_read
	cbnz	w0, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	w1, #4
	bl	_i2c_read
	cbz	w0, LBB0_14
LBB0_12:
	mov	w20, #10
	b	LBB0_2
LBB0_13:
	mov	w20, #-1
	b	LBB0_2
LBB0_14:
	mov	w20, #12
	mov	x0, x19
	mov	w1, #12
	bl	_start_2wr_probe
	mov	x0, x19
	mov	w1, #1
	mov	w2, #17
	mov	w3, #0
	bl	_i2c_write
	mov	x0, x19
	mov	w1, #1
	bl	_i2c_read
	cbnz	w0, LBB0_2
; %bb.15:
	mov	x0, x19
	mov	w1, #14
	bl	_start_2wr_probe
	mov	x0, x19
	mov	w1, #8
	mov	w2, #141
	bl	_reg_w
	mov	x0, x19
	mov	w1, #3
	mov	w2, #170
	mov	w3, #0
	bl	_i2c_write
	mov	w0, #50
	bl	_msleep
	mov	x0, x19
	mov	w1, #3
	bl	_i2c_read
	cbz	w0, LBB0_17
; %bb.16:
Lloh5:
	adrp	x8, _SENSOR_PAS202B@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SENSOR_PAS202B@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_send_unknown
	mov	w20, #14
	b	LBB0_2
LBB0_17:
	mov	w20, #2
	mov	x0, x19
	mov	w1, #2
	bl	_start_2wr_probe
	mov	x0, x19
	mov	w1, #1
	mov	w2, #170
	mov	w3, #0
	bl	_i2c_write
	mov	x0, x19
	mov	w1, #1
	bl	_i2c_read
	cbnz	w0, LBB0_2
	b	LBB0_4
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SENSOR_PAS202B,4,2             ; @SENSOR_PAS202B
	.comm	_D_PROBE,4,2                    ; @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"probe 2wr ov vga 0x%04x\n"

	.no_dead_strip	_vga_2wr_probe
.subsections_via_symbols
