	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w83792d_detect_subclients
_w83792d_detect_subclients:             ## @w83792d_detect_subclients
	.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, %r13
	movl	(%rdi), %ebx
	movq	8(%rdi), %r15
	callq	_i2c_get_clientdata
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_i2c_adapter_id
	movq	_force_subclients@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_7
## %bb.1:
	cmpl	%ebx, 4(%rcx)
	jne	LBB0_7
## %bb.2:
	movl	8(%rcx), %edx
	leal	-80(%rdx), %eax
	cmpl	$-8, %eax
	jb	LBB0_5
## %bb.3:
	movl	12(%rcx), %eax
	leal	-80(%rax), %ecx
	cmpl	$-8, %ecx
	jae	LBB0_6
## %bb.4:
	movl	%eax, %edx
LBB0_5:
	addq	$4, %r13
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_14
LBB0_6:
	movq	_W83792D_REG_I2C_SUBADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	$7, %edx
	shll	$4, %eax
	andl	$112, %eax
	orl	%edx, %eax
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_w83792d_write_value
LBB0_7:
	movq	_W83792D_REG_I2C_SUBADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_w83792d_read_value
	movl	%eax, %ebx
	testb	$8, %bl
	jne	LBB0_9
## %bb.8:
	movl	%ebx, %esi
	andl	$7, %esi
	orl	$72, %esi
	movq	%r15, %rdi
	callq	_i2c_new_dummy
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
LBB0_9:
	xorl	%r12d, %r12d
	testb	$-128, %bl
	jne	LBB0_15
## %bb.10:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	%ebx, %esi
	shrl	$4, %esi
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	xorl	%esi, %ebx
	testb	$7, %bl
	je	LBB0_12
LBB0_16:
	andl	$7, %esi
	orl	$72, %esi
	movq	%r15, %rdi
	callq	_i2c_new_dummy
	movq	(%r14), %rcx
	movq	%rax, 8(%rcx)
	jmp	LBB0_15
LBB0_12:
	addq	$4, %r13
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	(%r14), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_i2c_unregister_device
LBB0_14:
	negl	%r12d
LBB0_15:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_force_subclients,8,3           ## @force_subclients
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid subclient address %d; must be 0x48-0x4f\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_W83792D_REG_I2C_SUBADDR,4,2    ## @W83792D_REG_I2C_SUBADDR
L_.str.1:                               ## @.str.1
	.asciz	"duplicate addresses 0x%x, use force_subclient\n"

	.no_dead_strip	_w83792d_detect_subclients
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w83792d_detect_subclients
_w83792d_detect_subclients:             ; @w83792d_detect_subclients
	.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	x20, x0
	ldr	w22, [x0]
	ldr	x21, [x0, #8]
	bl	_i2c_get_clientdata
	mov	x19, x0
	mov	x0, x21
	bl	_i2c_adapter_id
Lloh0:
	adrp	x8, _force_subclients@GOTPAGE
Lloh1:
	ldr	x8, [x8, _force_subclients@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x8]
	cmp	w9, w0
	b.ne	LBB0_6
; %bb.1:
	ldr	w9, [x8, #4]
	cmp	w9, w22
	b.ne	LBB0_6
; %bb.2:
	ldr	w9, [x8, #8]
	sub	w10, w9, #80
	mov	x2, x9
	cmn	w10, #8
	b.lo	LBB0_4
; %bb.3:
	ldr	w2, [x8, #12]
	sub	w8, w2, #80
	cmn	w8, #8
	b.hs	LBB0_5
LBB0_4:
	add	x0, x20, #4
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	b	LBB0_14
LBB0_5:
Lloh8:
	adrp	x8, _W83792D_REG_I2C_SUBADDR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _W83792D_REG_I2C_SUBADDR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	and	w8, w9, #0x7
	bfi	w8, w2, #4, #3
	mov	x0, x20
	mov	x2, x8
	bl	_w83792d_write_value
LBB0_6:
Lloh11:
	adrp	x8, _W83792D_REG_I2C_SUBADDR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _W83792D_REG_I2C_SUBADDR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_w83792d_read_value
	mov	x22, x0
	tbnz	w0, #3, LBB0_8
; %bb.7:
	mov	w1, #72
	bfxil	w1, w22, #0, #3
	mov	x0, x21
	bl	_i2c_new_dummy
	ldr	x8, [x19]
	str	x0, [x8]
LBB0_8:
	tbnz	w22, #7, LBB0_11
; %bb.9:
	ldr	x8, [x19]
	ldr	x8, [x8]
	lsr	w9, w22, #4
	cmp	x8, #0
	eor	w9, w9, w22
	and	w9, w9, #0x7
	ccmp	w9, #0, #0, ne
	b.eq	LBB0_12
; %bb.10:
	mov	w1, #72
	bfxil	w1, w22, #4, #3
	mov	x0, x21
	bl	_i2c_new_dummy
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19]
	str	x8, [x9, #8]
	b	LBB0_15
LBB0_11:
	mov	w0, #0
	b	LBB0_15
LBB0_12:
	add	x0, x20, #4
	ldr	w2, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh18:
	ldr	w20, [x8]
	ldr	x8, [x19]
	ldr	x0, [x8]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_i2c_unregister_device
LBB0_14:
	neg	w0, w20
LBB0_15:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_force_subclients,8,3           ; @force_subclients
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid subclient address %d; must be 0x48-0x4f\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_W83792D_REG_I2C_SUBADDR,4,2    ; @W83792D_REG_I2C_SUBADDR
l_.str.1:                               ; @.str.1
	.asciz	"duplicate addresses 0x%x, use force_subclient\n"

	.no_dead_strip	_w83792d_detect_subclients
.subsections_via_symbols
