	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eeprom_93xx46_write_word
_eeprom_93xx46_write_word:              ## @eeprom_93xx46_write_word
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_OP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rdi), %ecx
	shll	%cl, %eax
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movl	%edx, %esi
	shrl	%esi
	andl	$63, %esi
	andl	$127, %edx
	xorl	%r14d, %r14d
	cmpl	$7, %ecx
	sete	%r14b
	cmovnel	%esi, %edx
	movl	$2, %ebx
	subl	%r14d, %ebx
	addl	$9, %r14d
	orl	%eax, %edx
	movl	%edx, -84(%rbp)
	movq	8(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	leaq	-104(%rbp), %r13
	movq	%r13, %rdi
	callq	_spi_message_init
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	leaq	-84(%rbp), %rax
	movq	%rax, -80(%rbp)
	movl	$2, -72(%rbp)
	movl	%r14d, -68(%rbp)
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_spi_message_add_tail
	leaq	-64(%rbp), %rdi
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -64(%rbp)
	movl	%ebx, -56(%rbp)
	movl	$8, -52(%rbp)
	movq	%r13, %rsi
	callq	_spi_message_add_tail
	movq	8(%r15), %rdi
	movq	%r13, %rsi
	callq	_spi_sync
	movl	%eax, %ebx
	movl	$6, %edi
	callq	_mdelay
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_OP_WRITE,4,2                   ## @OP_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write cmd 0x%x\n"

	.no_dead_strip	_eeprom_93xx46_write_word
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eeprom_93xx46_write_word
_eeprom_93xx46_write_word:              ; @eeprom_93xx46_write_word
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
Lloh3:
	adrp	x8, _OP_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OP_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x0]
	lsl	w8, w8, w9
	ubfx	w10, w2, #1, #6
	and	w11, w2, #0x7f
	cmp	w9, #7
	csel	w9, w11, w10, eq
	mov	w10, #1
	cinc	w21, w10, ne
	mov	w10, #9
	cinc	w22, w10, eq
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	x0, [x0, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	add	x0, sp, #16
	bl	_spi_message_init
	add	x23, sp, #24
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	add	x8, sp, #12
	str	x8, [sp, #24]
	mov	w8, #2
	stp	w8, w22, [sp, #32]
	add	x0, sp, #24
	add	x1, sp, #16
	bl	_spi_message_add_tail
	add	x0, x23, #16
	str	x20, [sp, #40]
	mov	w8, #8
	stp	w21, w8, [sp, #48]
	add	x1, sp, #16
	bl	_spi_message_add_tail
	ldr	x0, [x19, #8]
	add	x1, sp, #16
	bl	_spi_sync
	mov	x19, x0
	mov	w0, #6
	bl	_mdelay
	ldr	x8, [sp, #56]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OP_WRITE,4,2                   ; @OP_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write cmd 0x%x\n"

	.no_dead_strip	_eeprom_93xx46_write_word
.subsections_via_symbols
