	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dibx000_master_i2c_write
_dibx000_master_i2c_write:              ## @dibx000_master_i2c_write
	.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
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movl	(%rsi), %r12d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rbx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	16(%rdx), %eax
	shll	$9, %eax
	movl	%r14d, %ecx
	andl	$7, %ecx
	leal	(%rax,%rcx,4), %eax
	xorl	%ecx, %ecx
	cmpl	(%rdx), %r12d
	sete	%cl
	shll	$5, %ecx
	leal	(%rcx,%rax), %esi
	addl	$384, %esi                      ## imm = 0x180
	subl	%r14d, %r12d
	leal	448(%rcx,%rax), %edx
	cmovnel	%esi, %edx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	cmovel	%esi, %edx
	movq	(%r13), %rsi
	incq	%rsi
	movq	%r13, %rdi
	callq	_dibx000_write_word
	movq	%r13, %rdi
	callq	_dibx000_is_i2c_done
	testq	%rax, %rax
	jne	LBB0_10
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rsi
	addq	$2, %rsi
	movq	%r13, %rdi
	callq	_dibx000_read_word
	cmpl	$8, %r12d
	movl	$8, %r14d
	cmovll	%r12d, %r14d
	testl	%r12d, %r12d
	jle	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	orl	4(%rbx), %edx
	addq	$8, %rbx
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	(%r13), %rsi
	movq	%r13, %rdi
	callq	_dibx000_write_word
	addl	$2, %r15d
	cmpl	%r14d, %r15d
	jge	LBB0_9
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %edx
	shll	$8, %edx
	leal	1(%r15), %eax
	cmpl	%r14d, %eax
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	addq	$4, %rbx
	jmp	LBB0_8
LBB0_10:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_2:
	xorl	%eax, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.no_dead_strip	_dibx000_master_i2c_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dibx000_master_i2c_write
_dibx000_master_i2c_write:              ; @dibx000_master_i2c_write
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w22, [x1]
	ldr	x26, [x1, #8]
	mov	w23, #8
	mov	w24, #384
	mov	w25, #416
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26, #4]
	add	x26, x26, #8
	orr	w2, w8, w2
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x21]
	mov	x0, x21
	bl	_dibx000_write_word
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	cmp	w22, w8
	csel	w8, w25, w24, eq
	sub	w22, w22, w27
	cmp	w22, #0
	ccmp	w19, #0, #4, eq
	ldr	w9, [x20, #16]
	ubfiz	w10, w27, #2, #3
	bfi	w10, w9, #9, #23
	orr	w8, w10, w8
	orr	w9, w8, #0x40
	csel	w2, w9, w8, ne
	ldr	x8, [x21]
	add	x1, x8, #1
	mov	x0, x21
	bl	_dibx000_write_word
	mov	x0, x21
	bl	_dibx000_is_i2c_done
	cbnz	x0, LBB0_20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w22, LBB0_21
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	add	x1, x8, #2
	mov	x0, x21
	bl	_dibx000_read_word
	cmp	w22, #8
	csel	w27, w22, w23, lt
	cmp	w22, #1
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x26
	ldr	w9, [x8], #4
	lsl	w2, w9, #8
	cmp	w27, #2
	b.lt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26, #4]
	add	x26, x26, #8
	orr	w2, w8, w2
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x8
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x21]
	mov	x0, x21
	bl	_dibx000_write_word
	cmp	w27, #2
	b.le	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x26
	ldr	w9, [x8], #4
	lsl	w2, w9, #8
	cmp	w27, #3
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x8
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26, #4]
	add	x26, x26, #8
	orr	w2, w8, w2
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x21]
	mov	x0, x21
	bl	_dibx000_write_word
	cmp	w27, #5
	b.lt	LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x26
	ldr	w9, [x8], #4
	lsl	w2, w9, #8
	cmp	w27, #5
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x8
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26, #4]
	add	x26, x26, #8
	orr	w2, w8, w2
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x21]
	mov	x0, x21
	bl	_dibx000_write_word
	cmp	w27, #7
	b.lt	LBB0_3
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x26
	ldr	w9, [x8], #4
	lsl	w2, w9, #8
	cmp	w27, #7
	b.ne	LBB0_1
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x8
	b	LBB0_2
LBB0_20:
Lloh0:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_21:
	mov	w0, #0
LBB0_22:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.no_dead_strip	_dibx000_master_i2c_write
.subsections_via_symbols
