	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_check_addr_validity
_i2c_check_addr_validity:               ## @i2c_check_addr_validity
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_I2C_CLIENT_TEN@GOTPCREL(%rip), %rax
	testw	%si, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	cmpl	$1024, %edi                     ## imm = 0x400
	jb	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbp
	retq
LBB0_2:
	addl	$-128, %edi
	xorl	%eax, %eax
	cmpl	$-128, %edi
	jbe	LBB0_3
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_CLIENT_TEN,2,1             ## @I2C_CLIENT_TEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_i2c_check_addr_validity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_check_addr_validity
_i2c_check_addr_validity:               ; @i2c_check_addr_validity
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _I2C_CLIENT_TEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_CLIENT_TEN@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_3
; %bb.1:
	cmp	w0, #1024
	b.lo	LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_3:
	sub	w8, w0, #128
	cmn	w8, #128
	b.ls	LBB0_2
LBB0_4:
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_CLIENT_TEN,2,1             ; @I2C_CLIENT_TEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_i2c_check_addr_validity
.subsections_via_symbols
