	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eeprom_93xx46_read
_eeprom_93xx46_read:                    ## @eeprom_93xx46_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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r13
	movl	%esi, %r14d
	movq	%rdi, %rcx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%edi, %edi
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	cmpl	%esi, (%rcx)
	setbe	%dil
	callq	_unlikely
	xorl	%ecx, %ecx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.1:
	movl	%r14d, %eax
	addq	%r12, %rax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	subl	%r14d, %edx
	cmpq	%rcx, %rax
	cmovbeq	%r12, %rdx
	movq	%rdx, %rbx
	xorl	%edi, %edi
	testq	%rdx, %rdx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	%ebx, %ecx
	jmp	LBB0_14
LBB0_3:
	movq	-120(%rbp), %r12                ## 8-byte Reload
	leaq	8(%r12), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	16(%r12), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	*%rax
LBB0_5:
	movl	$0, -132(%rbp)                  ## 4-byte Folded Spill
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.6:
	movq	%r15, -144(%rbp)                ## 8-byte Spill
	movq	%r13, -152(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movq	_OP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-120(%rbp), %r12                ## 8-byte Reload
	movl	4(%r12), %ecx
	shll	%cl, %eax
	movl	%r14d, %edx
	shrl	%edx
	andl	$63, %edx
	movl	%r14d, %esi
	andl	$127, %esi
	movq	%rbx, %r15
	xorl	%ebx, %ebx
	cmpl	$7, %ecx
	sete	%bl
	cmovnel	%edx, %esi
	movl	$2, %r13d
	subq	%rbx, %r13
	addl	$9, %ebx
	orl	%eax, %esi
	movl	%esi, -136(%rbp)
	movq	%r12, %rdi
	callq	_has_quirk_single_word_read
	testq	%rax, %rax
	cmoveq	%r15, %r13
	movq	24(%r12), %rdi
	movl	-136(%rbp), %edx
	movl	4(%rdi), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	leaq	-128(%rbp), %rdi
	callq	_spi_message_init
	leaq	-136(%rbp), %rax
	movq	%rax, -112(%rbp)
	movl	$2, -104(%rbp)
	movl	%ebx, -100(%rbp)
	leaq	-112(%rbp), %rdi
	leaq	-128(%rbp), %rsi
	callq	_spi_message_add_tail
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, -64(%rbp)
	movl	%r15d, -72(%rbp)
	movl	$8, -68(%rbp)
	leaq	-80(%rbp), %rdi
	leaq	-128(%rbp), %rsi
	callq	_spi_message_add_tail
	movq	24(%r12), %rdi
	leaq	-128(%rbp), %rsi
	callq	_spi_sync
	movl	%eax, %r12d
	movl	$250, %edi
	callq	_ndelay
	testl	%r12d, %r12d
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	%r13, %rbx
	movq	%rbx, -152(%rbp)                ## 8-byte Spill
	addl	%r13d, %r14d
	subq	%r13, %r15
	movq	%r15, %rbx
	jne	LBB0_7
	jmp	LBB0_10
LBB0_8:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	24(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	callq	_dev_err
	movl	%r12d, -132(%rbp)               ## 4-byte Spill
LBB0_10:
	movq	-144(%rbp), %r15                ## 8-byte Reload
LBB0_11:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	16(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	*%rax
LBB0_13:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	-132(%rbp), %ecx                ## 4-byte Reload
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%ecx, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_OP_READ,4,2                    ## @OP_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read cmd 0x%x, %d Hz\n"

L_.str.1:                               ## @.str.1
	.asciz	"read %zu bytes at %d: err. %d\n"

	.no_dead_strip	_eeprom_93xx46_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eeprom_93xx46_read
_eeprom_93xx46_read:                    ; @eeprom_93xx46_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	w8, [x0]
	cmp	w8, w1
	cset	w0, ls
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_14
LBB0_2:
	add	x8, x20, w21, uxtw
	ldr	w9, [x19]
	sub	w10, w9, w21
	cmp	x8, x9
	csel	x20, x10, x20, hi
	cmp	x20, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_14
; %bb.3:
	add	x22, x19, #8
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	blr	x8
LBB0_5:
	cbz	x20, LBB0_11
; %bb.6:
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	add	x8, sp, #32
	add	x24, x8, #32
	mov	w28, #2
	mov	w22, #8
Lloh3:
	adrp	x25, l_.str@PAGE
Lloh4:
	add	x25, x25, l_.str@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #64]
	stp	q0, q0, [sp, #32]
Lloh5:
	adrp	x8, _OP_READ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OP_READ@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	lsl	w8, w8, w9
	ubfx	w10, w21, #1, #6
	and	w11, w21, #0x7f
	cmp	w9, #7
	csel	w9, w11, w10, eq
	mov	w10, #1
	cinc	x26, x10, ne
	mov	w10, #9
	cinc	w27, w10, eq
	orr	w8, w8, w9
	str	w8, [sp, #20]
	mov	x0, x19
	bl	_has_quirk_single_word_read
	cmp	x0, #0
	csel	x26, x20, x26, eq
	ldr	x0, [x19, #24]
	ldr	w2, [sp, #20]
	ldr	w3, [x0, #4]
	mov	x1, x25
	bl	_dev_dbg
	add	x0, sp, #24
	bl	_spi_message_init
	add	x8, sp, #20
	str	x8, [sp, #32]
	stp	w28, w27, [sp, #40]
	add	x0, sp, #32
	add	x1, sp, #24
	bl	_spi_message_add_tail
	str	x23, [sp, #80]
	stp	w20, w22, [sp, #72]
	add	x1, sp, #24
	mov	x0, x24
	bl	_spi_message_add_tail
	ldr	x0, [x19, #24]
	add	x1, sp, #24
	bl	_spi_sync
	mov	x27, x0
	mov	w0, #250
	bl	_ndelay
	cbnz	w27, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, x26
	add	w21, w21, w26
	subs	x20, x20, x26
	b.ne	LBB0_7
	b	LBB0_10
LBB0_9:
	ldr	x0, [x19, #24]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x26
	mov	x3, x21
	mov	x4, x27
	bl	_dev_err
	mov	x20, x27
LBB0_10:
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
LBB0_11:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.12:
	mov	x0, x19
	blr	x8
LBB0_13:
	mov	x0, x22
	bl	_mutex_unlock
LBB0_14:
	ldur	x8, [x29, #-88]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x20
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_OP_READ,4,2                    ; @OP_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read cmd 0x%x, %d Hz\n"

l_.str.1:                               ; @.str.1
	.asciz	"read %zu bytes at %d: err. %d\n"

	.no_dead_strip	_eeprom_93xx46_read
.subsections_via_symbols
