	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asb100_detect_subclients
_asb100_detect_subclients:              ## @asb100_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, %r12
	movl	(%rdi), %ebx
	callq	_i2c_get_clientdata
	movq	%rax, %r14
	movq	8(%r12), %r15
	movq	%r15, %rdi
	callq	_i2c_adapter_id
	movq	_force_subclients@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_6
## %bb.1:
	cmpl	%ebx, 4(%rcx)
	jne	LBB0_6
## %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_17
## %bb.4:
	movl	%eax, %edx
LBB0_5:
	addq	$4, %r12
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_9
LBB0_6:
	movq	_ASB100_REG_I2C_SUBADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_asb100_read_value
	movl	%eax, %ebx
	andl	$7, %eax
	orl	$72, %eax
	shrl	$4, %ebx
	andl	$7, %ebx
	orl	$72, %ebx
LBB0_7:
	movzwl	%ax, %r13d
	cmpw	%bx, %r13w
	jne	LBB0_10
## %bb.8:
	addq	$4, %r12
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
LBB0_9:
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_10:
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_i2c_new_dummy
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.11:
	movzwl	%bx, %r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_i2c_new_dummy
	movq	(%r14), %rcx
	movq	%rax, 8(%rcx)
	movq	(%r14), %rax
	xorl	%ebx, %ebx
	cmpq	$0, 8(%rax)
	jne	LBB0_16
## %bb.12:
	addq	$4, %r12
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	$2, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r14), %rax
	movq	(%rax), %rdi
	callq	_i2c_unregister_device
	jmp	LBB0_15
LBB0_13:
	addq	$4, %r12
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %ebx
LBB0_15:
	negl	%ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_ASB100_REG_I2C_SUBADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	$7, %edx
	shll	$4, %eax
	andl	$112, %eax
	orl	%edx, %eax
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_asb100_write_value
	movq	(%r13), %rcx
	movzwl	8(%rcx), %eax
	movzwl	12(%rcx), %ebx
	jmp	LBB0_7
	.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	_ASB100_REG_I2C_SUBADDR,4,2     ## @ASB100_REG_I2C_SUBADDR
L_.str.1:                               ## @.str.1
	.asciz	"duplicate addresses 0x%x for subclients\n"

L_.str.2:                               ## @.str.2
	.asciz	"subclient %d registration at address 0x%x failed.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_asb100_detect_subclients
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asb100_detect_subclients
_asb100_detect_subclients:              ; @asb100_detect_subclients
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x0
	ldr	w23, [x0]
	bl	_i2c_get_clientdata
	mov	x19, x0
	ldr	x21, [x20, #8]
	mov	x0, x21
	bl	_i2c_adapter_id
Lloh0:
	adrp	x22, _force_subclients@GOTPAGE
Lloh1:
	ldr	x22, [x22, _force_subclients@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w9, [x8]
	cmp	w9, w0
	b.ne	LBB0_5
; %bb.1:
	ldr	w9, [x8, #4]
	cmp	w9, w23
	b.ne	LBB0_5
; %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_16
LBB0_4:
	add	x0, x20, #4
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_5:
Lloh4:
	adrp	x8, _ASB100_REG_I2C_SUBADDR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ASB100_REG_I2C_SUBADDR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_asb100_read_value
	mov	w8, #72
	mov	w9, #72
	bfxil	w9, w0, #0, #3
	bfxil	w8, w0, #4, #3
LBB0_6:
	and	w23, w9, #0xffff
	and	w22, w8, #0xffff
	cmp	w23, w22
	b.ne	LBB0_9
; %bb.7:
	add	x0, x20, #4
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
LBB0_8:
	bl	_dev_err
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	b	LBB0_14
LBB0_9:
	mov	x0, x21
	mov	x1, x23
	bl	_i2c_new_dummy
	ldr	x8, [x19]
	str	x0, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.10:
	mov	x0, x21
	mov	x1, x22
	bl	_i2c_new_dummy
	ldr	x8, [x19]
	str	x0, [x8, #8]
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_13
; %bb.11:
	mov	w0, #0
	b	LBB0_15
LBB0_12:
	add	x0, x20, #4
	str	x23, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #1
	bl	_dev_err
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
	b	LBB0_14
LBB0_13:
	add	x0, x20, #4
	str	x22, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #2
	bl	_dev_err
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w20, [x8]
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_i2c_unregister_device
LBB0_14:
	neg	w0, w20
LBB0_15:
	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
	add	sp, sp, #80
	ret
LBB0_16:
Lloh22:
	adrp	x8, _ASB100_REG_I2C_SUBADDR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ASB100_REG_I2C_SUBADDR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	and	w8, w9, #0x7
	bfi	w8, w2, #4, #3
	mov	x0, x20
	mov	x2, x8
	bl	_asb100_write_value
	ldr	x8, [x22]
	ldp	w9, w8, [x8, #8]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.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	_ASB100_REG_I2C_SUBADDR,4,2     ; @ASB100_REG_I2C_SUBADDR
l_.str.1:                               ; @.str.1
	.asciz	"duplicate addresses 0x%x for subclients\n"

l_.str.2:                               ; @.str.2
	.asciz	"subclient %d registration at address 0x%x failed.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_asb100_detect_subclients
.subsections_via_symbols
