	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em28xx_hint_sensor
_em28xx_hint_sensor:                    ## @em28xx_hint_sensor
	.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, %r15
	leaq	36(%rdi), %rbx
	movl	$93, 36(%rdi)
	movb	$0, -25(%rbp)
	leaq	-25(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_i2c_master_send
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_i2c_master_recv
	cmpl	$2, %eax
	jne	LBB0_1
## %bb.2:
	movl	-32(%rbp), %edi
	callq	_be16_to_cpu
	cmpl	$33346, %eax                    ## imm = 0x8242
	jg	LBB0_6
## %bb.3:
	cmpl	$5178, %eax                     ## imm = 0x143A
	je	LBB0_10
## %bb.4:
	cmpl	$33330, %eax                    ## imm = 0x8232
	je	LBB0_8
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_printk
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_6:
	cmpl	$33841, %eax                    ## imm = 0x8431
	je	LBB0_9
## %bb.7:
	cmpl	$33347, %eax                    ## imm = 0x8243
	jne	LBB0_5
LBB0_8:
	movq	_EM2820_BOARD_SILVERCREST_WEBCAM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	%r15, %rdi
	callq	_em28xx_set_model
	movq	_EM28XX_MT9V011@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	movabsq	$2061584302720, %rax            ## imm = 0x1E000000280
	movq	%rax, 8(%r15)
	movq	_EM28XX_XCLK_FREQUENCY_4_3MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movl	$4300000, 16(%r15)              ## imm = 0x419CE0
	leaq	L_.str(%rip), %r14
	movl	$13, %eax
	jmp	LBB0_11
LBB0_10:
	movq	_EM2750_BOARD_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	%r15, %rdi
	callq	_em28xx_set_model
	movq	_EM28XX_XCLK_FREQUENCY_48MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	_EM28XX_MT9M111@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	movq	%r15, %rdi
	callq	_em28xx_initialize_mt9m111
	movabsq	$2199023256192, %rax            ## imm = 0x20000000280
	movq	%rax, 8(%r15)
	leaq	L_.str.1(%rip), %r14
	movl	$10, %eax
	jmp	LBB0_11
LBB0_9:
	movq	_EM2750_BOARD_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	%r15, %rdi
	callq	_em28xx_set_model
	movq	_EM28XX_MT9M001@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	movq	%r15, %rdi
	callq	_em28xx_initialize_mt9m001
	movabsq	$4398046512384, %rax            ## imm = 0x40000000500
	movq	%rax, 8(%r15)
	leaq	L_.str.2(%rip), %r14
	movl	$12, %eax
LBB0_11:
	movl	%eax, 20(%r15)
	movl	$0, 24(%r15)
	movq	%r15, %rdi
	callq	_em28xx_pre_card_setup
	movq	_em28xx_boards@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edx
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	callq	_em28xx_errdev
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EM2820_BOARD_SILVERCREST_WEBCAM,8,3 ## @EM2820_BOARD_SILVERCREST_WEBCAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mt9v011"

	.comm	_EM28XX_MT9V011,4,2             ## @EM28XX_MT9V011
	.comm	_EM28XX_XCLK_FREQUENCY_4_3MHZ,4,2 ## @EM28XX_XCLK_FREQUENCY_4_3MHZ
	.comm	_EM2750_BOARD_UNKNOWN,8,3       ## @EM2750_BOARD_UNKNOWN
L_.str.1:                               ## @.str.1
	.asciz	"mt9m111"

	.comm	_EM28XX_XCLK_FREQUENCY_48MHZ,4,2 ## @EM28XX_XCLK_FREQUENCY_48MHZ
	.comm	_EM28XX_MT9M111,4,2             ## @EM28XX_MT9M111
L_.str.2:                               ## @.str.2
	.asciz	"mt9m001"

	.comm	_EM28XX_MT9M001,4,2             ## @EM28XX_MT9M001
L_.str.3:                               ## @.str.3
	.asciz	"Unknown Micron Sensor 0x%04x\n"

L_.str.4:                               ## @.str.4
	.asciz	"Sensor is %s, using model %s entry.\n"

	.comm	_em28xx_boards,8,3              ## @em28xx_boards
	.no_dead_strip	_em28xx_hint_sensor
.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 em28xx_hint_sensor
lCPI0_0:
	.long	1280                            ; 0x500
	.long	1024                            ; 0x400
lCPI0_1:
	.long	640                             ; 0x280
	.long	512                             ; 0x200
lCPI0_2:
	.long	640                             ; 0x280
	.long	480                             ; 0x1e0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_em28xx_hint_sensor:                    ; @em28xx_hint_sensor
	.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	x19, x0
	mov	w8, #93
	mov	x20, x0
	str	w8, [x20, #36]!
	strb	wzr, [sp, #15]
	add	x1, sp, #15
	mov	x0, x20
	mov	w2, #1
	bl	_i2c_master_send
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #2
	bl	_i2c_master_recv
	cmp	w0, #2
	b.ne	LBB0_5
; %bb.1:
	ldr	w0, [sp, #8]
	bl	_be16_to_cpu
	mov	x1, x0
	mov	w8, #33346
	cmp	w0, w8
	b.gt	LBB0_6
; %bb.2:
	mov	w8, #5178
	cmp	w1, w8
	b.eq	LBB0_9
; %bb.3:
	mov	w8, #33330
	cmp	w1, w8
	b.eq	LBB0_8
LBB0_4:
Lloh0:
	adrp	x0, l_.str.3@PAGE
Lloh1:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printk
LBB0_5:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_6:
	mov	w8, #33841
	cmp	w1, w8
	b.eq	LBB0_10
; %bb.7:
	mov	w8, #33347
	cmp	w1, w8
	b.ne	LBB0_4
LBB0_8:
Lloh5:
	adrp	x8, _EM2820_BOARD_SILVERCREST_WEBCAM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EM2820_BOARD_SILVERCREST_WEBCAM@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x19
	bl	_em28xx_set_model
Lloh8:
	adrp	x8, _EM28XX_MT9V011@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EM28XX_MT9V011@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, lCPI0_2@PAGE
Lloh12:
	ldr	d0, [x9, lCPI0_2@PAGEOFF]
	str	d0, [x19, #8]
Lloh13:
	adrp	x9, _EM28XX_XCLK_FREQUENCY_4_3MHZ@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EM28XX_XCLK_FREQUENCY_4_3MHZ@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #28]
	mov	w8, #40160
	movk	w8, #65, lsl #16
	str	w8, [x19, #16]
Lloh16:
	adrp	x20, l_.str@PAGE
Lloh17:
	add	x20, x20, l_.str@PAGEOFF
	mov	w8, #13
	b	LBB0_11
LBB0_9:
Lloh18:
	adrp	x8, _EM2750_BOARD_UNKNOWN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EM2750_BOARD_UNKNOWN@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x19
	bl	_em28xx_set_model
Lloh21:
	adrp	x8, _EM28XX_XCLK_FREQUENCY_48MHZ@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EM28XX_XCLK_FREQUENCY_48MHZ@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _EM28XX_MT9M111@GOTPAGE
Lloh25:
	ldr	x9, [x9, _EM28XX_MT9M111@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #28]
	mov	x0, x19
	bl	_em28xx_initialize_mt9m111
Lloh27:
	adrp	x8, lCPI0_1@PAGE
Lloh28:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [x19, #8]
Lloh29:
	adrp	x20, l_.str.1@PAGE
Lloh30:
	add	x20, x20, l_.str.1@PAGEOFF
	mov	w8, #10
	b	LBB0_11
LBB0_10:
Lloh31:
	adrp	x8, _EM2750_BOARD_UNKNOWN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EM2750_BOARD_UNKNOWN@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x19
	bl	_em28xx_set_model
Lloh34:
	adrp	x8, _EM28XX_MT9M001@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EM28XX_MT9M001@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [x19, #28]
	mov	x0, x19
	bl	_em28xx_initialize_mt9m001
Lloh37:
	adrp	x8, lCPI0_0@PAGE
Lloh38:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #8]
Lloh39:
	adrp	x20, l_.str.2@PAGE
Lloh40:
	add	x20, x20, l_.str.2@PAGEOFF
	mov	w8, #12
LBB0_11:
	stp	w8, wzr, [x19, #20]
	mov	x0, x19
	bl	_em28xx_pre_card_setup
Lloh41:
	adrp	x8, _em28xx_boards@GOTPAGE
Lloh42:
	ldr	x8, [x8, _em28xx_boards@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	w2, [x8, x9, lsl #2]
Lloh44:
	adrp	x0, l_.str.4@PAGE
Lloh45:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	bl	_em28xx_errdev
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdrp	Lloh11, Lloh13
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdr	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdr	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EM2820_BOARD_SILVERCREST_WEBCAM,8,3 ; @EM2820_BOARD_SILVERCREST_WEBCAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mt9v011"

	.comm	_EM28XX_MT9V011,4,2             ; @EM28XX_MT9V011
	.comm	_EM28XX_XCLK_FREQUENCY_4_3MHZ,4,2 ; @EM28XX_XCLK_FREQUENCY_4_3MHZ
	.comm	_EM2750_BOARD_UNKNOWN,8,3       ; @EM2750_BOARD_UNKNOWN
l_.str.1:                               ; @.str.1
	.asciz	"mt9m111"

	.comm	_EM28XX_XCLK_FREQUENCY_48MHZ,4,2 ; @EM28XX_XCLK_FREQUENCY_48MHZ
	.comm	_EM28XX_MT9M111,4,2             ; @EM28XX_MT9M111
l_.str.2:                               ; @.str.2
	.asciz	"mt9m001"

	.comm	_EM28XX_MT9M001,4,2             ; @EM28XX_MT9M001
l_.str.3:                               ; @.str.3
	.asciz	"Unknown Micron Sensor 0x%04x\n"

l_.str.4:                               ; @.str.4
	.asciz	"Sensor is %s, using model %s entry.\n"

	.comm	_em28xx_boards,8,3              ; @em28xx_boards
	.no_dead_strip	_em28xx_hint_sensor
.subsections_via_symbols
