	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em28xx_probe_sensor_micron
_em28xx_probe_sensor_micron:            ## @em28xx_probe_sensor_micron
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	shlq	$2, %rbx
	addq	24(%rdi), %rbx
	movq	_EM28XX_NOSENSOR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 8(%rdi)
	movq	_micron_sensor_addrs@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	_I2C_CLIENT_END@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_1
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_29:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	$8, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rdi
	movl	(%rbx), %edx
	addl	%edx, %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %ecx
	callq	_dev_err
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	(%rax,%r14), %rax
	addq	$8, %r14
	cmpq	(%r15), %rax
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_i2c_smbus_read_word_data
	testl	%eax, %eax
	js	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %edi
	callq	_swab16
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	$255, %esi
	callq	_i2c_smbus_read_word_data
	testl	%eax, %eax
	js	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %edi
	callq	_swab16
	cmpl	%eax, %r12d
	jne	LBB0_5
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_4
	jmp	LBB0_5
LBB0_9:
	cmpl	$5259, %r12d                    ## imm = 0x148B
	jle	LBB0_10
## %bb.16:
	cmpl	$33329, %r12d                   ## imm = 0x8231
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jle	LBB0_17
## %bb.20:
	cmpl	$33330, %r12d                   ## imm = 0x8232
	je	LBB0_26
## %bb.21:
	cmpl	$33347, %r12d                   ## imm = 0x8243
	je	LBB0_26
## %bb.22:
	cmpl	$33841, %r12d                   ## imm = 0x8431
	jne	LBB0_28
## %bb.23:
	movq	_EM28XX_MT9M001@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rcx)
	leaq	L_.str.8(%rip), %rdx
	jmp	LBB0_31
LBB0_10:
	cmpl	$5170, %r12d                    ## imm = 0x1432
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jg	LBB0_13
## %bb.11:
	cmpl	$4642, %r12d                    ## imm = 0x1222
	je	LBB0_12
## %bb.27:
	cmpl	$4649, %r12d                    ## imm = 0x1229
	jne	LBB0_28
## %bb.30:
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_31
LBB0_17:
	cmpl	$5260, %r12d                    ## imm = 0x148C
	je	LBB0_25
## %bb.18:
	cmpl	$5393, %r12d                    ## imm = 0x1511
	jne	LBB0_28
## %bb.19:
	leaq	L_.str.6(%rip), %rdx
	jmp	LBB0_31
LBB0_13:
	cmpl	$5171, %r12d                    ## imm = 0x1433
	je	LBB0_24
## %bb.14:
	cmpl	$5178, %r12d                    ## imm = 0x143A
	jne	LBB0_28
## %bb.15:
	movq	_EM28XX_MT9M111@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rcx)
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_31
LBB0_26:
	movq	_EM28XX_MT9V011@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rcx)
	leaq	L_.str.7(%rip), %rdx
	jmp	LBB0_31
LBB0_12:
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_31
LBB0_25:
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_31
LBB0_24:
	leaq	L_.str.3(%rip), %rdx
LBB0_31:
	movq	8(%rcx), %rax
	movq	16(%rcx), %rdi
	movq	_EM28XX_NOSENSOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_34
## %bb.32:
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_33
LBB0_34:
	leaq	L_.str.11(%rip), %rsi
LBB0_33:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_29
LBB0_28:
	movq	16(%rcx), %rdi
	leaq	L_.str.9(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_EM28XX_NOSENSOR,8,3            ## @EM28XX_NOSENSOR
	.comm	_micron_sensor_addrs,8,3        ## @micron_sensor_addrs
	.comm	_I2C_CLIENT_END,8,3             ## @I2C_CLIENT_END
	.comm	_ENXIO,4,2                      ## @ENXIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't read from i2c device 0x%02x: error %i\n"

L_.str.1:                               ## @.str.1
	.asciz	"MT9V012"

L_.str.2:                               ## @.str.2
	.asciz	"MT9V112"

L_.str.3:                               ## @.str.3
	.asciz	"MT9M011"

L_.str.4:                               ## @.str.4
	.asciz	"MT9M111"

	.comm	_EM28XX_MT9M111,8,3             ## @EM28XX_MT9M111
L_.str.5:                               ## @.str.5
	.asciz	"MT9M112"

L_.str.6:                               ## @.str.6
	.asciz	"MT9D011"

L_.str.7:                               ## @.str.7
	.asciz	"MT9V011"

	.comm	_EM28XX_MT9V011,8,3             ## @EM28XX_MT9V011
L_.str.8:                               ## @.str.8
	.asciz	"MT9M001"

	.comm	_EM28XX_MT9M001,8,3             ## @EM28XX_MT9M001
L_.str.9:                               ## @.str.9
	.asciz	"unknown Micron sensor detected: 0x%04x\n"

L_.str.10:                              ## @.str.10
	.asciz	"unsupported sensor detected: %s\n"

L_.str.11:                              ## @.str.11
	.asciz	"sensor %s detected\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_em28xx_probe_sensor_micron
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function em28xx_probe_sensor_micron
_em28xx_probe_sensor_micron:            ; @em28xx_probe_sensor_micron
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x9, [x0, #24]
	ldr	x10, [x0]
Lloh0:
	adrp	x23, _EM28XX_NOSENSOR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EM28XX_NOSENSOR@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [x0, #8]
Lloh2:
	adrp	x24, _micron_sensor_addrs@GOTPAGE
Lloh3:
	ldr	x24, [x24, _micron_sensor_addrs@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x8, [x8]
Lloh4:
	adrp	x25, _I2C_CLIENT_END@GOTPAGE
Lloh5:
	ldr	x25, [x25, _I2C_CLIENT_END@GOTPAGEOFF]
	ldr	x11, [x25]
	cmp	x8, x11
	b.ne	LBB0_3
LBB0_1:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_3:
	mov	x19, x0
	add	x21, x9, x10, lsl #2
	mov	w26, #8
Lloh9:
	adrp	x27, _ENXIO@GOTPAGE
Lloh10:
	ldr	x27, [x27, _ENXIO@GOTPAGEOFF]
Lloh11:
	adrp	x22, l_.str@PAGE
Lloh12:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x19, #16]
	ldr	w8, [x21]
	lsl	w2, w8, #1
	mov	x1, x22
	bl	_dev_err
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8, x26]
	ldr	x9, [x25]
	add	x26, x26, #8
	cmp	x8, x9
	b.eq	LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	w8, [x21]
	mov	x0, x21
	mov	w1, #0
	bl	_i2c_smbus_read_word_data
	mov	x3, x0
	tbnz	w0, #31, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x3
	bl	_swab16
	mov	x20, x0
	mov	x0, x21
	mov	w1, #255
	bl	_i2c_smbus_read_word_data
	mov	x3, x0
	tbnz	w0, #31, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x3
	bl	_swab16
	cmp	w20, w0
	b.ne	LBB0_5
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x27]
	cmn	w3, w8
	b.ne	LBB0_4
	b	LBB0_5
LBB0_10:
	mov	w8, #5259
	cmp	w20, w8
	b.le	LBB0_16
; %bb.11:
	mov	w8, #33329
	cmp	w20, w8
	b.le	LBB0_20
; %bb.12:
	mov	w8, #33330
	cmp	w20, w8
	b.eq	LBB0_26
; %bb.13:
	mov	w8, #33347
	cmp	w20, w8
	b.eq	LBB0_26
; %bb.14:
	mov	w8, #33841
	cmp	w20, w8
	b.ne	LBB0_34
; %bb.15:
Lloh13:
	adrp	x8, _EM28XX_MT9M001@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EM28XX_MT9M001@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh16:
	adrp	x8, l_.str.8@PAGE
Lloh17:
	add	x8, x8, l_.str.8@PAGEOFF
	b	LBB0_30
LBB0_16:
	mov	w8, #5170
	cmp	w20, w8
	b.gt	LBB0_23
; %bb.17:
	mov	w8, #4642
	cmp	w20, w8
	b.eq	LBB0_27
; %bb.18:
	mov	w8, #4649
	cmp	w20, w8
	b.ne	LBB0_34
; %bb.19:
Lloh18:
	adrp	x8, l_.str.2@PAGE
Lloh19:
	add	x8, x8, l_.str.2@PAGEOFF
	b	LBB0_30
LBB0_20:
	mov	w8, #5260
	cmp	w20, w8
	b.eq	LBB0_28
; %bb.21:
	mov	w8, #5393
	cmp	w20, w8
	b.ne	LBB0_34
; %bb.22:
Lloh20:
	adrp	x8, l_.str.6@PAGE
Lloh21:
	add	x8, x8, l_.str.6@PAGEOFF
	b	LBB0_30
LBB0_23:
	mov	w8, #5171
	cmp	w20, w8
	b.eq	LBB0_29
; %bb.24:
	mov	w8, #5178
	cmp	w20, w8
	b.ne	LBB0_34
; %bb.25:
Lloh22:
	adrp	x8, _EM28XX_MT9M111@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EM28XX_MT9M111@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh25:
	adrp	x8, l_.str.4@PAGE
Lloh26:
	add	x8, x8, l_.str.4@PAGEOFF
	b	LBB0_30
LBB0_26:
Lloh27:
	adrp	x8, _EM28XX_MT9V011@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EM28XX_MT9V011@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh30:
	adrp	x8, l_.str.7@PAGE
Lloh31:
	add	x8, x8, l_.str.7@PAGEOFF
	b	LBB0_30
LBB0_27:
Lloh32:
	adrp	x8, l_.str.1@PAGE
Lloh33:
	add	x8, x8, l_.str.1@PAGEOFF
	b	LBB0_30
LBB0_28:
Lloh34:
	adrp	x8, l_.str.5@PAGE
Lloh35:
	add	x8, x8, l_.str.5@PAGEOFF
	b	LBB0_30
LBB0_29:
Lloh36:
	adrp	x8, l_.str.3@PAGE
Lloh37:
	add	x8, x8, l_.str.3@PAGEOFF
LBB0_30:
	ldr	x9, [x23]
	ldp	x10, x0, [x19, #8]
	cmp	x10, x9
	b.ne	LBB0_32
; %bb.31:
	str	x8, [sp]
Lloh38:
	adrp	x1, l_.str.10@PAGE
Lloh39:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_33
LBB0_32:
	str	x8, [sp]
Lloh40:
	adrp	x1, l_.str.11@PAGE
Lloh41:
	add	x1, x1, l_.str.11@PAGEOFF
LBB0_33:
	bl	_dev_info
	mov	w0, #0
	b	LBB0_2
LBB0_34:
	ldr	x0, [x19, #16]
	str	x20, [sp]
Lloh42:
	adrp	x1, l_.str.9@PAGE
Lloh43:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_33
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_EM28XX_NOSENSOR,8,3            ; @EM28XX_NOSENSOR
	.comm	_micron_sensor_addrs,8,3        ; @micron_sensor_addrs
	.comm	_I2C_CLIENT_END,8,3             ; @I2C_CLIENT_END
	.comm	_ENXIO,4,2                      ; @ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't read from i2c device 0x%02x: error %i\n"

l_.str.1:                               ; @.str.1
	.asciz	"MT9V012"

l_.str.2:                               ; @.str.2
	.asciz	"MT9V112"

l_.str.3:                               ; @.str.3
	.asciz	"MT9M011"

l_.str.4:                               ; @.str.4
	.asciz	"MT9M111"

	.comm	_EM28XX_MT9M111,8,3             ; @EM28XX_MT9M111
l_.str.5:                               ; @.str.5
	.asciz	"MT9M112"

l_.str.6:                               ; @.str.6
	.asciz	"MT9D011"

l_.str.7:                               ; @.str.7
	.asciz	"MT9V011"

	.comm	_EM28XX_MT9V011,8,3             ; @EM28XX_MT9V011
l_.str.8:                               ; @.str.8
	.asciz	"MT9M001"

	.comm	_EM28XX_MT9M001,8,3             ; @EM28XX_MT9M001
l_.str.9:                               ; @.str.9
	.asciz	"unknown Micron sensor detected: 0x%04x\n"

l_.str.10:                              ; @.str.10
	.asciz	"unsupported sensor detected: %s\n"

l_.str.11:                              ; @.str.11
	.asciz	"sensor %s detected\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_em28xx_probe_sensor_micron
.subsections_via_symbols
