	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc47m192_detect
_smsc47m192_detect:                     ## @smsc47m192_detect
	.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	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	8(%rdi), %r15
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	testl	%ebx, %ebx
	js	LBB0_3
LBB0_8:
	movl	(%r14), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_strlcpy
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_3:
	movq	_SMSC47M192_REG_COMPANY_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_i2c_smbus_read_byte_data
	cmpl	$85, %eax
	jne	LBB0_10
## %bb.4:
	movq	_SMSC47M192_REG_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r12d
	andl	$240, %eax
	cmpl	$32, %eax
	jne	LBB0_10
## %bb.5:
	movq	_SMSC47M192_REG_VID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_i2c_smbus_read_byte_data
	testb	$112, %al
	jne	LBB0_10
## %bb.6:
	movq	_SMSC47M192_REG_VID4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_i2c_smbus_read_byte_data
	andl	$254, %eax
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.7:
	andl	$15, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_dev_info
	jmp	LBB0_8
LBB0_10:
	movl	(%r13), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SMSC47M192_REG_COMPANY_ID,4,2  ## @SMSC47M192_REG_COMPANY_ID
	.comm	_SMSC47M192_REG_VERSION,4,2     ## @SMSC47M192_REG_VERSION
	.comm	_SMSC47M192_REG_VID,4,2         ## @SMSC47M192_REG_VID
	.comm	_SMSC47M192_REG_VID4,4,2        ## @SMSC47M192_REG_VID4
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"found SMSC47M192 or compatible, version 2, stepping A%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"SMSC47M192 detection failed at 0x%02x\n"

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

	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
	.no_dead_strip	_smsc47m192_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc47m192_detect
_smsc47m192_detect:                     ; @smsc47m192_detect
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_check_functionality
	cbz	w0, LBB0_9
; %bb.1:
	tbnz	w22, #31, LBB0_3
LBB0_2:
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strlcpy
	mov	w0, #0
	b	LBB0_10
LBB0_3:
Lloh8:
	adrp	x8, _SMSC47M192_REG_COMPANY_ID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SMSC47M192_REG_COMPANY_ID@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	cmp	w0, #85
	b.ne	LBB0_8
; %bb.4:
Lloh11:
	adrp	x8, _SMSC47M192_REG_VERSION@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SMSC47M192_REG_VERSION@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	and	w8, w0, #0xf0
	cmp	w8, #32
	b.ne	LBB0_8
; %bb.5:
	mov	x22, x0
Lloh14:
	adrp	x8, _SMSC47M192_REG_VID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SMSC47M192_REG_VID@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	tst	w0, #0x70
	b.ne	LBB0_8
; %bb.6:
Lloh17:
	adrp	x8, _SMSC47M192_REG_VID4@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SMSC47M192_REG_VID4@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	and	w8, w0, #0xfe
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.7:
	and	w2, w22, #0xf
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	b	LBB0_2
LBB0_8:
	ldr	w2, [x21]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
LBB0_9:
Lloh24:
	adrp	x8, _ENODEV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SMSC47M192_REG_COMPANY_ID,4,2  ; @SMSC47M192_REG_COMPANY_ID
	.comm	_SMSC47M192_REG_VERSION,4,2     ; @SMSC47M192_REG_VERSION
	.comm	_SMSC47M192_REG_VID,4,2         ; @SMSC47M192_REG_VID
	.comm	_SMSC47M192_REG_VID4,4,2        ; @SMSC47M192_REG_VID4
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"found SMSC47M192 or compatible, version 2, stepping A%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"SMSC47M192 detection failed at 0x%02x\n"

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

	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
	.no_dead_strip	_smsc47m192_detect
.subsections_via_symbols
