	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remote_i2c_read_ok
_remote_i2c_read_ok:                    ## @remote_i2c_read_ok
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	leal	-1(%rsi), %r8d
	movq	_DP_REMOTE_I2C_READ_MAX_TRANSACTIONS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	(%rcx), %r8d
	jg	LBB0_8
## %bb.1:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	$2, %esi
	jl	LBB0_6
## %bb.2:
	movl	%r8d, %esi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testl	%edx, (%rdi,%rcx,8)
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$255, 4(%rdi,%rcx,8)
	jg	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	cmpq	%rcx, %rsi
	jne	LBB0_3
LBB0_6:
	movslq	%r8d, %rcx
	testl	%edx, (%rdi,%rcx,8)
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	cmpl	$256, 4(%rdi,%rcx,8)            ## imm = 0x100
	setl	%al
LBB0_8:
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_REMOTE_I2C_READ_MAX_TRANSACTIONS,4,2 ## @DP_REMOTE_I2C_READ_MAX_TRANSACTIONS
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.no_dead_strip	_remote_i2c_read_ok
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remote_i2c_read_ok
_remote_i2c_read_ok:                    ; @remote_i2c_read_ok
	.cfi_startproc
; %bb.0:
	sub	w8, w1, #1
Lloh0:
	adrp	x9, _DP_REMOTE_I2C_READ_MAX_TRANSACTIONS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DP_REMOTE_I2C_READ_MAX_TRANSACTIONS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_2
LBB0_1:
	mov	w0, #0
	ret
LBB0_2:
Lloh3:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w1, #2
	b.lt	LBB0_7
; %bb.3:
	add	x10, x0, #4
	mov	x11, x8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w12, [x10, #-4]
	tst	w9, w12
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w12, [x10]
	cmp	w12, #255
	b.gt	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #8
	subs	x11, x11, #1
	b.ne	LBB0_4
LBB0_7:
	sbfiz	x10, x8, #3, #32
	ldr	w10, [x0, x10]
	tst	w9, w10
	b.eq	LBB0_1
; %bb.8:
	sxtw	x8, w8
	add	x8, x0, x8, lsl #3
	ldr	w8, [x8, #4]
	cmp	w8, #256
	cset	w0, lt
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_REMOTE_I2C_READ_MAX_TRANSACTIONS,4,2 ; @DP_REMOTE_I2C_READ_MAX_TRANSACTIONS
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.no_dead_strip	_remote_i2c_read_ok
.subsections_via_symbols
