	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ddb_i2c_init                   ## -- Begin function ddb_i2c_init
	.p2align	4, 0x90
_ddb_i2c_init:                          ## @ddb_i2c_init
	.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	_DDB_MAX_LINK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%esi, %esi
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %r15
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_DDB_MAX_LINK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	cmpq	%rax, %r15
	jae	LBB0_15
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	16(%rdi), %rcx
	movq	(%rcx,%r15,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rdx), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, (%rcx)
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdx), %eax
	btl	%r14d, %eax
	jae	LBB0_21
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	leaq	(,%r13,4), %rbx
	addq	8(%rdi), %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14), %rdx
	movq	_i2c_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rdi, %r12
	movq	%r15, %rsi
	movq	%rbx, %r8
	callq	_ddb_irq_set
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r15, %r12
	movq	%r15, %rcx
	movq	%r14, %r8
	movq	%r13, %r9
	callq	_ddb_i2c_add
	testl	%eax, %eax
	jne	LBB0_12
## %bb.20:                              ##   in Loop: Header=BB0_10 Depth=2
	incq	%r13
	movq	8(%rbx), %rcx
	xorl	%esi, %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %r15
LBB0_21:                                ##   in Loop: Header=BB0_10 Depth=2
	incq	%r14
	cmpq	(%rcx), %r14
	jae	LBB0_13
## %bb.22:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	16(%rdi), %rax
	movq	(%rax,%r15,8), %rdx
	jmp	LBB0_10
LBB0_15:
	testl	%esi, %esi
	je	LBB0_2
## %bb.16:
	testq	%r13, %r13
	je	LBB0_3
## %bb.17:
	movq	%rsi, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	addq	%rbx, %rdi
	callq	_i2c_del_adapter
	addq	$4, %rbx
	decq	%r13
	jne	LBB0_18
## %bb.19:
	movq	%r15, %rsi
	jmp	LBB0_3
LBB0_1:
	xorl	%r13d, %r13d
LBB0_2:
	movq	%r13, (%rdi)
	xorl	%esi, %esi
LBB0_3:
	movl	%esi, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DDB_MAX_LINK,8,3               ## @DDB_MAX_LINK
	.comm	_i2c_handler,4,2                ## @i2c_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ddb_i2c_init                   ; -- Begin function ddb_i2c_init
	.p2align	2
_ddb_i2c_init:                          ; @ddb_i2c_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x25, _DDB_MAX_LINK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DDB_MAX_LINK@GOTPAGEOFF]
	ldr	x8, [x25]
	cbz	x8, LBB0_18
; %bb.1:
	mov	w21, #0
	mov	x22, #0
	mov	x20, #0
Lloh2:
	adrp	x26, _i2c_handler@GOTPAGE
Lloh3:
	ldr	x26, [x26, _i2c_handler@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	cmp	x22, x8
	b.hs	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x9, [x19, #16]
	ldr	x10, [x9, x22, lsl #3]
	cbz	x10, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x23, [x10, #8]
	cbz	x23, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x23, #8]
	cbz	x9, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x9]
	cbz	x11, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, #0
	ldr	x27, [x23]
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x10]
	lsr	w8, w8, w24
	tbz	w8, #0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x19, #8]
	add	x21, x8, x20, lsl #2
	add	x2, x27, x24
	ldr	w3, [x26]
	mov	x0, x19
	mov	x1, x22
	mov	x4, x21
	bl	_ddb_irq_set
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	mov	x4, x24
	mov	x5, x20
	bl	_ddb_i2c_add
	mov	x21, x0
	cbnz	w0, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x20, x20, #1
	ldr	x9, [x23, #8]
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=2
	add	x24, x24, #1
	ldr	x8, [x9]
	cmp	x24, x8
	b.hs	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x19, #16]
	ldr	x10, [x8, x22, lsl #3]
	b	LBB0_9
LBB0_14:
	cbz	w21, LBB0_19
; %bb.15:
	cbz	x20, LBB0_20
; %bb.16:
	mov	x22, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x22
	bl	_i2c_del_adapter
	add	x22, x22, #4
	subs	x20, x20, #1
	b.ne	LBB0_17
	b	LBB0_20
LBB0_18:
	mov	x20, #0
LBB0_19:
	mov	w21, #0
	str	x20, [x19]
LBB0_20:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_DDB_MAX_LINK,8,3               ; @DDB_MAX_LINK
	.comm	_i2c_handler,4,2                ; @i2c_handler
.subsections_via_symbols
