	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eeprom_spi_write               ## -- Begin function eeprom_spi_write
	.p2align	4, 0x90
_eeprom_spi_write:                      ## @eeprom_spi_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_BIT_HOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%eax, %edi
	jae	LBB0_40
## %bb.1:
	movq	_BIT_CS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%eax, %edi
	jae	LBB0_3
## %bb.2:
	movq	_spi_eeprom@GOTPCREL(%rip), %rax
	movabsq	$4294967296, %rcx               ## imm = 0x100000000
	movq	%rcx, (%rax)
	movb	$0, 8(%rax)
	movl	$130, 12(%rax)
LBB0_40:
	movq	_BIT_CS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%eax, %edi
	movq	_spi_eeprom@GOTPCREL(%rip), %rax
	setb	24(%rax)
	movq	_BIT_CLK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %edi
	setb	16(%rax)
	popq	%rbp
	retq
LBB0_3:
	movq	_spi_eeprom@GOTPCREL(%rip), %rax
	movl	12(%rax), %ecx
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_40
## %bb.4:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_24:
	movq	_BIT_CLK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %edi
	jae	LBB0_40
## %bb.25:
	cmpb	$0, 16(%rax)
	jne	LBB0_40
## %bb.26:
	movq	_BIT_DATA@GOTPCREL(%rip), %rcx
	movzbl	17(%rax), %edx
	movzbl	(%rcx), %ecx
	btl	%ecx, %edi
	setb	%cl
	orb	%dl, %cl
	movb	%cl, 17(%rax)
	movl	(%rax), %esi
	incl	%esi
	movl	%esi, (%rax)
	cmpl	$8, %esi
	jne	LBB0_33
## %bb.27:
	movl	$0, (%rax)
	movl	20(%rax), %r8d
	movl	%r8d, %esi
	andl	$2, %esi
	testb	$1, 8(%rax)
	jne	LBB0_28
## %bb.29:
	testl	%esi, %esi
	je	LBB0_32
## %bb.30:
	andl	$12, %r8d
	cmpl	$12, %r8d
	je	LBB0_32
## %bb.31:
	movq	_sram@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movzbl	18(%rax), %esi
	movb	%cl, (%rdx,%rsi)
LBB0_32:
	movb	$0, 17(%rax)
	movzbl	18(%rax), %ecx
	movq	_PAGE_MASK@GOTPCREL(%rip), %rdx
	leal	1(%rcx), %esi
	xorl	%ecx, %esi
	andl	(%rdx), %esi
	xorl	%ecx, %esi
	movb	%sil, 18(%rax)
	jmp	LBB0_40
LBB0_34:
	movq	_BIT_CLK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %edi
	jae	LBB0_40
## %bb.35:
	cmpb	$0, 16(%rax)
	jne	LBB0_40
## %bb.36:
	movzbl	17(%rax), %r8d
	movl	(%rax), %edx
	movb	$7, %cl
	subb	%dl, %cl
	movzbl	%cl, %ecx
	xorl	%esi, %esi
	btl	%ecx, %r8d
	setb	%sil
	movl	%esi, 4(%rax)
	incl	%edx
	movl	%edx, (%rax)
	cmpl	$8, %edx
	jne	LBB0_40
## %bb.37:
	movl	$0, (%rax)
	cmpb	$3, 8(%rax)
	jne	LBB0_40
## %bb.38:
	movzbl	18(%rax), %ecx
	incl	%ecx
	movq	_SIZE_MASK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	movb	%cl, 18(%rax)
	movq	_sram@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movzbl	%cl, %ecx
	movb	(%rdx,%rcx), %cl
	jmp	LBB0_39
LBB0_5:
	movq	_BIT_CLK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %edi
	jae	LBB0_40
## %bb.6:
	cmpb	$0, 16(%rax)
	jne	LBB0_40
## %bb.7:
	movq	_BIT_DATA@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	btl	%ecx, %edi
	setb	%cl
	orb	8(%rax), %cl
	movb	%cl, 8(%rax)
	movl	(%rax), %edx
	incl	%edx
	movl	%edx, (%rax)
	cmpl	$8, %edx
	jne	LBB0_16
## %bb.8:
	movl	$0, (%rax)
	decb	%cl
	cmpb	$5, %cl
	ja	LBB0_15
## %bb.9:
	movzbl	%cl, %ecx
	leaq	LJTI0_1(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_10:
	movb	$0, 18(%rax)
	movl	$131, 12(%rax)
	jmp	LBB0_40
LBB0_17:
	movq	_BIT_CLK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %edi
	jae	LBB0_40
## %bb.18:
	cmpb	$0, 16(%rax)
	jne	LBB0_40
## %bb.19:
	movq	_BIT_DATA@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	btl	%ecx, %edi
	setb	%cl
	orb	18(%rax), %cl
	movl	(%rax), %edx
	incl	%edx
	movl	%edx, (%rax)
	cmpl	$16, %edx
	jne	LBB0_23
## %bb.20:
	movq	_SIZE_MASK@GOTPCREL(%rip), %rdx
	andb	(%rdx), %cl
	movl	$0, (%rax)
	movb	%cl, 18(%rax)
	testb	$1, 8(%rax)
	jne	LBB0_21
LBB0_22:
	movb	$0, 17(%rax)
	movl	$128, 12(%rax)
	jmp	LBB0_40
LBB0_33:
	addb	%cl, %cl
LBB0_39:
	movb	%cl, 17(%rax)
	jmp	LBB0_40
LBB0_16:
	addb	%cl, %cl
	movb	%cl, 8(%rax)
	jmp	LBB0_40
LBB0_23:
	addb	%cl, %cl
	movb	%cl, 18(%rax)
	jmp	LBB0_40
LBB0_28:
	andl	$12, %edx
	orl	%edx, %esi
	movl	%esi, 20(%rax)
	jmp	LBB0_15
LBB0_21:
	movq	_sram@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movzbl	%cl, %ecx
	movb	(%rdx,%rcx), %cl
	jmp	LBB0_13
LBB0_11:
	andb	$-3, 20(%rax)
	jmp	LBB0_15
LBB0_12:
	movb	20(%rax), %cl
LBB0_13:
	movb	%cl, 17(%rax)
	movl	$129, 12(%rax)
	jmp	LBB0_40
LBB0_14:
	orb	$2, 20(%rax)
LBB0_15:
	movq	_STANDBY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	jmp	LBB0_40
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_24
	.long	L0_0_set_34
	.long	L0_0_set_5
	.long	L0_0_set_17
.set L0_1_set_22, LBB0_22-LJTI0_1
.set L0_1_set_10, LBB0_10-LJTI0_1
.set L0_1_set_11, LBB0_11-LJTI0_1
.set L0_1_set_12, LBB0_12-LJTI0_1
.set L0_1_set_14, LBB0_14-LJTI0_1
LJTI0_1:
	.long	L0_1_set_22
	.long	L0_1_set_10
	.long	L0_1_set_10
	.long	L0_1_set_11
	.long	L0_1_set_12
	.long	L0_1_set_14
	.end_data_region
                                        ## -- End function
	.comm	_BIT_HOLD,4,2                   ## @BIT_HOLD
	.comm	_BIT_CS,4,2                     ## @BIT_CS
	.comm	_spi_eeprom,28,2                ## @spi_eeprom
	.comm	_BIT_CLK,4,2                    ## @BIT_CLK
	.comm	_BIT_DATA,1,0                   ## @BIT_DATA
	.comm	_STANDBY,8,3                    ## @STANDBY
	.comm	_SIZE_MASK,4,2                  ## @SIZE_MASK
	.comm	_sram,8,3                       ## @sram
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function eeprom_spi_write
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_eeprom_spi_write
	.p2align	2
_eeprom_spi_write:                      ; @eeprom_spi_write
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _BIT_HOLD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIT_HOLD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsr	w11, w0, w8
Lloh3:
	adrp	x10, _BIT_CS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BIT_CS@GOTPAGEOFF]
Lloh5:
	adrp	x8, _spi_eeprom@GOTPAGE
Lloh6:
	ldr	x8, [x8, _spi_eeprom@GOTPAGEOFF]
Lloh7:
	adrp	x9, _BIT_CLK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BIT_CLK@GOTPAGEOFF]
	tbz	w11, #0, LBB0_4
; %bb.1:
	ldr	w11, [x10]
	lsr	w11, w0, w11
	tbz	w11, #0, LBB0_5
; %bb.2:
Lloh9:
	adrp	x11, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x11, lCPI0_0@PAGEOFF]
	str	d0, [x8]
	strb	wzr, [x8, #8]
	mov	w11, #130
LBB0_3:
	str	w11, [x8, #12]
LBB0_4:
	ldr	w10, [x10]
	lsr	w10, w0, w10
	and	w10, w10, #0x1
	strb	w10, [x8, #24]
	ldr	w9, [x9]
	lsr	w9, w0, w9
	and	w9, w9, #0x1
	strb	w9, [x8, #16]
	ret
LBB0_5:
	ldr	w11, [x8, #12]
	sub	w11, w11, #128
	cmp	w11, #3
	b.hi	LBB0_4
; %bb.6:
Lloh11:
	adrp	x12, lJTI0_0@PAGE
Lloh12:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x13, LBB0_7
	ldrb	w14, [x12, x11]
	add	x13, x13, x14, lsl #2
	br	x13
LBB0_7:
	ldr	w11, [x9]
	lsr	w11, w0, w11
	tbz	w11, #0, LBB0_4
; %bb.8:
	ldrb	w11, [x8, #16]
	cbnz	w11, LBB0_4
; %bb.9:
Lloh13:
	adrp	x11, _BIT_DATA@GOTPAGE
Lloh14:
	ldr	x11, [x11, _BIT_DATA@GOTPAGEOFF]
	ldrb	w11, [x11]
	lsr	w11, w0, w11
	ldrb	w12, [x8, #17]
	and	w11, w11, #0x1
	orr	w11, w11, w12
	strb	w11, [x8, #17]
	ldr	w13, [x8]
	add	w13, w13, #1
	str	w13, [x8]
	cmp	w13, #8
	b.ne	LBB0_31
; %bb.10:
	str	wzr, [x8]
	ldrb	w15, [x8, #8]
	ldr	w13, [x8, #20]
	and	w14, w13, #0x2
	tbnz	w15, #0, LBB0_35
; %bb.11:
	cbz	w14, LBB0_14
; %bb.12:
	and	w12, w13, #0xc
	cmp	w12, #12
	b.eq	LBB0_14
; %bb.13:
Lloh15:
	adrp	x12, _sram@GOTPAGE
Lloh16:
	ldr	x12, [x12, _sram@GOTPAGEOFF]
Lloh17:
	ldr	x12, [x12]
	ldrb	w13, [x8, #18]
	strb	w11, [x12, x13]
LBB0_14:
	strb	wzr, [x8, #17]
	ldrb	w11, [x8, #18]
Lloh18:
	adrp	x12, _PAGE_MASK@GOTPAGE
Lloh19:
	ldr	x12, [x12, _PAGE_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w12, [x12]
	bic	w13, w11, w12
	add	w11, w11, #1
	and	w11, w11, w12
	orr	w11, w11, w13
	strb	w11, [x8, #18]
	b	LBB0_4
LBB0_15:
	ldr	w11, [x9]
	lsr	w11, w0, w11
	tbz	w11, #0, LBB0_4
; %bb.16:
	ldrb	w11, [x8, #16]
	cbnz	w11, LBB0_4
; %bb.17:
	ldrb	w11, [x8, #17]
	ldr	w12, [x8]
	mov	w13, #7
	sub	w13, w13, w12
	lsr	w11, w11, w13
	and	w11, w11, #0x1
	add	w12, w12, #1
	stp	w12, w11, [x8]
	cmp	w12, #8
	b.ne	LBB0_4
; %bb.18:
	str	wzr, [x8]
	ldrb	w11, [x8, #8]
	cmp	w11, #3
	b.ne	LBB0_4
; %bb.19:
	ldrb	w11, [x8, #18]
	add	w11, w11, #1
Lloh21:
	adrp	x12, _SIZE_MASK@GOTPAGE
Lloh22:
	ldr	x12, [x12, _SIZE_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w12, [x12]
	and	x11, x11, x12
Lloh24:
	adrp	x12, _sram@GOTPAGE
Lloh25:
	ldr	x12, [x12, _sram@GOTPAGEOFF]
	strb	w11, [x8, #18]
Lloh26:
	ldr	x12, [x12]
	and	x11, x11, #0xff
	ldrb	w11, [x12, x11]
	b	LBB0_32
LBB0_20:
	ldr	w11, [x9]
	lsr	w11, w0, w11
	tbz	w11, #0, LBB0_4
; %bb.21:
	ldrb	w11, [x8, #16]
	cbnz	w11, LBB0_4
; %bb.22:
Lloh27:
	adrp	x11, _BIT_DATA@GOTPAGE
Lloh28:
	ldr	x11, [x11, _BIT_DATA@GOTPAGEOFF]
	ldrb	w11, [x11]
	lsr	w11, w0, w11
	ldrb	w12, [x8, #8]
	and	w11, w11, #0x1
	orr	w11, w11, w12
	strb	w11, [x8, #8]
	ldr	w12, [x8]
	add	w12, w12, #1
	str	w12, [x8]
	cmp	w12, #8
	b.ne	LBB0_33
; %bb.23:
	str	wzr, [x8]
	sub	w11, w11, #1
	cmp	w11, #5
	b.hi	LBB0_42
; %bb.24:
Lloh29:
	adrp	x12, lJTI0_1@PAGE
Lloh30:
	add	x12, x12, lJTI0_1@PAGEOFF
	adr	x13, LBB0_25
	ldrb	w14, [x12, x11]
	add	x13, x13, x14, lsl #2
	br	x13
LBB0_25:
	strb	wzr, [x8, #18]
	mov	w11, #131
	b	LBB0_3
LBB0_26:
	ldr	w11, [x9]
	lsr	w11, w0, w11
	tbz	w11, #0, LBB0_4
; %bb.27:
	ldrb	w11, [x8, #16]
	cbnz	w11, LBB0_4
; %bb.28:
Lloh31:
	adrp	x11, _BIT_DATA@GOTPAGE
Lloh32:
	ldr	x11, [x11, _BIT_DATA@GOTPAGEOFF]
	ldrb	w11, [x11]
	lsr	w11, w0, w11
	ldrb	w12, [x8, #18]
	and	w11, w11, #0x1
	orr	w11, w11, w12
	ldr	w12, [x8]
	add	w12, w12, #1
	str	w12, [x8]
	cmp	w12, #16
	b.ne	LBB0_34
; %bb.29:
	str	wzr, [x8]
Lloh33:
	adrp	x12, _SIZE_MASK@GOTPAGE
Lloh34:
	ldr	x12, [x12, _SIZE_MASK@GOTPAGEOFF]
Lloh35:
	ldr	w12, [x12]
	and	w11, w11, w12
	strb	w11, [x8, #18]
	ldrb	w12, [x8, #8]
	tbnz	w12, #0, LBB0_36
LBB0_30:
	strb	wzr, [x8, #17]
	mov	w11, #128
	b	LBB0_3
LBB0_31:
	lsl	w11, w11, #1
LBB0_32:
	strb	w11, [x8, #17]
	b	LBB0_4
LBB0_33:
	lsl	w11, w11, #1
	strb	w11, [x8, #8]
	b	LBB0_4
LBB0_34:
	lsl	w11, w11, #1
	strb	w11, [x8, #18]
	b	LBB0_4
LBB0_35:
	and	w11, w12, #0xc
	orr	w11, w14, w11
	b	LBB0_41
LBB0_36:
Lloh36:
	adrp	x12, _sram@GOTPAGE
Lloh37:
	ldr	x12, [x12, _sram@GOTPAGEOFF]
Lloh38:
	ldr	x12, [x12]
	and	x11, x11, #0xff
	ldrb	w11, [x12, x11]
	b	LBB0_39
LBB0_37:
	ldr	w11, [x8, #20]
	and	w11, w11, #0xfffffffd
	b	LBB0_41
LBB0_38:
	ldr	w11, [x8, #20]
LBB0_39:
	strb	w11, [x8, #17]
	mov	w11, #129
	b	LBB0_3
LBB0_40:
	ldr	w11, [x8, #20]
	orr	w11, w11, #0x2
LBB0_41:
	str	w11, [x8, #20]
LBB0_42:
Lloh39:
	adrp	x11, _STANDBY@GOTPAGE
Lloh40:
	ldr	x11, [x11, _STANDBY@GOTPAGEOFF]
Lloh41:
	ldr	x11, [x11]
	str	w11, [x8, #12]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_20-LBB0_7)>>2
	.byte	(LBB0_26-LBB0_7)>>2
lJTI0_1:
	.byte	(LBB0_30-LBB0_25)>>2
	.byte	(LBB0_25-LBB0_25)>>2
	.byte	(LBB0_25-LBB0_25)>>2
	.byte	(LBB0_37-LBB0_25)>>2
	.byte	(LBB0_38-LBB0_25)>>2
	.byte	(LBB0_40-LBB0_25)>>2
                                        ; -- End function
	.comm	_BIT_HOLD,4,2                   ; @BIT_HOLD
	.comm	_BIT_CS,4,2                     ; @BIT_CS
	.comm	_spi_eeprom,28,2                ; @spi_eeprom
	.comm	_BIT_CLK,4,2                    ; @BIT_CLK
	.comm	_BIT_DATA,1,0                   ; @BIT_DATA
	.comm	_STANDBY,8,3                    ; @STANDBY
	.comm	_SIZE_MASK,4,2                  ; @SIZE_MASK
	.comm	_sram,8,3                       ; @sram
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
.subsections_via_symbols
