	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dib8000_i2c_enumeration        ## -- Begin function dib8000_i2c_enumeration
	.p2align	4, 0x90
_dib8000_i2c_enumeration:               ## @dib8000_i2c_enumeration
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)
	testl	%esi, %esi
	jle	LBB0_1
## %bb.6:
	movl	%esi, %r12d
	leal	1(%r12), %r14d
	leal	(%rcx,%r12,2), %ebx
	addl	$-2, %ebx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leal	(,%rcx,4), %eax
	leal	(%rax,%r12,8), %r13d
	addl	$-6, %r13d
	leaq	-64(%rbp), %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	movl	$1286, %esi                     ## imm = 0x506
	movl	$1280, %edx                     ## imm = 0x500
	callq	_dib8000_i2c_write16
	movq	%r15, %rdi
	movl	$1285, %esi                     ## imm = 0x505
	movl	%r13d, %edx
	callq	_dib8000_i2c_write16
	movl	%ebx, -64(%rbp)
	movq	%r15, %rdi
	callq	_dib8000_identify
	leaq	L_.str.1(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dprintk
	decl	%r14d
	addl	$-2, %ebx
	addl	$-8, %r13d
	cmpl	$1, %r14d
	jbe	LBB0_3
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, -64(%rbp)
	movq	%r15, %rdi
	movl	$1287, %esi                     ## imm = 0x507
	movl	$3, %edx
	callq	_dib8000_i2c_write16
	movq	%r15, %rdi
	callq	_dib8000_identify
	testq	%rax, %rax
	jne	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	movl	$1287, %esi                     ## imm = 0x507
	movl	$3, %edx
	callq	_dib8000_i2c_write16
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -64(%rbp)
	movq	%r15, %rdi
	callq	_dib8000_identify
	testq	%rax, %rax
	jne	LBB0_2
## %bb.9:
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_10
LBB0_3:
	xorl	%r15d, %r15d
	testl	%r12d, %r12d
	jle	LBB0_10
## %bb.4:
	leaq	-64(%rbp), %r14
	xorl	%ebx, %ebx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edx
	orl	%r13d, %edx
	movl	%edx, -64(%rbp)
	shll	$2, %edx
	movq	%r14, %rdi
	movl	$1285, %esi                     ## imm = 0x505
	callq	_dib8000_i2c_write16
	movq	%r14, %rdi
	movl	$1286, %esi                     ## imm = 0x506
	xorl	%edx, %edx
	callq	_dib8000_i2c_write16
	addl	$2, %ebx
	decl	%r12d
	jne	LBB0_5
	jmp	LBB0_10
LBB0_1:
	xorl	%r15d, %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"#%d: not identified"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"IC %d initialized (to i2c_address 0x%x)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dib8000_i2c_enumeration        ; -- Begin function dib8000_i2c_enumeration
	.p2align	2
_dib8000_i2c_enumeration:               ; @dib8000_i2c_enumeration
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	x0, [sp, #24]
	cmp	w1, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	add	w25, w1, #1
	add	w8, w3, w1, lsl #1
	sub	w26, w8, #2
	lsl	w8, w1, #3
	add	w8, w8, w3, lsl #2
	sub	w22, w8, #6
Lloh0:
	adrp	x23, l_.str.1@PAGE
Lloh1:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #16
	mov	w1, #1286
	mov	w2, #1280
	bl	_dib8000_i2c_write16
	add	x0, sp, #16
	mov	w1, #1285
	mov	x2, x22
	bl	_dib8000_i2c_write16
	str	w26, [sp, #16]
	add	x0, sp, #16
	bl	_dib8000_identify
	str	x26, [sp]
	mov	x0, x23
	mov	x1, x24
	bl	_dprintk
	sub	w25, w25, #1
	sub	w26, w26, #2
	sub	w22, w22, #8
	cmp	w25, #1
	b.ls	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w24, w25, #2
	str	w26, [sp, #16]
	add	x0, sp, #16
	mov	w1, #1287
	mov	w2, #3
	bl	_dib8000_i2c_write16
	add	x0, sp, #16
	bl	_dib8000_identify
	cbnz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #16
	mov	w1, #1287
	mov	w2, #3
	bl	_dib8000_i2c_write16
	str	w21, [sp, #16]
	add	x0, sp, #16
	bl	_dib8000_identify
	cbnz	x0, LBB0_2
; %bb.5:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	bl	_dprintk
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_6:
	cmp	w20, #1
	b.lt	LBB0_9
; %bb.7:
	mov	w21, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	orr	w8, w21, w19
	str	w8, [sp, #16]
	lsl	w2, w8, #2
	add	x0, sp, #16
	mov	w1, #1285
	bl	_dib8000_i2c_write16
	add	x0, sp, #16
	mov	w1, #1286
	mov	w2, #0
	bl	_dib8000_i2c_write16
	add	w21, w21, #2
	subs	w20, w20, #1
	b.ne	LBB0_8
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"#%d: not identified"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"IC %d initialized (to i2c_address 0x%x)"

.subsections_via_symbols
