	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spi_reg
_spi_reg:                               ## @spi_reg
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_EEPROM_DATA_OUT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_raise_gpio
	movq	%rbx, %rdi
	callq	_eeprom_clk
	movl	(%r12), %esi
	movq	%rbx, %rdi
	testb	$2, %r15b
	jne	LBB0_1
## %bb.2:
	callq	_drop_gpio
	jmp	LBB0_3
LBB0_1:
	callq	_raise_gpio
LBB0_3:
	movq	%rbx, %rdi
	callq	_eeprom_clk
	movl	(%r12), %esi
	movq	%rbx, %rdi
	testb	$1, %r15b
	jne	LBB0_4
## %bb.5:
	callq	_drop_gpio
	jmp	LBB0_6
LBB0_4:
	callq	_raise_gpio
LBB0_6:
	movq	%rbx, %rdi
	callq	_eeprom_clk
	movl	(%r12), %esi
	movq	%rbx, %rdi
	testb	$32, %r14b
	jne	LBB0_7
## %bb.8:
	callq	_drop_gpio
	jmp	LBB0_9
LBB0_7:
	callq	_raise_gpio
LBB0_9:
	movq	%rbx, %rdi
	callq	_eeprom_clk
	movl	(%r12), %esi
	movq	%rbx, %rdi
	testb	$16, %r14b
	jne	LBB0_10
## %bb.11:
	callq	_drop_gpio
	jmp	LBB0_12
LBB0_10:
	callq	_raise_gpio
LBB0_12:
	movq	%rbx, %rdi
	callq	_eeprom_clk
	movl	(%r12), %esi
	movq	%rbx, %rdi
	testb	$8, %r14b
	jne	LBB0_13
## %bb.14:
	callq	_drop_gpio
	jmp	LBB0_15
LBB0_13:
	callq	_raise_gpio
LBB0_15:
	movq	%rbx, %rdi
	callq	_eeprom_clk
	movl	(%r12), %esi
	movq	%rbx, %rdi
	testb	$4, %r14b
	jne	LBB0_16
## %bb.17:
	callq	_drop_gpio
	jmp	LBB0_18
LBB0_16:
	callq	_raise_gpio
LBB0_18:
	movq	%rbx, %rdi
	callq	_eeprom_clk
	movl	(%r12), %esi
	movq	%rbx, %rdi
	testb	$2, %r14b
	jne	LBB0_19
## %bb.20:
	callq	_drop_gpio
	jmp	LBB0_21
LBB0_19:
	callq	_raise_gpio
LBB0_21:
	movq	%rbx, %rdi
	callq	_eeprom_clk
	movl	(%r12), %esi
	movq	%rbx, %rdi
	testb	$1, %r14b
	jne	LBB0_22
## %bb.23:
	callq	_drop_gpio
	jmp	LBB0_24
LBB0_22:
	callq	_raise_gpio
LBB0_24:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eeprom_clk                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EEPROM_DATA_OUT,4,2            ## @EEPROM_DATA_OUT
	.no_dead_strip	_spi_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spi_reg
_spi_reg:                               ; @spi_reg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _EEPROM_DATA_OUT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EEPROM_DATA_OUT@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_raise_gpio
	mov	x0, x19
	bl	_eeprom_clk
	ldr	w1, [x22]
	mov	x0, x19
	tbnz	w21, #1, LBB0_2
; %bb.1:
	bl	_drop_gpio
	b	LBB0_3
LBB0_2:
	bl	_raise_gpio
LBB0_3:
	mov	x0, x19
	bl	_eeprom_clk
	ldr	w1, [x22]
	mov	x0, x19
	tbnz	w21, #0, LBB0_5
; %bb.4:
	bl	_drop_gpio
	b	LBB0_6
LBB0_5:
	bl	_raise_gpio
LBB0_6:
	mov	x0, x19
	bl	_eeprom_clk
	ldr	w1, [x22]
	mov	x0, x19
	tbnz	w20, #5, LBB0_8
; %bb.7:
	bl	_drop_gpio
	b	LBB0_9
LBB0_8:
	bl	_raise_gpio
LBB0_9:
	mov	x0, x19
	bl	_eeprom_clk
	ldr	w1, [x22]
	mov	x0, x19
	tbnz	w20, #4, LBB0_11
; %bb.10:
	bl	_drop_gpio
	b	LBB0_12
LBB0_11:
	bl	_raise_gpio
LBB0_12:
	mov	x0, x19
	bl	_eeprom_clk
	ldr	w1, [x22]
	mov	x0, x19
	tbnz	w20, #3, LBB0_14
; %bb.13:
	bl	_drop_gpio
	b	LBB0_15
LBB0_14:
	bl	_raise_gpio
LBB0_15:
	mov	x0, x19
	bl	_eeprom_clk
	ldr	w1, [x22]
	mov	x0, x19
	tbnz	w20, #2, LBB0_17
; %bb.16:
	bl	_drop_gpio
	b	LBB0_18
LBB0_17:
	bl	_raise_gpio
LBB0_18:
	mov	x0, x19
	bl	_eeprom_clk
	ldr	w1, [x22]
	mov	x0, x19
	tbnz	w20, #1, LBB0_20
; %bb.19:
	bl	_drop_gpio
	b	LBB0_21
LBB0_20:
	bl	_raise_gpio
LBB0_21:
	mov	x0, x19
	bl	_eeprom_clk
	ldr	w1, [x22]
	mov	x0, x19
	tbnz	w20, #0, LBB0_23
; %bb.22:
	bl	_drop_gpio
	b	LBB0_24
LBB0_23:
	bl	_raise_gpio
LBB0_24:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_eeprom_clk
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROM_DATA_OUT,4,2            ; @EEPROM_DATA_OUT
	.no_dead_strip	_spi_reg
.subsections_via_symbols
