	.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_8
## %bb.1:
	cmpl	%ebx, 4(%rcx)
	jne	LBB0_8
## %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_7
## %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
	jmp	LBB0_6
LBB0_7:
	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_8:
	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_10
## %bb.9:
	leaq	4(%r13), %rdi
	movl	%ebx, %edx
	andl	$7, %edx
	orl	$72, %edx
	movq	%r15, %rsi
	callq	_devm_i2c_new_dummy_device
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
LBB0_10:
	xorl	%r12d, %r12d
	testb	$-128, %bl
	jne	LBB0_15
## %bb.11:
	movq	(%r14), %rax
	movq	(%rax), %rdi
	callq	_IS_ERR
	movl	%ebx, %edx
	shrl	$4, %edx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	xorl	%edx, %ebx
	testb	$7, %bl
	je	LBB0_13
LBB0_14:
	addq	$4, %r13
	andl	$7, %edx
	orl	$72, %edx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_devm_i2c_new_dummy_device
	movq	(%r14), %rcx
	movq	%rax, 8(%rcx)
	jmp	LBB0_15
LBB0_13:
	addq	$4, %r13
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
LBB0_6:
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %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	x21, x0
	ldr	w22, [x0]
	ldr	x20, [x0, #8]
	bl	_i2c_get_clientdata
	mov	x19, x0
	mov	x0, x20
	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, x21, #4
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_13
LBB0_5:
Lloh5:
	adrp	x8, _W83792D_REG_I2C_SUBADDR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _W83792D_REG_I2C_SUBADDR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	and	w8, w9, #0x7
	bfi	w8, w2, #4, #3
	mov	x0, x21
	mov	x2, x8
	bl	_w83792d_write_value
LBB0_6:
Lloh8:
	adrp	x8, _W83792D_REG_I2C_SUBADDR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _W83792D_REG_I2C_SUBADDR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_w83792d_read_value
	mov	x22, x0
	tbnz	w0, #3, LBB0_8
; %bb.7:
	add	x0, x21, #4
	mov	w2, #72
	bfxil	w2, w22, #0, #3
	mov	x1, x20
	bl	_devm_i2c_new_dummy_device
	ldr	x8, [x19]
	str	x0, [x8]
LBB0_8:
	tbnz	w22, #7, LBB0_11
; %bb.9:
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_IS_ERR
	lsr	w8, w22, #4
	cmp	w0, #0
	eor	w8, w8, w22
	and	w8, w8, #0x7
	add	x0, x21, #4
	ccmp	w8, #0, #0, eq
	b.eq	LBB0_12
; %bb.10:
	mov	w2, #72
	bfxil	w2, w22, #4, #3
	mov	x1, x20
	bl	_devm_i2c_new_dummy_device
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19]
	str	x8, [x9, #8]
	b	LBB0_14
LBB0_11:
	mov	w0, #0
	b	LBB0_14
LBB0_12:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w2, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_13:
	bl	_dev_err
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, 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
