	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eeprom_93xx46_eral
_eeprom_93xx46_eral:                    ## @eeprom_93xx46_eral
	.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	_OP_START@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rdi), %ecx
	shll	%cl, %eax
	xorl	%r15d, %r15d
	cmpl	$7, %ecx
	sete	%r15b
	movq	_ADDR_ERAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%r15d, %ecx
	shll	%cl, %ebx
	movq	16(%rdi), %r13
	orl	%eax, %ebx
	addl	$9, %r15d
	movl	%ebx, -44(%rbp)
	callq	_has_quirk_instruction_length
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	shll	$2, %ebx
	movl	%ebx, -44(%rbp)
	addl	$2, %r15d
LBB0_2:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_dev_dbg
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	callq	_spi_message_init
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	-44(%rbp), %rax
	movq	%rax, -64(%rbp)
	movl	$2, -56(%rbp)
	movl	%r15d, -52(%rbp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_spi_message_add_tail
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	16(%r14), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	*%rax
LBB0_4:
	movq	8(%r14), %rdi
	leaq	-48(%rbp), %rsi
	callq	_spi_sync
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_6:
	movl	$6, %edi
	callq	_mdelay
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	*%rax
LBB0_8:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OP_START,4,2                   ## @OP_START
	.comm	_ADDR_ERAL,4,2                  ## @ADDR_ERAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"eral cmd 0x%04x, %d bits\n"

L_.str.1:                               ## @.str.1
	.asciz	"erase error %d\n"

	.no_dead_strip	_eeprom_93xx46_eral
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eeprom_93xx46_eral
_eeprom_93xx46_eral:                    ; @eeprom_93xx46_eral
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	ldr	x22, [x0, #16]
Lloh0:
	adrp	x8, _OP_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OP_START@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0]
	cmp	x9, #7
	cset	w10, eq
	lsl	w8, w8, w9
Lloh3:
	adrp	x11, _ADDR_ERAL@GOTPAGE
Lloh4:
	ldr	x11, [x11, _ADDR_ERAL@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	lsl	w10, w11, w10
	cmp	w9, #7
	mov	w9, #9
	cinc	w20, w9, eq
	orr	w21, w10, w8
	str	w21, [sp, #4]
	bl	_has_quirk_instruction_length
	cbz	x0, LBB0_2
; %bb.1:
	lsl	w21, w21, #2
	str	w21, [sp, #4]
	add	w20, w20, #2
LBB0_2:
	ldr	x0, [x19, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_dev_dbg
	add	x0, sp, #24
	bl	_spi_message_init
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	add	x8, sp, #4
	str	x8, [sp, #8]
	mov	w8, #2
	stp	w8, w20, [sp, #16]
	add	x0, sp, #8
	add	x1, sp, #24
	bl	_spi_message_add_tail
	add	x20, x19, #4
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	blr	x8
LBB0_4:
	ldr	x0, [x19, #8]
	add	x1, sp, #24
	bl	_spi_sync
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.5:
	ldr	x0, [x19, #8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_dev_err
LBB0_6:
	mov	w0, #6
	bl	_mdelay
	ldr	x8, [x22]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x19
	blr	x8
LBB0_8:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_OP_START,4,2                   ; @OP_START
	.comm	_ADDR_ERAL,4,2                  ; @ADDR_ERAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"eral cmd 0x%04x, %d bits\n"

l_.str.1:                               ; @.str.1
	.asciz	"erase error %d\n"

	.no_dead_strip	_eeprom_93xx46_eral
.subsections_via_symbols
