	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_config
_sd_config:                             ## @sd_config
	.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, %r15
	movq	%rdi, %r14
	movq	_vga_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 12(%r14)
	callq	_ARRAY_SIZE
	movl	%eax, 8(%r14)
	movl	$0, (%r14)
	movq	%r14, %rdi
	callq	_zero_the_pointer
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movq	%r14, %rdi
	callq	_stream_start
	testl	%eax, %eax
	js	LBB0_8
## %bb.2:
	movq	%r14, %rdi
	movl	$7, %esi
	movl	$1, %edx
	callq	_cam_get_response16
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	movl	(%r15), %eax
	cmpl	$272, %eax                      ## imm = 0x110
	je	LBB0_5
## %bb.4:
	cmpl	$270, %eax                      ## imm = 0x10E
	jne	LBB0_11
LBB0_5:
	movq	_CAM_TYPE_CIF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	decl	8(%r14)
	movq	(%r14), %rax
	movl	(%rax), %ecx
	cmpl	$2, %ecx
	je	LBB0_14
## %bb.6:
	cmpl	$3, %ecx
	jne	LBB0_16
## %bb.7:
	movl	$1, %ecx
	jmp	LBB0_15
LBB0_8:
	movl	%eax, %ebx
LBB0_30:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_CAM_TYPE_VGA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, (%r14)
	movl	$0, 8(%r14)
	movl	(%rax), %esi
	leal	-3(%rsi), %eax
	cmpl	$2, %eax
	jb	LBB0_18
## %bb.12:
	cmpl	$1, %esi
	jne	LBB0_17
## %bb.13:
	movl	$2, 4(%r14)
	jmp	LBB0_18
LBB0_14:
	xorl	%ecx, %ecx
LBB0_15:
	movl	%ecx, 4(%r14)
	movq	_D_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_27
LBB0_16:
	movl	4(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_30
LBB0_17:
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_pr_err
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_18:
	movq	(%r14), %rax
	movl	(%rax), %ecx
	cmpl	$3, %ecx
	jne	LBB0_21
## %bb.19:
	cmpl	$80, 4(%rax)
	jne	LBB0_26
## %bb.20:
	movl	$1, 8(%r14)
	movl	(%rax), %ecx
LBB0_21:
	cmpl	$4, %ecx
	jne	LBB0_26
## %bb.22:
	movl	$1, (%r14)
	movq	(%r14), %rax
	movl	4(%rax), %esi
	cmpl	$32, %esi
	je	LBB0_26
## %bb.23:
	cmpl	$80, %esi
	jne	LBB0_25
## %bb.24:
	movl	$0, 4(%r14)
	movq	_D_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_gspca_dbg
	jmp	LBB0_26
LBB0_25:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_26:
	movq	_D_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %ecx
	leaq	L_.str.7(%rip), %rdx
LBB0_27:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_gspca_dbg
	movq	%r14, %rdi
	callq	_sd_stopN
	movq	_force_sensor_type@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$-1, %eax
	je	LBB0_29
## %bb.28:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, 4(%r14)
	movq	_D_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_gspca_dbg
	jmp	LBB0_30
LBB0_29:
	xorl	%ebx, %ebx
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_vga_mode,4,2                   ## @vga_mode
	.comm	_CAM_TYPE_CIF,4,2               ## @CAM_TYPE_CIF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown CIF Sensor id : %02x\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_D_PROBE,4,2                    ## @D_PROBE
L_.str.1:                               ## @.str.1
	.asciz	"MR97310A CIF camera detected, sensor: %d\n"

	.comm	_CAM_TYPE_VGA,4,2               ## @CAM_TYPE_VGA
L_.str.2:                               ## @.str.2
	.asciz	"Unknown VGA Sensor id Byte 0: %02x\n"

L_.str.3:                               ## @.str.3
	.asciz	"Defaults assumed, may not work\n"

L_.str.4:                               ## @.str.4
	.asciz	"Please report this\n"

L_.str.5:                               ## @.str.5
	.asciz	"sensor_type corrected to 0\n"

L_.str.6:                               ## @.str.6
	.asciz	"Unknown VGA Sensor id Byte 1: %02x\n"

L_.str.7:                               ## @.str.7
	.asciz	"MR97310A VGA camera detected, sensor: %d\n"

	.comm	_force_sensor_type,4,2          ## @force_sensor_type
L_.str.8:                               ## @.str.8
	.asciz	"Forcing sensor type to: %d\n"

	.no_dead_strip	_sd_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function sd_config
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_sd_config:                             ; @sd_config
	.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
Lloh0:
	adrp	x8, _vga_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vga_mode@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	w0, [x19, #12]
	bl	_ARRAY_SIZE
	str	w0, [x19, #8]
	str	wzr, [x19]
	mov	x0, x19
	bl	_zero_the_pointer
	tbnz	w0, #31, LBB0_27
; %bb.1:
	mov	x0, x19
	bl	_stream_start
	tbnz	w0, #31, LBB0_27
; %bb.2:
	mov	x0, x19
	mov	w1, #7
	mov	w2, #1
	bl	_cam_get_response16
	tbnz	w0, #31, LBB0_27
; %bb.3:
	ldr	w8, [x20]
	cmp	w8, #272
	b.eq	LBB0_5
; %bb.4:
	cmp	w8, #270
	b.ne	LBB0_8
LBB0_5:
Lloh3:
	adrp	x8, _CAM_TYPE_CIF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAM_TYPE_CIF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	sub	w9, w9, #1
	stp	w9, w8, [x19, #8]
	ldr	x8, [x19]
	ldr	w9, [x8]
	cmp	w9, #2
	b.eq	LBB0_11
; %bb.6:
	cmp	w9, #3
	b.ne	LBB0_13
; %bb.7:
	mov	w8, #1
	b	LBB0_12
LBB0_8:
Lloh6:
	adrp	x8, _CAM_TYPE_VGA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAM_TYPE_VGA@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	stp	wzr, w8, [x19, #8]
	mov	x8, #4294967296
	ldr	w8, [x8]
	sub	w9, w8, #3
	cmp	w9, #2
	b.lo	LBB0_15
; %bb.9:
	cmp	w8, #1
	b.ne	LBB0_14
; %bb.10:
	mov	w8, #2
	str	w8, [x19, #4]
	b	LBB0_15
LBB0_11:
	mov	w8, #0
LBB0_12:
	str	w8, [x19, #4]
Lloh11:
	adrp	x9, _D_PROBE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _D_PROBE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_24
LBB0_13:
	ldr	w8, [x8, #4]
	str	x8, [sp]
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_27
LBB0_14:
	str	x8, [sp]
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_err
LBB0_15:
	ldr	x8, [x19]
	ldr	w9, [x8]
Lloh27:
	adrp	x20, _D_PROBE@GOTPAGE
Lloh28:
	ldr	x20, [x20, _D_PROBE@GOTPAGEOFF]
	cmp	w9, #3
	b.ne	LBB0_18
; %bb.16:
	ldr	w9, [x8, #4]
	cmp	w9, #80
	b.ne	LBB0_23
; %bb.17:
	mov	w9, #1
	str	w9, [x19, #8]
	ldr	w9, [x8]
LBB0_18:
	cmp	w9, #4
	b.ne	LBB0_23
; %bb.19:
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
	cmp	w8, #32
	b.eq	LBB0_23
; %bb.20:
	cmp	w8, #80
	b.ne	LBB0_22
; %bb.21:
	str	wzr, [x19, #4]
	ldr	w1, [x20]
Lloh29:
	adrp	x2, l_.str.5@PAGE
Lloh30:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
	b	LBB0_23
LBB0_22:
	str	x8, [sp]
Lloh31:
	adrp	x0, l_.str.6@PAGE
Lloh32:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_pr_err
Lloh33:
	adrp	x0, l_.str.3@PAGE
Lloh34:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
Lloh35:
	adrp	x0, l_.str.4@PAGE
Lloh36:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_err
LBB0_23:
	ldr	w1, [x20]
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh37:
	adrp	x2, l_.str.7@PAGE
Lloh38:
	add	x2, x2, l_.str.7@PAGEOFF
LBB0_24:
	mov	x0, x19
	bl	_gspca_dbg
	mov	x0, x19
	bl	_sd_stopN
Lloh39:
	adrp	x8, _force_sensor_type@GOTPAGE
Lloh40:
	ldr	x8, [x8, _force_sensor_type@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	cmn	w8, #1
	b.eq	LBB0_26
; %bb.25:
	cmp	w8, #0
	cset	w8, ne
	str	w8, [x19, #4]
Lloh42:
	adrp	x9, _D_PROBE@GOTPAGE
Lloh43:
	ldr	x9, [x9, _D_PROBE@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh45:
	adrp	x2, l_.str.8@PAGE
Lloh46:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
LBB0_26:
	mov	w0, #0
LBB0_27:
	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 AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_vga_mode,4,2                   ; @vga_mode
	.comm	_CAM_TYPE_CIF,4,2               ; @CAM_TYPE_CIF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown CIF Sensor id : %02x\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_D_PROBE,4,2                    ; @D_PROBE
l_.str.1:                               ; @.str.1
	.asciz	"MR97310A CIF camera detected, sensor: %d\n"

	.comm	_CAM_TYPE_VGA,4,2               ; @CAM_TYPE_VGA
l_.str.2:                               ; @.str.2
	.asciz	"Unknown VGA Sensor id Byte 0: %02x\n"

l_.str.3:                               ; @.str.3
	.asciz	"Defaults assumed, may not work\n"

l_.str.4:                               ; @.str.4
	.asciz	"Please report this\n"

l_.str.5:                               ; @.str.5
	.asciz	"sensor_type corrected to 0\n"

l_.str.6:                               ; @.str.6
	.asciz	"Unknown VGA Sensor id Byte 1: %02x\n"

l_.str.7:                               ; @.str.7
	.asciz	"MR97310A VGA camera detected, sensor: %d\n"

	.comm	_force_sensor_type,4,2          ; @force_sensor_type
l_.str.8:                               ; @.str.8
	.asciz	"Forcing sensor type to: %d\n"

	.no_dead_strip	_sd_config
.subsections_via_symbols
