	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_read_nack                  ## -- Begin function i2c_read_nack
	.p2align	4, 0x90
_i2c_read_nack:                         ## @i2c_read_nack
	.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	%rdi, %rbx
	movq	_TWINT@GOTPCREL(%rip), %r15
	movq	_TWEN@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movb	(%r15), %cl
	btsl	%ecx, %eax
	movq	_TWCR@GOTPCREL(%rip), %r12
	movl	%eax, (%r12)
	xorl	%eax, %eax
	callq	_timer_read
	movq	%rax, %r14
	movl	(%r12), %eax
	movl	(%r15), %ecx
	movq	_TWDR@GOTPCREL(%rip), %rdx
	btl	%ecx, %eax
	jb	LBB0_8
## %bb.1:
	movq	_I2C_TIMEOUT_INFINITE@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	btl	%ecx, %eax
	jb	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%r13)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_timer_read
	subq	%r14, %rax
	cmpq	%rbx, %rax
	jge	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %eax
	movl	(%r15), %ecx
	jmp	LBB0_6
LBB0_7:
	movq	_TWDR@GOTPCREL(%rip), %rdx
	jmp	LBB0_8
LBB0_4:
	movq	_I2C_STATUS_TIMEOUT@GOTPCREL(%rip), %rdx
LBB0_8:
	movl	(%rdx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TWINT,4,2                      ## @TWINT
	.comm	_TWEN,4,2                       ## @TWEN
	.comm	_TWCR,4,2                       ## @TWCR
	.comm	_I2C_TIMEOUT_INFINITE,8,3       ## @I2C_TIMEOUT_INFINITE
	.comm	_I2C_STATUS_TIMEOUT,4,2         ## @I2C_STATUS_TIMEOUT
	.comm	_TWDR,4,2                       ## @TWDR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_read_nack                  ; -- Begin function i2c_read_nack
	.p2align	2
_i2c_read_nack:                         ; @i2c_read_nack
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _TWINT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TWINT@GOTPAGEOFF]
	ldr	w8, [x21]
	mov	w9, #1
	lsl	w8, w9, w8
Lloh2:
	adrp	x10, _TWEN@GOTPAGE
Lloh3:
	ldr	x10, [x10, _TWEN@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
Lloh5:
	adrp	x22, _TWCR@GOTPAGE
Lloh6:
	ldr	x22, [x22, _TWCR@GOTPAGEOFF]
	str	w8, [x22]
	bl	_timer_read
	ldr	w8, [x22]
	ldr	w9, [x21]
	lsr	w10, w8, w9
	tbz	w10, #0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x23, _TWDR@GOTPAGE
Lloh8:
	ldr	x23, [x23, _TWDR@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	mov	x20, x0
Lloh9:
	adrp	x25, _I2C_TIMEOUT_INFINITE@GOTPAGE
Lloh10:
	ldr	x25, [x25, _I2C_TIMEOUT_INFINITE@GOTPAGEOFF]
Lloh11:
	adrp	x24, _TWDR@GOTPAGE
Lloh12:
	ldr	x24, [x24, _TWDR@GOTPAGEOFF]
Lloh13:
	adrp	x23, _I2C_STATUS_TIMEOUT@GOTPAGE
Lloh14:
	ldr	x23, [x23, _I2C_STATUS_TIMEOUT@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsr	w10, w8, w9
	tbnz	w10, #0, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x25]
	cmp	x10, x19
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_timer_read
	sub	x8, x0, x20
	cmp	x8, x19
	b.ge	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x21]
	b	LBB0_3
LBB0_7:
	mov	x23, x24
LBB0_8:
	ldr	w0, [x23]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TWINT,4,2                      ; @TWINT
	.comm	_TWEN,4,2                       ; @TWEN
	.comm	_TWCR,4,2                       ; @TWCR
	.comm	_I2C_TIMEOUT_INFINITE,8,3       ; @I2C_TIMEOUT_INFINITE
	.comm	_I2C_STATUS_TIMEOUT,4,2         ; @I2C_STATUS_TIMEOUT
	.comm	_TWDR,4,2                       ; @TWDR
.subsections_via_symbols
