	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_em28xx_detect_sensor           ## -- Begin function em28xx_detect_sensor
	.p2align	4, 0x90
_em28xx_detect_sensor:                  ## @em28xx_detect_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_em28xx_probe_sensor_micron
	movq	(%rbx), %rdx
	movq	_EM28XX_NOSENSOR@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_3
## %bb.1:
	testl	%eax, %eax
	jns	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_em28xx_probe_sensor_omnivision
	movq	(%rbx), %rdx
	movq	(%r14), %rsi
LBB0_3:
	xorl	%ecx, %ecx
	cmpq	%rsi, %rdx
	jne	LBB0_6
## %bb.4:
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_6:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EM28XX_NOSENSOR,8,3            ## @EM28XX_NOSENSOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No sensor detected\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_em28xx_detect_sensor           ; -- Begin function em28xx_detect_sensor
	.p2align	2
_em28xx_detect_sensor:                  ; @em28xx_detect_sensor
	.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
	bl	_em28xx_probe_sensor_micron
	ldr	x9, [x19]
Lloh0:
	adrp	x20, _EM28XX_NOSENSOR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EM28XX_NOSENSOR@GOTPAGEOFF]
	ldr	x10, [x20]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.1:
	tbz	w0, #31, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_em28xx_probe_sensor_omnivision
	ldr	x9, [x19]
	ldr	x10, [x20]
LBB0_3:
	mov	w8, #0
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.4:
	tbz	w0, #31, LBB0_6
; %bb.5:
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_6:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EM28XX_NOSENSOR,8,3            ; @EM28XX_NOSENSOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No sensor detected\n"

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