	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function probe_i2c
_probe_i2c:                             ## @probe_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_dev@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_MIN_I2C_ADDR@GOTPCREL(%rip), %rax
	movb	(%rax), %bl
	movq	_MAX_I2C_ADDR@GOTPCREL(%rip), %rax
	cmpb	(%rax), %bl
	jae	LBB0_10
## %bb.1:
	movq	_fd@GOTPCREL(%rip), %r14
	leaq	-48(%rbp), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
	callq	_putchar
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	addb	$2, %bl
	movq	_MAX_I2C_ADDR@GOTPCREL(%rip), %rax
	cmpb	(%rax), %bl
	jae	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movb	%bl, -48(%rbp)
	movl	(%r14), %edi
	movq	_SMB_RECVB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_ioctl
	movl	%eax, %r12d
	movl	(%r14), %edi
	movq	_SMB_QUICK_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_ioctl
	movl	%eax, %r13d
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, %r12d
	je	LBB0_9
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%bl, %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	cmpl	$-1, %r12d
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$114, %edi
	callq	_putchar
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, %r13d
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$119, %edi
	callq	_putchar
	jmp	LBB0_8
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Probing for devices on %s:\n"

	.comm	_dev,8,3                        ## @dev
	.comm	_MIN_I2C_ADDR,1,0               ## @MIN_I2C_ADDR
	.comm	_MAX_I2C_ADDR,1,0               ## @MAX_I2C_ADDR
	.comm	_fd,4,2                         ## @fd
	.comm	_SMB_RECVB,4,2                  ## @SMB_RECVB
	.comm	_SMB_QUICK_WRITE,4,2            ## @SMB_QUICK_WRITE
L_.str.1:                               ## @.str.1
	.asciz	"Device @0x%02x: "

	.comm	_IS_READABLE,4,2                ## @IS_READABLE
	.comm	_IS_WRITEABLE,4,2               ## @IS_WRITEABLE
	.no_dead_strip	_probe_i2c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function probe_i2c
_probe_i2c:                             ; @probe_i2c
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
Lloh0:
	adrp	x8, _dev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dev@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
Lloh5:
	adrp	x8, _MIN_I2C_ADDR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MIN_I2C_ADDR@GOTPAGEOFF]
	ldrb	w22, [x8]
Lloh7:
	adrp	x23, _MAX_I2C_ADDR@GOTPAGE
Lloh8:
	ldr	x23, [x23, _MAX_I2C_ADDR@GOTPAGEOFF]
	ldrb	w8, [x23]
	cmp	w22, w8
	b.hs	LBB0_9
; %bb.1:
Lloh9:
	adrp	x24, _fd@GOTPAGE
Lloh10:
	ldr	x24, [x24, _fd@GOTPAGEOFF]
Lloh11:
	adrp	x25, _SMB_RECVB@GOTPAGE
Lloh12:
	ldr	x25, [x25, _SMB_RECVB@GOTPAGEOFF]
Lloh13:
	adrp	x19, l_.str.1@PAGE
Lloh14:
	add	x19, x19, l_.str.1@PAGEOFF
Lloh15:
	adrp	x26, _SMB_QUICK_WRITE@GOTPAGE
Lloh16:
	ldr	x26, [x26, _SMB_QUICK_WRITE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #10
	bl	_putchar
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #2
	ldrb	w8, [x23]
	cmp	w8, w22, uxtb
	b.ls	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	strb	w22, [sp, #8]
	ldr	w0, [x24]
	ldr	w1, [x25]
	add	x2, sp, #8
	bl	_ioctl
	mov	x20, x0
	ldr	w0, [x24]
	ldr	w1, [x26]
	add	x2, sp, #8
	bl	_ioctl
	cmn	w0, #1
	ccmn	w20, #1, #0, eq
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	and	x8, x22, #0xff
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	cmn	w20, #1
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #114
	bl	_putchar
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmn	w21, #1
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #119
	bl	_putchar
	b	LBB0_2
LBB0_9:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Probing for devices on %s:\n"

	.comm	_dev,8,3                        ; @dev
	.comm	_MIN_I2C_ADDR,1,0               ; @MIN_I2C_ADDR
	.comm	_MAX_I2C_ADDR,1,0               ; @MAX_I2C_ADDR
	.comm	_fd,4,2                         ; @fd
	.comm	_SMB_RECVB,4,2                  ; @SMB_RECVB
	.comm	_SMB_QUICK_WRITE,4,2            ; @SMB_QUICK_WRITE
l_.str.1:                               ; @.str.1
	.asciz	"Device @0x%02x: "

	.comm	_IS_READABLE,4,2                ; @IS_READABLE
	.comm	_IS_WRITEABLE,4,2               ; @IS_WRITEABLE
	.no_dead_strip	_probe_i2c
.subsections_via_symbols
