	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$216, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r12d
	movq	_errno@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_I2C_DEV@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	movq	$0, -128(%rbp)
	movl	$0, -120(%rbp)
	movb	$114, -116(%rbp)
	movabsq	$4294967304, %rax               ## imm = 0x100000008
	movq	%rax, -112(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -104(%rbp)
	movq	_I2C_MODE_NOTSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	%rax, -88(%rbp)
	movb	$114, -41(%rbp)                 ## 1-byte Folded Spill
	movl	$8, %eax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	leaq	L_.str(%rip), %rbx
	leaq	LJTI0_0(%rip), %r14
	movq	_optarg@GOTPCREL(%rip), %r13
	movq	_I2C_MODE_STOP_START@GOTPCREL(%rip), %rax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movl	$0, -148(%rbp)                  ## 4-byte Folded Spill
	movl	$0, -144(%rbp)                  ## 4-byte Folded Spill
	movl	$1, %eax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rdi
	callq	_atoi
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movl	%eax, -112(%rbp)
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_getopt
                                        ## kill: def $eax killed $eax def $rax
	incl	%eax
	cmpl	$120, %eax
	ja	LBB0_21
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r14,%rax,4), %rax
	addq	%r14, %rax
	jmpq	*%rax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_strtoul
	addl	%eax, %eax
	movl	%eax, -80(%rbp)
	jne	LBB0_23
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_23
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, -128(%rbp)
	movl	$0, -140(%rbp)                  ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, -104(%rbp)
	movl	$1, -148(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_2
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rdi
	callq	_atoi
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	movl	%eax, -108(%rbp)
	jmp	LBB0_2
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movzbl	(%rax), %eax
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	movb	%al, -116(%rbp)
	jmp	LBB0_2
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rbx
	movq	(%r13), %r13
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_24
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_25
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_26
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_27
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_29
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, -96(%rbp)
	movq	(%r13), %rax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	movl	$1, -144(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_2
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_strtoul
	movl	%eax, -124(%rbp)
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jne	LBB0_2
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movl	$1, %ecx
	cmovel	%ecx, %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, -92(%rbp)
	movl	$1, -68(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, -100(%rbp)
	movl	$1, -56(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_2
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, -120(%rbp)
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, -140(%rbp)                ## 4-byte Spill
	movl	$1, -128(%rbp)
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_I2C_MODE_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_I2C_MODE_STOP_START@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_I2C_MODE_REPEATED_START@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_I2C_MODE_TRANSFER@GOTPCREL(%rip), %rax
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	%rax, -88(%rbp)
LBB0_29:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_optarg@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %rbx
	jmp	LBB0_2
LBB0_30:
	movq	-136(%rbp), %r12                ## 8-byte Reload
	movq	_I2C_MODE_NOTSET@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_36
## %bb.31:
	movb	-41(%rbp), %bl                  ## 1-byte Reload
	cmpb	$114, %bl
	movq	-168(%rbp), %r14                ## 8-byte Reload
	movq	-176(%rbp), %r15                ## 8-byte Reload
	je	LBB0_34
## %bb.32:
	cmpb	$119, %bl
	jne	LBB0_35
## %bb.33:
	movq	_I2C_MODE_NONE@GOTPCREL(%rip), %rax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
LBB0_34:
	movq	-184(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %r12
	movq	%r12, -88(%rbp)
LBB0_35:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_38
	jmp	LBB0_37
LBB0_36:
	movq	-168(%rbp), %r14                ## 8-byte Reload
	movq	-176(%rbp), %r15                ## 8-byte Reload
	movb	-41(%rbp), %bl                  ## 1-byte Reload
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_38
LBB0_37:
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_77
LBB0_38:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_40
LBB0_39:
	xorl	%eax, %eax
	callq	_usage
LBB0_40:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_42
## %bb.41:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-140(%rbp), %ecx                ## 4-byte Reload
	sarl	%ecx
	movsbl	%bl, %r8d
	movl	%r15d, 8(%rsp)
	movq	-160(%rbp), %rax                ## 8-byte Reload
	movl	%eax, (%rsp)
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdx
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_fprintf
LBB0_42:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_85
## %bb.43:
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_86
## %bb.44:
	movl	%r15d, %edi
	callq	_malloc
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_46
## %bb.45:
	cmpb	$119, %bl
	je	LBB0_47
	jmp	LBB0_56
LBB0_46:
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	callq	_err
	cmpb	$119, %bl
	jne	LBB0_56
LBB0_47:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_50
## %bb.48:
	cmpl	$0, -148(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_50
## %bb.49:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_50:
	testl	%r15d, %r15d
	jle	LBB0_56
## %bb.51:
	movq	_EOF@GOTPCREL(%rip), %r15
	leaq	L_.str.8(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_53
	.p2align	4, 0x90
LBB0_52:                                ##   in Loop: Header=BB0_53 Depth=1
	movb	%r12b, (%r13,%rbx)
	incq	%rbx
	movslq	-108(%rbp), %rax
	cmpq	%rax, %rbx
	jge	LBB0_55
LBB0_53:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_getchar
	movl	%eax, %r12d
	cmpl	(%r15), %eax
	jne	LBB0_52
## %bb.54:                              ##   in Loop: Header=BB0_53 Depth=1
	movq	%r13, %rdi
	callq	_free
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_err
	jmp	LBB0_52
LBB0_55:
	movq	-88(%rbp), %r12
	movq	-168(%rbp), %r14                ## 8-byte Reload
LBB0_56:
	movq	_I2C_MODE_TRANSFER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_58
## %bb.57:
	movq	-80(%rbp), %rax
	movq	%rax, 48(%rsp)
	movups	-128(%rbp), %xmm0
	movups	-112(%rbp), %xmm1
	movups	-96(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_i2c_rdwr_transfer
	jmp	LBB0_61
LBB0_58:
	cmpb	$119, -116(%rbp)
	jne	LBB0_60
## %bb.59:
	movq	-80(%rbp), %rax
	movq	%rax, 48(%rsp)
	movups	-128(%rbp), %xmm0
	movups	-112(%rbp), %xmm1
	movups	-96(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_i2c_write
	jmp	LBB0_61
LBB0_60:
	movq	-80(%rbp), %rax
	movq	%rax, 48(%rsp)
	movups	-128(%rbp), %xmm0
	movups	-112(%rbp), %xmm1
	movups	-96(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_i2c_read
LBB0_61:
	movl	$1, %r14d
	testl	%eax, %eax
	jne	LBB0_62
## %bb.63:
	movl	-120(%rbp), %ebx
	testl	%ebx, %ebx
	je	LBB0_65
## %bb.64:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpb	$114, -116(%rbp)
	leaq	L_.str.10(%rip), %rax
	leaq	L_.str.11(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_65:
	movl	-108(%rbp), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_84
## %bb.66:
	xorl	%esi, %esi
	testl	%ebx, %ebx
	sete	%sil
	setne	%al
	movb	-116(%rbp), %cl
	cmpb	$114, %cl
	sete	%dl
	cmpl	$0, -104(%rbp)
	sete	%r14b
	setne	%bl
	andb	%dl, %r14b
	andb	%dl, %bl
	movb	%bl, -56(%rbp)                  ## 1-byte Spill
	cmpb	$119, %cl
	sete	%r12b
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	andb	%sil, %r12b
	orb	%al, %r14b
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_68
	.p2align	4, 0x90
LBB0_67:                                ##   in Loop: Header=BB0_68 Depth=1
	cmpl	-60(%rbp), %ebx                 ## 4-byte Folded Reload
	jge	LBB0_75
LBB0_68:                                ## =>This Inner Loop Header: Depth=1
	testb	%r14b, %r14b
	je	LBB0_69
## %bb.71:                              ##   in Loop: Header=BB0_68 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	%ebx, %rax
	incl	%ebx
	movsbl	(%r13,%rax), %edx
	leaq	L_.str.12(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	cmpb	$0, -56(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_72
LBB0_70:                                ##   in Loop: Header=BB0_68 Depth=1
	testb	%r12b, %r12b
	je	LBB0_73
	jmp	LBB0_75
	.p2align	4, 0x90
LBB0_69:                                ##   in Loop: Header=BB0_68 Depth=1
	cmpb	$0, -56(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_70
LBB0_72:                                ##   in Loop: Header=BB0_68 Depth=1
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	%r15d, %rax
	incl	%r15d
	movsbl	(%r13,%rax), %edx
	leaq	L_.str.13(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	addl	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	testb	%r12b, %r12b
	jne	LBB0_75
LBB0_73:                                ##   in Loop: Header=BB0_68 Depth=1
	testb	$15, %bl
	jne	LBB0_67
## %bb.74:                              ##   in Loop: Header=BB0_68 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.14(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_67
LBB0_75:
	testb	$15, %bl
	je	LBB0_84
## %bb.76:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.14(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_62
LBB0_84:
	xorl	%r14d, %r14d
LBB0_62:
	movq	%r13, %rdi
	callq	_free
	movl	%r14d, %eax
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_77:
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_39
## %bb.78:
	cmpb	$119, %bl
	je	LBB0_80
## %bb.79:
	cmpb	$114, %bl
	jne	LBB0_40
LBB0_80:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_39
## %bb.81:
	cmpl	$16, -160(%rbp)                 ## 4-byte Folded Reload
	ja	LBB0_39
## %bb.82:
	movl	$65793, %eax                    ## imm = 0x10101
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	btl	%ecx, %eax
	jb	LBB0_40
	jmp	LBB0_39
LBB0_85:
	movq	%r14, %rsi
	movl	-144(%rbp), %edx                ## 4-byte Reload
	movq	-192(%rbp), %rcx                ## 8-byte Reload
	callq	_scan_bus
	movl	%eax, %edi
	callq	_exit
LBB0_86:
	movq	%r14, %rsi
	callq	_reset_bus
	movl	%eax, %edi
	callq	_exit
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_1, LBB0_1-LJTI0_0
LJTI0_0:
	.long	L0_0_set_30
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_4
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_21
	.long	L0_0_set_10
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_11
	.long	L0_0_set_16
	.long	L0_0_set_17
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_22
	.long	L0_0_set_1
	.end_data_region
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_I2C_DEV,8,3                    ## @I2C_DEV
	.comm	_I2C_MODE_NOTSET,8,3            ## @I2C_MODE_NOTSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"a:f:d:o:w:c:m:n:sbvrh"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_EINVAL,8,3                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"no"

	.comm	_I2C_MODE_NONE,8,3              ## @I2C_MODE_NONE
L_.str.2:                               ## @.str.2
	.asciz	"ss"

	.comm	_I2C_MODE_STOP_START,8,3        ## @I2C_MODE_STOP_START
L_.str.3:                               ## @.str.3
	.asciz	"rs"

	.comm	_I2C_MODE_REPEATED_START,8,3    ## @I2C_MODE_REPEATED_START
L_.str.4:                               ## @.str.4
	.asciz	"tr"

	.comm	_I2C_MODE_TRANSFER,8,3          ## @I2C_MODE_TRANSFER
	.comm	_optind,8,3                     ## @optind
	.comm	_stderr,4,2                     ## @stderr
L_.str.5:                               ## @.str.5
	.asciz	"dev: %s, addr: 0x%x, r/w: %c, offset: 0x%02x, width: %u, count: %u\n"

L_.str.6:                               ## @.str.6
	.asciz	"data malloc"

L_.str.7:                               ## @.str.7
	.asciz	"Enter %u bytes of data: "

	.comm	_EOF,4,2                        ## @EOF
L_.str.8:                               ## @.str.8
	.asciz	"not enough data, exiting\n"

L_.str.9:                               ## @.str.9
	.asciz	"\nData %s (hex):\n"

L_.str.10:                              ## @.str.10
	.asciz	"read"

L_.str.11:                              ## @.str.11
	.asciz	"written"

L_.str.12:                              ## @.str.12
	.asciz	"%02hhx "

	.comm	_stdout,4,2                     ## @stdout
L_.str.13:                              ## @.str.13
	.asciz	"%c"

L_.str.14:                              ## @.str.14
	.asciz	"\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #288
	.cfi_def_cfa_offset 288
	stp	x28, x27, [sp, #192]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #208]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #224]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #240]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #256]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #272]            ; 16-byte Folded Spill
	add	x29, sp, #272
	.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	x25, x1
	mov	x26, x0
	str	wzr, [sp, #84]                  ; 4-byte Folded Spill
	str	xzr, [sp, #88]                  ; 8-byte Folded Spill
	mov	w8, #0
	mov	w21, #0
	mov	w23, #0
	str	wzr, [sp, #116]                 ; 4-byte Folded Spill
	str	wzr, [sp, #60]                  ; 4-byte Folded Spill
Lloh0:
	adrp	x9, _errno@GOTPAGE
Lloh1:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh2:
	str	xzr, [x9]
Lloh3:
	adrp	x9, _I2C_DEV@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_DEV@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	str	x9, [sp, #96]                   ; 8-byte Folded Spill
Lloh6:
	adrp	x9, _I2C_MODE_NOTSET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I2C_MODE_NOTSET@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	str	x9, [sp, #64]                   ; 8-byte Folded Spill
	mov	w20, #114
	mov	w9, #8
	str	x9, [sp, #104]                  ; 8-byte Folded Spill
	mov	w9, #1
	str	x9, [sp, #120]                  ; 8-byte Folded Spill
Lloh9:
	adrp	x27, l_.str@PAGE
Lloh10:
	add	x27, x27, l_.str@PAGEOFF
Lloh11:
	adrp	x22, lJTI0_0@PAGE
Lloh12:
	add	x22, x22, lJTI0_0@PAGEOFF
Lloh13:
	adrp	x24, _optarg@GOTPAGE
Lloh14:
	ldr	x24, [x24, _optarg@GOTPAGEOFF]
                                        ; implicit-def: $w9
                                        ; kill: killed $w9
                                        ; implicit-def: $x9
                                        ; kill: killed $x9
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	mov	x8, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x19, x8
	mov	x0, x26
	mov	x1, x25
	mov	x2, x27
	bl	_getopt
	add	w9, w0, #1
	cmp	w9, #120
	b.hi	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #1
	adr	x10, LBB0_1
	ldrb	w11, [x22, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x24]
	mov	w1, #0
	mov	w2, #16
	bl	_strtoul
	lsl	w9, w0, #1
	cbnz	w9, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	str	xzr, [sp, #112]                 ; 8-byte Folded Spill
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x8]
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	x11, [x8]
	mov	x8, x19
	cmp	x10, x11
	b.eq	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #1
	stp	w9, w8, [sp, #112]              ; 8-byte Folded Spill
	mov	x8, x19
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w21, #1
	mov	x8, x19
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x24]
	bl	_atoi
	str	x0, [sp, #120]                  ; 8-byte Folded Spill
	mov	x8, x19
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	ldrb	w20, [x8]
	mov	x8, x19
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	str	x8, [sp, #96]                   ; 8-byte Folded Spill
	mov	x8, x19
	b	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x28, [x24]
	mov	x0, x28
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_22
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x28
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_23
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x28
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_24
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x28
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_1
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh29:
	adrp	x8, _I2C_MODE_TRANSFER@GOTPAGE
Lloh30:
	ldr	x8, [x8, _I2C_MODE_TRANSFER@GOTPAGEOFF]
	b	LBB0_25
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	str	x8, [sp, #72]                   ; 8-byte Folded Spill
	mov	w8, #1
	str	w8, [sp, #88]                   ; 4-byte Folded Spill
	mov	x8, x19
	b	LBB0_2
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x24]
	mov	w1, #0
	mov	w2, #16
	bl	_strtoul
	mov	x23, x0
	mov	x8, x19
	cbnz	w0, LBB0_2
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh31:
	adrp	x8, _errno@GOTPAGE
Lloh32:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
Lloh34:
	adrp	x9, _EINVAL@GOTPAGE
Lloh35:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x8, x9
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	csinc	w8, w8, wzr, ne
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
	mov	x8, x19
	b	LBB0_2
LBB0_19:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #1
	str	w8, [sp, #84]                   ; 4-byte Folded Spill
	mov	x8, x19
	b	LBB0_2
LBB0_20:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #1
	str	w8, [sp, #92]                   ; 4-byte Folded Spill
	mov	x8, x19
	b	LBB0_2
LBB0_21:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x24]
	bl	_atoi
	str	x0, [sp, #104]                  ; 8-byte Folded Spill
	mov	x8, x19
	b	LBB0_2
LBB0_22:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh37:
	adrp	x8, _I2C_MODE_NONE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _I2C_MODE_NONE@GOTPAGEOFF]
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh39:
	adrp	x8, _I2C_MODE_STOP_START@GOTPAGE
Lloh40:
	ldr	x8, [x8, _I2C_MODE_STOP_START@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh41:
	adrp	x8, _I2C_MODE_REPEATED_START@GOTPAGE
Lloh42:
	ldr	x8, [x8, _I2C_MODE_REPEATED_START@GOTPAGEOFF]
LBB0_25:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x8]
	str	x8, [sp, #64]                   ; 8-byte Folded Spill
	mov	x8, x19
	b	LBB0_2
LBB0_26:
Lloh43:
	adrp	x8, _I2C_MODE_NOTSET@GOTPAGE
Lloh44:
	ldr	x8, [x8, _I2C_MODE_NOTSET@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	ldr	x22, [sp, #64]                  ; 8-byte Folded Reload
	cmp	x22, x8
	b.ne	LBB0_31
; %bb.27:
	mov	x28, x20
	and	w8, w28, #0xff
	cmp	w8, #119
	mov	x25, x21
	b.eq	LBB0_32
; %bb.28:
	cmp	w8, #114
	ldr	w21, [sp, #84]                  ; 4-byte Folded Reload
	b.ne	LBB0_30
; %bb.29:
Lloh46:
	adrp	x8, _I2C_MODE_STOP_START@GOTPAGE
Lloh47:
	ldr	x8, [x8, _I2C_MODE_STOP_START@GOTPAGEOFF]
Lloh48:
	ldr	x22, [x8]
LBB0_30:
	ldr	w20, [sp, #92]                  ; 4-byte Folded Reload
	cbnz	w19, LBB0_35
	b	LBB0_34
LBB0_31:
	mov	x25, x21
	mov	x28, x20
	b	LBB0_33
LBB0_32:
Lloh49:
	adrp	x8, _I2C_MODE_NONE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _I2C_MODE_NONE@GOTPAGEOFF]
Lloh51:
	ldr	x22, [x8]
LBB0_33:
	ldr	w21, [sp, #84]                  ; 4-byte Folded Reload
	ldr	w20, [sp, #92]                  ; 4-byte Folded Reload
	cbnz	w19, LBB0_35
LBB0_34:
	cbz	w21, LBB0_74
LBB0_35:
	ldr	w8, [sp, #116]                  ; 4-byte Folded Reload
	cbz	w8, LBB0_37
LBB0_36:
	bl	_usage
LBB0_37:
	cbz	w20, LBB0_39
; %bb.38:
Lloh52:
	adrp	x8, _stderr@GOTPAGE
Lloh53:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
	ldr	w8, [sp, #112]                  ; 4-byte Folded Reload
	asr	w11, w8, #1
	ldr	x9, [sp, #120]                  ; 8-byte Folded Reload
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	ldr	x10, [sp, #104]                 ; 8-byte Folded Reload
                                        ; kill: def $w10 killed $w10 killed $x10 def $x10
	stp	x10, x9, [sp, #32]
	sxtb	x9, w28
	stp	x9, x23, [sp, #16]
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	stp	x8, x11, [sp]
Lloh55:
	adrp	x1, l_.str.5@PAGE
Lloh56:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
LBB0_39:
	cbnz	w19, LBB0_80
; %bb.40:
	cbnz	w21, LBB0_81
; %bb.41:
	ldr	x0, [sp, #120]                  ; 8-byte Folded Reload
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_malloc
	mov	x24, x0
	cbnz	x0, LBB0_43
; %bb.42:
Lloh57:
	adrp	x1, l_.str.6@PAGE
Lloh58:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_43:
	and	w8, w28, #0xff
	cmp	w8, #119
	b.ne	LBB0_52
; %bb.44:
	str	x22, [sp, #64]                  ; 8-byte Folded Spill
	cbz	w20, LBB0_47
; %bb.45:
	cbnz	w25, LBB0_47
; %bb.46:
Lloh59:
	adrp	x8, _stderr@GOTPAGE
Lloh60:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
	ldr	x8, [sp, #120]                  ; 8-byte Folded Reload
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
Lloh62:
	adrp	x1, l_.str.7@PAGE
Lloh63:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_fprintf
LBB0_47:
	mov	x21, x25
	ldr	x8, [sp, #120]                  ; 8-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_54
; %bb.48:
	mov	x19, #0
	ldr	x8, [sp, #120]                  ; 8-byte Folded Reload
	mov	w22, w8
Lloh64:
	adrp	x27, _EOF@GOTPAGE
Lloh65:
	ldr	x27, [x27, _EOF@GOTPAGEOFF]
Lloh66:
	adrp	x25, l_.str.8@PAGE
Lloh67:
	add	x25, x25, l_.str.8@PAGEOFF
	b	LBB0_50
LBB0_49:                                ;   in Loop: Header=BB0_50 Depth=1
	strb	w26, [x24, x19]
	add	x19, x19, #1
	cmp	x22, x19
	b.eq	LBB0_54
LBB0_50:                                ; =>This Inner Loop Header: Depth=1
	bl	_getchar
	mov	x26, x0
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_49
; %bb.51:                               ;   in Loop: Header=BB0_50 Depth=1
	mov	x0, x24
	bl	_free
	mov	w0, #1
	mov	x1, x25
	bl	_err
	b	LBB0_49
LBB0_52:
Lloh68:
	adrp	x8, _I2C_MODE_TRANSFER@GOTPAGE
Lloh69:
	ldr	x8, [x8, _I2C_MODE_TRANSFER@GOTPAGEOFF]
Lloh70:
	ldr	x8, [x8]
	cmp	x22, x8
	b.eq	LBB0_55
; %bb.53:
	ldr	w8, [sp, #116]                  ; 4-byte Folded Reload
	stp	w8, w23, [sp, #128]
	str	w20, [sp, #136]
	strb	w28, [sp, #140]
	ldp	x0, x9, [sp, #96]               ; 16-byte Folded Reload
	ldr	x8, [sp, #120]                  ; 8-byte Folded Reload
	stp	w9, w8, [sp, #144]
	stp	w25, wzr, [sp, #152]
	ldr	w8, [sp, #88]                   ; 4-byte Folded Reload
	stp	w8, wzr, [sp, #160]
	str	x22, [sp, #168]
	ldr	w8, [sp, #112]                  ; 4-byte Folded Reload
	str	w8, [sp, #176]
	add	x1, sp, #128
	mov	x2, x24
	bl	_i2c_read
	cbnz	w0, LBB0_56
	b	LBB0_58
LBB0_54:
Lloh71:
	adrp	x8, _I2C_MODE_TRANSFER@GOTPAGE
Lloh72:
	ldr	x8, [x8, _I2C_MODE_TRANSFER@GOTPAGEOFF]
Lloh73:
	ldr	x8, [x8]
	ldr	x22, [sp, #64]                  ; 8-byte Folded Reload
	cmp	x22, x8
	mov	x25, x21
	b.ne	LBB0_57
LBB0_55:
	ldr	w8, [sp, #116]                  ; 4-byte Folded Reload
	stp	w8, w23, [sp, #128]
	str	w20, [sp, #136]
	strb	w28, [sp, #140]
	ldp	x0, x9, [sp, #96]               ; 16-byte Folded Reload
	ldr	x8, [sp, #120]                  ; 8-byte Folded Reload
	stp	w9, w8, [sp, #144]
	stp	w25, wzr, [sp, #152]
	ldr	w8, [sp, #88]                   ; 4-byte Folded Reload
	stp	w8, wzr, [sp, #160]
	str	x22, [sp, #168]
	ldr	w8, [sp, #112]                  ; 4-byte Folded Reload
	str	w8, [sp, #176]
	add	x1, sp, #128
	mov	x2, x24
	bl	_i2c_rdwr_transfer
	cbz	w0, LBB0_58
LBB0_56:
	mov	w19, #1
	b	LBB0_73
LBB0_57:
	ldr	w8, [sp, #116]                  ; 4-byte Folded Reload
	stp	w8, w23, [sp, #128]
	str	w20, [sp, #136]
	mov	w8, #119
	strb	w8, [sp, #140]
	ldp	x0, x9, [sp, #96]               ; 16-byte Folded Reload
	ldr	x8, [sp, #120]                  ; 8-byte Folded Reload
	stp	w9, w8, [sp, #144]
	stp	w25, wzr, [sp, #152]
	ldr	w8, [sp, #88]                   ; 4-byte Folded Reload
	stp	w8, wzr, [sp, #160]
	str	x22, [sp, #168]
	ldr	w8, [sp, #112]                  ; 4-byte Folded Reload
	str	w8, [sp, #176]
	add	x1, sp, #128
	mov	x2, x24
	bl	_i2c_write
	cbnz	w0, LBB0_56
LBB0_58:
	cbz	w20, LBB0_60
; %bb.59:
Lloh74:
	adrp	x8, _stderr@GOTPAGE
Lloh75:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh76:
	ldr	w0, [x8]
	and	w8, w28, #0xff
Lloh77:
	adrp	x9, l_.str.11@PAGE
Lloh78:
	add	x9, x9, l_.str.11@PAGEOFF
Lloh79:
	adrp	x10, l_.str.10@PAGE
Lloh80:
	add	x10, x10, l_.str.10@PAGEOFF
	cmp	w8, #114
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh81:
	adrp	x1, l_.str.9@PAGE
Lloh82:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_fprintf
LBB0_60:
	ldr	x8, [sp, #120]                  ; 8-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_72
; %bb.61:
	mov	w23, #0
	mov	w19, #0
	and	w8, w28, #0xff
	cmp	w8, #119
	cset	w9, eq
	cmp	w20, #0
	cset	w10, ne
	cset	w11, eq
	cmp	w8, #114
	cset	w8, eq
	cmp	w25, #0
	cset	w12, eq
	and	w12, w8, w12
	cset	w13, ne
	and	w25, w8, w13
	eor	w26, w20, #0x1
	and	w27, w11, w9
	orr	w22, w10, w12
Lloh83:
	adrp	x28, _stderr@GOTPAGE
Lloh84:
	ldr	x28, [x28, _stderr@GOTPAGEOFF]
Lloh85:
	adrp	x21, l_.str.13@PAGE
Lloh86:
	add	x21, x21, l_.str.13@PAGEOFF
	b	LBB0_63
LBB0_62:                                ;   in Loop: Header=BB0_63 Depth=1
	ldr	x8, [sp, #120]                  ; 8-byte Folded Reload
	cmp	w19, w8
	b.ge	LBB0_70
LBB0_63:                                ; =>This Inner Loop Header: Depth=1
	cbnz	w22, LBB0_66
; %bb.64:                               ;   in Loop: Header=BB0_63 Depth=1
	cbnz	w25, LBB0_67
LBB0_65:                                ;   in Loop: Header=BB0_63 Depth=1
	tbz	w27, #0, LBB0_68
	b	LBB0_70
LBB0_66:                                ;   in Loop: Header=BB0_63 Depth=1
	ldr	w0, [x28]
	add	w20, w19, #1
	ldrsb	x8, [x24, w19, sxtw]
	str	x8, [sp]
Lloh87:
	adrp	x1, l_.str.12@PAGE
Lloh88:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_fprintf
	mov	x19, x20
	cbz	w25, LBB0_65
LBB0_67:                                ;   in Loop: Header=BB0_63 Depth=1
Lloh89:
	adrp	x8, _stdout@GOTPAGE
Lloh90:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh91:
	ldr	w0, [x8]
	add	w20, w23, #1
	ldrsb	x8, [x24, w23, sxtw]
	str	x8, [sp]
	mov	x1, x21
	bl	_fprintf
	add	w19, w19, w26
	mov	x23, x20
	tbnz	w27, #0, LBB0_70
LBB0_68:                                ;   in Loop: Header=BB0_63 Depth=1
	tst	w19, #0xf
	b.ne	LBB0_62
; %bb.69:                               ;   in Loop: Header=BB0_63 Depth=1
	ldr	w0, [x28]
Lloh92:
	adrp	x1, l_.str.14@PAGE
Lloh93:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_fprintf
	b	LBB0_62
LBB0_70:
	tst	w19, #0xf
	b.eq	LBB0_72
; %bb.71:
	ldr	w0, [x28]
Lloh94:
	adrp	x1, l_.str.14@PAGE
Lloh95:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_fprintf
LBB0_72:
	mov	w19, #0
LBB0_73:
	mov	x0, x24
	bl	_free
	mov	x0, x19
	ldp	x29, x30, [sp, #272]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #256]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #240]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #224]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #208]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #288
	ret
LBB0_74:
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_36
; %bb.75:
	and	w8, w28, #0xff
	cmp	w8, #119
	b.eq	LBB0_77
; %bb.76:
	cmp	w8, #114
	b.ne	LBB0_37
LBB0_77:
	ldr	w8, [sp, #116]                  ; 4-byte Folded Reload
	cbz	w8, LBB0_36
; %bb.78:
	ldr	x8, [sp, #104]                  ; 8-byte Folded Reload
	cmp	w8, #16
	b.hi	LBB0_36
; %bb.79:
	mov	w8, #1
	ldr	x9, [sp, #104]                  ; 8-byte Folded Reload
	lsl	w8, w8, w9
	mov	w9, #257
	movk	w9, #1, lsl #16
	tst	w8, w9
	b.ne	LBB0_37
	b	LBB0_36
LBB0_80:
	mov	x0, #0
	ldr	x1, [sp, #96]                   ; 8-byte Folded Reload
	ldr	w2, [sp, #88]                   ; 4-byte Folded Reload
	ldr	x3, [sp, #72]                   ; 8-byte Folded Reload
	bl	_scan_bus
	bl	_exit
LBB0_81:
	mov	x0, #0
	ldr	x1, [sp, #96]                   ; 8-byte Folded Reload
	bl	_reset_bus
	bl	_exit
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGot	Lloh83, Lloh84
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpAdd	Lloh94, Lloh95
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_26-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_7-LBB0_1)>>2
	.byte	(LBB0_8-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_10-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_16-LBB0_1)>>2
	.byte	(LBB0_17-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_19-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_20-LBB0_1)>>2
	.byte	(LBB0_21-LBB0_1)>>2
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_I2C_DEV,8,3                    ; @I2C_DEV
	.comm	_I2C_MODE_NOTSET,8,3            ; @I2C_MODE_NOTSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"a:f:d:o:w:c:m:n:sbvrh"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_EINVAL,8,3                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"no"

	.comm	_I2C_MODE_NONE,8,3              ; @I2C_MODE_NONE
l_.str.2:                               ; @.str.2
	.asciz	"ss"

	.comm	_I2C_MODE_STOP_START,8,3        ; @I2C_MODE_STOP_START
l_.str.3:                               ; @.str.3
	.asciz	"rs"

	.comm	_I2C_MODE_REPEATED_START,8,3    ; @I2C_MODE_REPEATED_START
l_.str.4:                               ; @.str.4
	.asciz	"tr"

	.comm	_I2C_MODE_TRANSFER,8,3          ; @I2C_MODE_TRANSFER
	.comm	_optind,8,3                     ; @optind
	.comm	_stderr,4,2                     ; @stderr
l_.str.5:                               ; @.str.5
	.asciz	"dev: %s, addr: 0x%x, r/w: %c, offset: 0x%02x, width: %u, count: %u\n"

l_.str.6:                               ; @.str.6
	.asciz	"data malloc"

l_.str.7:                               ; @.str.7
	.asciz	"Enter %u bytes of data: "

	.comm	_EOF,4,2                        ; @EOF
l_.str.8:                               ; @.str.8
	.asciz	"not enough data, exiting\n"

l_.str.9:                               ; @.str.9
	.asciz	"\nData %s (hex):\n"

l_.str.10:                              ; @.str.10
	.asciz	"read"

l_.str.11:                              ; @.str.11
	.asciz	"written"

l_.str.12:                              ; @.str.12
	.asciz	"%02hhx "

	.comm	_stdout,4,2                     ; @stdout
l_.str.13:                              ; @.str.13
	.asciz	"%c"

l_.str.14:                              ; @.str.14
	.asciz	"\n"

.subsections_via_symbols
