	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AT91F_SpiEnable
_AT91F_SpiEnable:                       ## @AT91F_SpiEnable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edi, %edi
	je	LBB0_3
## %bb.1:
	cmpl	$3, %edi
	jne	LBB0_2
## %bb.4:
	movq	_AT91C_PIO_PB7@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_AT91C_BASE_PIOB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 16(%rcx)
	movq	%rax, 8(%rcx)
	movq	%rax, (%rcx)
	movq	_AT91C_BASE_SPI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$-983041, %ecx                  ## imm = 0xFFF0FFFF
	andl	(%rax), %ecx
	movl	%ecx, (%rax)
	movq	_AT91C_SPI_PCS3_DATAFLASH_CARD@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_3:
	movq	_AT91C_BASE_SPI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$-983041, %ecx                  ## imm = 0xFFF0FFFF
	andl	(%rax), %ecx
	movl	%ecx, (%rax)
	movq	_AT91C_SPI_PCS0_SERIAL_DATAFLASH@GOTPCREL(%rip), %rdx
LBB0_5:
	movl	(%rdx), %edx
	shll	$16, %edx
	movq	_AT91C_SPI_PCS@GOTPCREL(%rip), %rsi
	andl	(%rsi), %edx
	orl	%ecx, %edx
	movl	%edx, (%rax)
	jmp	LBB0_6
LBB0_2:
	movq	_AT91C_BASE_SPI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_6:
	movq	_AT91C_SPI_SPIEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AT91C_BASE_SPI,8,3             ## @AT91C_BASE_SPI
	.comm	_AT91C_SPI_PCS0_SERIAL_DATAFLASH,4,2 ## @AT91C_SPI_PCS0_SERIAL_DATAFLASH
	.comm	_AT91C_SPI_PCS,4,2              ## @AT91C_SPI_PCS
	.comm	_AT91C_PIO_PB7,8,3              ## @AT91C_PIO_PB7
	.comm	_AT91C_BASE_PIOB,8,3            ## @AT91C_BASE_PIOB
	.comm	_AT91C_SPI_PCS3_DATAFLASH_CARD,4,2 ## @AT91C_SPI_PCS3_DATAFLASH_CARD
	.comm	_AT91C_SPI_SPIEN,4,2            ## @AT91C_SPI_SPIEN
	.no_dead_strip	_AT91F_SpiEnable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AT91F_SpiEnable
_AT91F_SpiEnable:                       ; @AT91F_SpiEnable
	.cfi_startproc
; %bb.0:
	cbz	w0, LBB0_3
; %bb.1:
	cmp	w0, #3
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _AT91C_PIO_PB7@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AT91C_PIO_PB7@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _AT91C_BASE_PIOB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AT91C_BASE_PIOB@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	stp	x8, x8, [x9, #8]
	str	x8, [x9]
Lloh6:
	adrp	x8, _AT91C_BASE_SPI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AT91C_BASE_SPI@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w9, [x8]
	and	w9, w9, #0xfff0ffff
	str	w9, [x8]
Lloh9:
	adrp	x10, _AT91C_SPI_PCS3_DATAFLASH_CARD@GOTPAGE
Lloh10:
	ldr	x10, [x10, _AT91C_SPI_PCS3_DATAFLASH_CARD@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x8, _AT91C_BASE_SPI@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AT91C_BASE_SPI@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w9, [x8]
	and	w9, w9, #0xfff0ffff
	str	w9, [x8]
Lloh14:
	adrp	x10, _AT91C_SPI_PCS0_SERIAL_DATAFLASH@GOTPAGE
Lloh15:
	ldr	x10, [x10, _AT91C_SPI_PCS0_SERIAL_DATAFLASH@GOTPAGEOFF]
LBB0_4:
	ldr	w10, [x10]
Lloh16:
	adrp	x11, _AT91C_SPI_PCS@GOTPAGE
Lloh17:
	ldr	x11, [x11, _AT91C_SPI_PCS@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
	and	w10, w11, w10, lsl #16
	orr	w9, w10, w9
	str	w9, [x8]
	b	LBB0_6
LBB0_5:
Lloh19:
	adrp	x8, _AT91C_BASE_SPI@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AT91C_BASE_SPI@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
LBB0_6:
Lloh22:
	adrp	x9, _AT91C_SPI_SPIEN@GOTPAGE
Lloh23:
	ldr	x9, [x9, _AT91C_SPI_SPIEN@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	str	w9, [x8, #4]
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_AT91C_BASE_SPI,8,3             ; @AT91C_BASE_SPI
	.comm	_AT91C_SPI_PCS0_SERIAL_DATAFLASH,4,2 ; @AT91C_SPI_PCS0_SERIAL_DATAFLASH
	.comm	_AT91C_SPI_PCS,4,2              ; @AT91C_SPI_PCS
	.comm	_AT91C_PIO_PB7,8,3              ; @AT91C_PIO_PB7
	.comm	_AT91C_BASE_PIOB,8,3            ; @AT91C_BASE_PIOB
	.comm	_AT91C_SPI_PCS3_DATAFLASH_CARD,4,2 ; @AT91C_SPI_PCS3_DATAFLASH_CARD
	.comm	_AT91C_SPI_SPIEN,4,2            ; @AT91C_SPI_SPIEN
	.no_dead_strip	_AT91F_SpiEnable
.subsections_via_symbols
