	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w83793_detect
_w83793_detect:                         ## @w83793_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
	subq	$24, %rsp
	.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, %r12d
	movq	%rdi, %rbx
	movq	8(%rdi), %r13
	movzwl	(%rdi), %r15d
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_W83793_REG_BANKSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%r12d, %r12d
	js	LBB0_3
## %bb.2:
	jne	LBB0_7
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %r14d
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	testb	$-128, %r14b
	movl	$163, %eax
	movl	$92, %r15d
	cmovel	%eax, %r15d
	movq	_W83793_REG_VENDORID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	cmpl	%eax, %r15d
	jne	LBB0_10
## %bb.4:
	testb	$7, %r14b
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_6
## %bb.5:
	movq	_W83793_REG_I2C_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	leal	(%r15,%r15), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_14
LBB0_6:
	movq	_W83793_REG_CHIPID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	cmpl	$123, %eax
	jne	LBB0_8
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_strlcpy
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_8:
	testl	%r12d, %r12d
	jne	LBB0_12
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_dev_warn
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str(%rip), %rdi
LBB0_11:
	callq	_pr_debug
LBB0_12:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_W83793_REG_BANKSEL,4,2         ## @W83793_REG_BANKSEL
	.comm	_W83793_REG_VENDORID,4,2        ## @W83793_REG_VENDORID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w83793: Detection failed at check vendor id\n"

	.comm	_W83793_REG_I2C_ADDR,4,2        ## @W83793_REG_I2C_ADDR
L_.str.1:                               ## @.str.1
	.asciz	"w83793: Detection failed at check i2c addr\n"

	.comm	_W83793_REG_CHIPID,4,2          ## @W83793_REG_CHIPID
	.comm	_w83793,4,2                     ## @w83793
L_.str.2:                               ## @.str.2
	.asciz	"w83793: Ignoring 'force' parameter for unknown chip at address 0x%02x\n"

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

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w83793_detect
_w83793_detect:                         ; @w83793_detect
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x20, [x0, #8]
	ldrh	w19, [x0]
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_12
; %bb.1:
Lloh3:
	adrp	x8, _W83793_REG_BANKSEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _W83793_REG_BANKSEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_i2c_smbus_read_byte_data
	tbnz	w22, #31, LBB0_3
; %bb.2:
	cbnz	w22, LBB0_7
	b	LBB0_6
LBB0_3:
	mov	x24, x0
	tst	w0, #0x80
	mov	w8, #92
	mov	w9, #163
	csel	w25, w9, w8, eq
Lloh6:
	adrp	x8, _W83793_REG_VENDORID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _W83793_REG_VENDORID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_i2c_smbus_read_byte_data
	cmp	w25, w0
	b.ne	LBB0_10
; %bb.4:
	tst	w24, #0x7
	b.ne	LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _W83793_REG_I2C_ADDR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _W83793_REG_I2C_ADDR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_i2c_smbus_read_byte_data
	cmp	w0, w19, lsl #1
	b.ne	LBB0_14
LBB0_6:
Lloh12:
	adrp	x8, _W83793_REG_CHIPID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _W83793_REG_CHIPID@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_i2c_smbus_read_byte_data
	cmp	w0, #123
	b.ne	LBB0_8
LBB0_7:
	ldr	w0, [x21]
Lloh15:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strlcpy
	mov	w0, #0
	b	LBB0_13
LBB0_8:
	cbnz	w22, LBB0_12
; %bb.9:
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_dev_warn
	b	LBB0_12
LBB0_10:
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
LBB0_11:
	bl	_pr_debug
LBB0_12:
Lloh24:
	adrp	x8, _ENODEV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_W83793_REG_BANKSEL,4,2         ; @W83793_REG_BANKSEL
	.comm	_W83793_REG_VENDORID,4,2        ; @W83793_REG_VENDORID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w83793: Detection failed at check vendor id\n"

	.comm	_W83793_REG_I2C_ADDR,4,2        ; @W83793_REG_I2C_ADDR
l_.str.1:                               ; @.str.1
	.asciz	"w83793: Detection failed at check i2c addr\n"

	.comm	_W83793_REG_CHIPID,4,2          ; @W83793_REG_CHIPID
	.comm	_w83793,4,2                     ; @w83793
l_.str.2:                               ; @.str.2
	.asciz	"w83793: Ignoring 'force' parameter for unknown chip at address 0x%02x\n"

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

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