	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_inb
_i2c_inb:                               ## @i2c_inb
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_sdahi
	movq	%rbx, %rdi
	callq	_sclhi
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	callq	_getsda
	movq	%rax, %r15
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_setscl
	movl	(%rbx), %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_sclhi
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	xorl	%r13d, %r13d
	testq	%r15, %r15
	setne	%r15b
	movq	%rbx, %rdi
	callq	_getsda
	xorl	%r12d, %r12d
	testq	%rax, %rax
	setne	-46(%rbp)                       ## 1-byte Folded Spill
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_setscl
	movl	(%rbx), %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_sclhi
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:
	movb	%r15b, -45(%rbp)                ## 1-byte Spill
	movq	%rbx, %rdi
	callq	_getsda
	movq	%rax, %r15
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_setscl
	movl	(%rbx), %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_sclhi
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	testq	%r15, %r15
	setne	%r15b
	movq	%rbx, %rdi
	callq	_getsda
	testq	%rax, %rax
	setne	-44(%rbp)                       ## 1-byte Folded Spill
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_setscl
	movl	(%rbx), %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_sclhi
	testq	%rax, %rax
	js	LBB0_10
## %bb.11:
	movb	%r15b, -43(%rbp)                ## 1-byte Spill
	movq	%rbx, %rdi
	callq	_getsda
	movq	%rax, %r15
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_setscl
	movl	(%rbx), %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_sclhi
	testq	%rax, %rax
	js	LBB0_12
## %bb.13:
	testq	%r15, %r15
	setne	-42(%rbp)                       ## 1-byte Folded Spill
	movq	%rbx, %rdi
	callq	_getsda
	testq	%rax, %rax
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_setscl
	movl	(%rbx), %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_sclhi
	testq	%rax, %rax
	js	LBB0_14
## %bb.15:
	movq	%rbx, %rdi
	callq	_getsda
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_setscl
	movl	(%rbx), %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_sclhi
	testq	%rax, %rax
	js	LBB0_2
## %bb.16:
	movb	-46(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r12b
	movb	-45(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r13b
	leal	(%r12,%r13,2), %eax
	xorl	%ecx, %ecx
	movb	-43(%rbp), %dl                  ## 1-byte Reload
	movb	%dl, %cl
	addl	%ecx, %ecx
	leal	(%rcx,%rax,4), %eax
	xorl	%ecx, %ecx
	movb	-44(%rbp), %dl                  ## 1-byte Reload
	movb	%dl, %cl
	orl	%eax, %ecx
	xorl	%eax, %eax
	movb	-42(%rbp), %dl                  ## 1-byte Reload
	movb	%dl, %al
	addl	%eax, %eax
	leal	(%rax,%rcx,4), %eax
	xorl	%r12d, %r12d
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	movb	%cl, %r12b
	orl	%eax, %r12d
	xorl	%r15d, %r15d
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	setne	%r15b
	movq	%rbx, %rdi
	callq	_getsda
	movq	%rax, %r14
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_setscl
	movl	(%rbx), %eax
	addl	%r15d, %r15d
	xorl	%ebx, %ebx
	testq	%r14, %r14
	setne	%bl
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	callq	_udelay
	leal	(%r15,%r12,4), %eax
	orl	%ebx, %eax
	jmp	LBB0_17
LBB0_1:
	movl	$7, %r15d
	jmp	LBB0_2
LBB0_4:
	movl	$6, %r15d
	jmp	LBB0_2
LBB0_6:
	movl	$5, %r15d
	jmp	LBB0_2
LBB0_8:
	movl	$4, %r15d
	jmp	LBB0_2
LBB0_10:
	movl	$3, %r15d
	jmp	LBB0_2
LBB0_12:
	movl	$2, %r15d
	jmp	LBB0_2
LBB0_14:
	movl	$1, %r15d
LBB0_2:
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	movq	%r14, %rsi
	movl	%r15d, %ecx
	callq	_bit_dbg
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	addq	$24, %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	"i2c_inb: timeout at bit #%d\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_i2c_inb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_inb
_i2c_inb:                               ; @i2c_inb
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x20, [x0, #8]
	mov	x0, x20
	bl	_sdahi
	mov	x0, x20
	bl	_sclhi
	tbnz	x0, #63, LBB0_9
; %bb.1:
	mov	x0, x20
	bl	_getsda
	mov	x21, x0
	mov	x0, x20
	mov	w1, #0
	bl	_setscl
	ldr	w0, [x20]
	bl	_udelay
	mov	x0, x20
	bl	_sclhi
	tbnz	x0, #63, LBB0_10
; %bb.2:
	cmp	x21, #0
	cset	w22, ne
	mov	x0, x20
	bl	_getsda
	cmp	x0, #0
	cset	w23, ne
	mov	x0, x20
	mov	w1, #0
	bl	_setscl
	ldr	w0, [x20]
	bl	_udelay
	mov	x0, x20
	bl	_sclhi
	tbnz	x0, #63, LBB0_11
; %bb.3:
	mov	x0, x20
	bl	_getsda
	mov	x21, x0
	mov	x0, x20
	mov	w1, #0
	bl	_setscl
	ldr	w0, [x20]
	bl	_udelay
	mov	x0, x20
	bl	_sclhi
	tbnz	x0, #63, LBB0_12
; %bb.4:
	cmp	x21, #0
	cset	w24, ne
	mov	x0, x20
	bl	_getsda
	cmp	x0, #0
	cset	w25, ne
	mov	x0, x20
	mov	w1, #0
	bl	_setscl
	ldr	w0, [x20]
	bl	_udelay
	mov	x0, x20
	bl	_sclhi
	tbnz	x0, #63, LBB0_13
; %bb.5:
	mov	x0, x20
	bl	_getsda
	mov	x21, x0
	mov	x0, x20
	mov	w1, #0
	bl	_setscl
	ldr	w0, [x20]
	bl	_udelay
	mov	x0, x20
	bl	_sclhi
	tbnz	x0, #63, LBB0_14
; %bb.6:
	cmp	x21, #0
	cset	w26, ne
	mov	x0, x20
	bl	_getsda
	cmp	x0, #0
	cset	w27, ne
	mov	x0, x20
	mov	w1, #0
	bl	_setscl
	ldr	w0, [x20]
	bl	_udelay
	mov	x0, x20
	bl	_sclhi
	tbnz	x0, #63, LBB0_15
; %bb.7:
	mov	x0, x20
	bl	_getsda
	mov	x21, x0
	mov	x0, x20
	mov	w1, #0
	bl	_setscl
	ldr	w0, [x20]
	bl	_udelay
	mov	x0, x20
	bl	_sclhi
	tbnz	x0, #63, LBB0_16
; %bb.8:
	bfi	w23, w22, #1, #1
	lsl	w8, w24, #1
	bfi	w8, w23, #2, #2
	orr	w8, w8, w25
	lsl	w9, w26, #1
	bfi	w9, w8, #2, #4
	orr	w22, w9, w27
	cmp	x21, #0
	cset	w21, ne
	mov	x0, x20
	bl	_getsda
	mov	x19, x0
	mov	x0, x20
	mov	w1, #0
	bl	_setscl
	ldr	w8, [x20]
	lsl	w20, w21, #1
	cmp	x19, #0
	cset	w19, ne
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
	bl	_udelay
	bfi	w20, w22, #2, #6
	orr	w0, w20, w19
	b	LBB0_18
LBB0_9:
	mov	w3, #7
	b	LBB0_17
LBB0_10:
	mov	w3, #6
	b	LBB0_17
LBB0_11:
	mov	w3, #5
	b	LBB0_17
LBB0_12:
	mov	w3, #4
	b	LBB0_17
LBB0_13:
	mov	w3, #3
	b	LBB0_17
LBB0_14:
	mov	w3, #2
	b	LBB0_17
LBB0_15:
	mov	w3, #1
	b	LBB0_17
LBB0_16:
	mov	w3, #0
LBB0_17:
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	mov	x1, x19
	bl	_bit_dbg
Lloh2:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c_inb: timeout at bit #%d\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_i2c_inb
.subsections_via_symbols
