	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_i2c
_read_i2c:                              ## @read_i2c
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	leal	-5(%rbx), %eax
	cmpl	$-3, %eax
	ja	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_6
LBB0_2:
	movq	%rsi, %r14
	movq	(%rsi), %rdi
	leaq	-32(%rbp), %rsi
	xorl	%edx, %edx
	callq	_str_to_number
	cmpb	$0, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	-32(%rbp), %rax
	movq	_UCHAR_MAX@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jle	LBB0_7
LBB0_4:
	movq	(%r14), %rsi
	leaq	L_.str.1(%rip), %rdi
LBB0_5:
	xorl	%eax, %eax
	callq	_warnx
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rax, -72(%rbp)
	movq	8(%r14), %rdi
	leaq	-32(%rbp), %rsi
	xorl	%edx, %edx
	callq	_str_to_number
	cmpb	$0, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	-32(%rbp), %rax
	cmpq	(%r15), %rax
	jle	LBB0_10
LBB0_9:
	movq	8(%r14), %rsi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_5
LBB0_10:
	movq	%rax, -64(%rbp)
	movq	16(%r14), %rdi
	leaq	-32(%rbp), %rsi
	xorl	%edx, %edx
	callq	_str_to_number
	cmpb	$0, (%rax)
	jne	LBB0_12
## %bb.11:
	movq	-32(%rbp), %rax
	cmpq	(%r15), %rax
	jle	LBB0_13
LBB0_12:
	movq	16(%r14), %rsi
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_5
LBB0_13:
	movq	%rax, -56(%rbp)
	movl	$1, %eax
	cmpl	$4, %ebx
	jne	LBB0_17
## %bb.14:
	movq	24(%r14), %rdi
	leaq	-32(%rbp), %rsi
	xorl	%edx, %edx
	callq	_str_to_number
	cmpb	$0, (%rax)
	jne	LBB0_16
## %bb.15:
	movq	-32(%rbp), %rax
	cmpq	$9, %rax
	jae	LBB0_16
LBB0_17:
	movq	%rax, -48(%rbp)
	movq	_CHELSIO_T4_GET_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-72(%rbp), %rsi
	callq	_doit
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.18:
	cmpq	$0, -48(%rbp)
	jle	LBB0_19
## %bb.20:
	xorl	%ebx, %ebx
	leaq	L_.str.5(%rip), %r14
	xorl	%r15d, %r15d
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	-40(%rbp), %rax
	movl	(%rax,%r15,4), %edx
	movq	%r14, %rdi
	movl	%edx, %esi
	callq	_printf
	incq	%r15
	cmpq	%r15, -48(%rbp)
	jg	LBB0_21
	jmp	LBB0_22
LBB0_16:
	movq	24(%r14), %rsi
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_5
LBB0_19:
	xorl	%ebx, %ebx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"incorrect number of arguments."

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_UCHAR_MAX,8,3                  ## @UCHAR_MAX
L_.str.1:                               ## @.str.1
	.asciz	"invalid port id \"%s\""

L_.str.2:                               ## @.str.2
	.asciz	"invalid i2c device address \"%s\""

L_.str.3:                               ## @.str.3
	.asciz	"invalid byte offset \"%s\""

L_.str.4:                               ## @.str.4
	.asciz	"invalid number of bytes \"%s\""

	.comm	_CHELSIO_T4_GET_I2C,4,2         ## @CHELSIO_T4_GET_I2C
L_.str.5:                               ## @.str.5
	.asciz	"0x%x [%u]\n"

	.no_dead_strip	_read_i2c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_i2c
_read_i2c:                              ; @read_i2c
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	sub	w8, w0, #5
	cmn	w8, #3
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x1]
	sub	x1, x29, #40
	mov	x2, #0
	bl	_str_to_number
	ldrb	w8, [x0]
	cbnz	w8, LBB0_4
; %bb.3:
	ldur	x8, [x29, #-40]
Lloh2:
	adrp	x21, _UCHAR_MAX@GOTPAGE
Lloh3:
	ldr	x21, [x21, _UCHAR_MAX@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.le	LBB0_7
LBB0_4:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_warnx
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_6:
	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
	add	sp, sp, #112
	ret
LBB0_7:
	str	x8, [sp, #16]
	ldr	x0, [x19, #8]
	sub	x1, x29, #40
	mov	x2, #0
	bl	_str_to_number
	ldrb	w8, [x0]
	cbnz	w8, LBB0_9
; %bb.8:
	ldur	x8, [x29, #-40]
	ldr	x9, [x21]
	cmp	x8, x9
	b.le	LBB0_10
LBB0_9:
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_10:
	str	x8, [sp, #24]
	ldr	x0, [x19, #16]
	sub	x1, x29, #40
	mov	x2, #0
	bl	_str_to_number
	ldrb	w8, [x0]
	cbnz	w8, LBB0_12
; %bb.11:
	ldur	x8, [x29, #-40]
	ldr	x9, [x21]
	cmp	x8, x9
	b.le	LBB0_13
LBB0_12:
	ldr	x8, [x19, #16]
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_13:
	str	x8, [sp, #32]
	cmp	w20, #4
	b.ne	LBB0_17
; %bb.14:
	ldr	x0, [x19, #24]
	sub	x1, x29, #40
	mov	x2, #0
	bl	_str_to_number
	ldrb	w8, [x0]
	cbnz	w8, LBB0_16
; %bb.15:
	ldur	x8, [x29, #-40]
	cmp	x8, #9
	b.lo	LBB0_18
LBB0_16:
	ldr	x8, [x19, #24]
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_5
LBB0_17:
	mov	w8, #1
LBB0_18:
	str	x8, [sp, #40]
Lloh15:
	adrp	x8, _CHELSIO_T4_GET_I2C@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CHELSIO_T4_GET_I2C@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	add	x1, sp, #16
	bl	_doit
	cbnz	w0, LBB0_6
; %bb.19:
	ldr	x8, [sp, #40]
	cmp	x8, #1
	b.lt	LBB0_22
; %bb.20:
	mov	x20, #0
Lloh18:
	adrp	x19, l_.str.5@PAGE
Lloh19:
	add	x19, x19, l_.str.5@PAGEOFF
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #48]
	ldr	w1, [x8, x20, lsl #2]
	mov	x0, x19
	mov	x2, x1
	bl	_printf
	mov	w0, #0
	add	x20, x20, #1
	ldr	x8, [sp, #40]
	cmp	x8, x20
	b.gt	LBB0_21
	b	LBB0_6
LBB0_22:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"incorrect number of arguments."

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_UCHAR_MAX,8,3                  ; @UCHAR_MAX
l_.str.1:                               ; @.str.1
	.asciz	"invalid port id \"%s\""

l_.str.2:                               ; @.str.2
	.asciz	"invalid i2c device address \"%s\""

l_.str.3:                               ; @.str.3
	.asciz	"invalid byte offset \"%s\""

l_.str.4:                               ; @.str.4
	.asciz	"invalid number of bytes \"%s\""

	.comm	_CHELSIO_T4_GET_I2C,4,2         ; @CHELSIO_T4_GET_I2C
l_.str.5:                               ; @.str.5
	.asciz	"0x%x [%u]\n"

	.no_dead_strip	_read_i2c
.subsections_via_symbols
