	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at24_eeprom_read
_at24_eeprom_read:                      ## @at24_eeprom_read
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%edx, -108(%rbp)
	leaq	-96(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	leaq	-108(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_at24_translate_offset
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	_io_limit@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r13, %rax
	cmovbq	%rax, %r13
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_I2C_SMBUS_BLOCK_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r13
	cmovbq	%r13, %rax
	movq	%rax, %rcx
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	%rax, %r13
	jmp	LBB0_5
LBB0_2:
	movq	_AT24_FLAG_ADDR16@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-108(%rbp), %eax
	testl	%ecx, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movl	%eax, %ecx
	shrl	$8, %ecx
	movl	%ecx, -104(%rbp)
	movl	$1, %r14d
LBB0_4:
	movl	%r14d, %ecx
	incl	%r14d
	movl	%eax, -104(%rbp,%rcx,4)
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	8(%rax), %eax
	movl	%eax, -80(%rbp)
	leaq	-104(%rbp), %rcx
	movq	%rcx, -96(%rbp)
	movl	%r14d, -88(%rbp)
	movl	%eax, -56(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -72(%rbp)
	movl	%r13d, -64(%rbp)
	movl	%r13d, %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
LBB0_5:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_write_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	addq	%r14, %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%rbx, %r12
	cmpq	$0, (%rbx)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-108(%rbp), %esi
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rdx
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	callq	_i2c_smbus_read_i2c_block_data
	movl	%eax, %r15d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movl	4(%rbx), %edi
	leaq	-96(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_transfer
	movl	%eax, %r15d
	cmpl	$2, %eax
	cmovel	-128(%rbp), %r15d               ## 4-byte Folded Reload
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	-108(%rbp), %ecx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	movl	%r15d, %r8d
	callq	_dev_dbg
	movslq	%r15d, %rax
	cmpq	%rax, %r13
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edi
	callq	_msleep
	movq	%r14, %rdi
	movq	-144(%rbp), %rsi                ## 8-byte Reload
	callq	_time_before
	testq	%rax, %rax
	movq	%r12, %rbx
	jne	LBB0_6
## %bb.11:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subq	(%rax), %r13
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movq	%r13, %rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_io_limit,8,3                   ## @io_limit
	.comm	_I2C_SMBUS_BLOCK_MAX,8,3        ## @I2C_SMBUS_BLOCK_MAX
	.comm	_AT24_FLAG_ADDR16,4,2           ## @AT24_FLAG_ADDR16
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_write_timeout,4,2              ## @write_timeout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read %zu@%d --> %d (%ld)\n"

	.comm	_ETIMEDOUT,8,3                  ## @ETIMEDOUT
	.no_dead_strip	_at24_eeprom_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at24_eeprom_read
_at24_eeprom_read:                      ; @at24_eeprom_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x21, x3
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	str	w2, [sp, #12]
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	add	x1, sp, #12
	mov	x0, x20
	bl	_at24_translate_offset
	mov	x22, x0
Lloh3:
	adrp	x8, _io_limit@GOTPAGE
Lloh4:
	ldr	x8, [x8, _io_limit@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x21
	csel	x21, x8, x21, lo
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _I2C_SMBUS_BLOCK_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I2C_SMBUS_BLOCK_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x21, x8
	csel	x21, x21, x8, lo
	b	LBB0_6
LBB0_2:
	ldr	w9, [x20, #8]
Lloh9:
	adrp	x8, _AT24_FLAG_ADDR16@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AT24_FLAG_ADDR16@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x8]
	ldr	w8, [sp, #12]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
	lsr	w9, w8, #8
	str	w9, [sp, #16]
	mov	w9, #1
	b	LBB0_5
LBB0_4:
	mov	w9, #0
LBB0_5:
	add	x10, sp, #16
	str	w8, [x10, w9, uxtw #2]
	add	w8, w9, #1
	ldr	w9, [x22, #8]
	str	x10, [sp, #24]
	str	w9, [sp, #40]
	str	w8, [sp, #32]
	str	w9, [sp, #64]
Lloh12:
	adrp	x8, _I2C_M_RD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I2C_M_RD@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	x19, [sp, #48]
	stp	w21, w8, [sp, #56]
LBB0_6:
Lloh15:
	adrp	x27, _jiffies@GOTPAGE
Lloh16:
	ldr	x27, [x27, _jiffies@GOTPAGEOFF]
	ldr	x23, [x27]
Lloh17:
	adrp	x8, _write_timeout@GOTPAGE
Lloh18:
	ldr	x8, [x8, _write_timeout@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x23, x0, x23
Lloh20:
	adrp	x24, l_.str@PAGE
Lloh21:
	add	x24, x24, l_.str@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x27]
	ldr	x8, [x20]
	cbz	x8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [sp, #12]
	mov	x0, x22
	mov	x2, x21
	mov	x3, x19
	bl	_i2c_smbus_read_i2c_block_data
	mov	x26, x0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x22, #4]
	add	x1, sp, #24
	mov	w2, #2
	bl	_i2c_transfer
	cmp	w0, #2
	csel	w26, w21, w0, eq
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w3, [sp, #12]
	ldr	x5, [x27]
	mov	x0, x22
	mov	x1, x24
	mov	x2, x21
	mov	x4, x26
	bl	_dev_dbg
	cmp	x21, w26, sxtw
	b.eq	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #1
	bl	_msleep
	mov	x0, x25
	mov	x1, x23
	bl	_time_before
	cbnz	x0, LBB0_7
; %bb.12:
Lloh22:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	neg	x21, x8
LBB0_13:
	ldr	x8, [sp, #72]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x21
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_io_limit,8,3                   ; @io_limit
	.comm	_I2C_SMBUS_BLOCK_MAX,8,3        ; @I2C_SMBUS_BLOCK_MAX
	.comm	_AT24_FLAG_ADDR16,4,2           ; @AT24_FLAG_ADDR16
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_write_timeout,4,2              ; @write_timeout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read %zu@%d --> %d (%ld)\n"

	.comm	_ETIMEDOUT,8,3                  ; @ETIMEDOUT
	.no_dead_strip	_at24_eeprom_read
.subsections_via_symbols
