	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spu_write
_spu_write:                             ## @spu_write
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	movq	%rdi, %r12
	movq	_IF_SPI_WRITE_OPERATION_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%esi, %edi
	callq	_cpu_to_le16
	movl	%eax, -44(%rbp)
	leaq	-72(%rbp), %r15
	movq	%r15, %rdi
	callq	_spi_message_init
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	-88(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	%r14d, %edi
	andl	$1, %edi
	callq	_BUG_ON
	movq	%r12, %rdi
	callq	_spu_transaction_init
	leaq	-44(%rbp), %rax
	movq	%rax, -56(%rbp)
	movl	$4, -64(%rbp)
	movq	%rbx, -80(%rbp)
	movl	%r14d, -88(%rbp)
	leaq	-64(%rbp), %rdi
	movq	%r15, %rsi
	callq	_spi_message_add_tail
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_spi_message_add_tail
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_spi_sync
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_spu_transaction_finish
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IF_SPI_WRITE_OPERATION_MASK,4,2 ## @IF_SPI_WRITE_OPERATION_MASK
	.no_dead_strip	_spu_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spu_write
_spu_write:                             ; @spu_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x3
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _IF_SPI_WRITE_OPERATION_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IF_SPI_WRITE_OPERATION_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w0, w8, w1
	bl	_cpu_to_le16
	stur	w0, [x29, #-36]
	add	x0, sp, #40
	bl	_spi_message_init
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	and	w0, w20, #0x1
	bl	_BUG_ON
	mov	x0, x19
	bl	_spu_transaction_init
	sub	x8, x29, #36
	str	x8, [sp, #32]
	mov	w8, #4
	str	w8, [sp, #24]
	str	x21, [sp, #16]
	str	w20, [sp, #8]
	add	x0, sp, #24
	add	x1, sp, #40
	bl	_spi_message_add_tail
	add	x0, sp, #8
	add	x1, sp, #40
	bl	_spi_message_add_tail
	ldr	w0, [x19]
	add	x1, sp, #40
	bl	_spi_sync
	mov	x20, x0
	mov	x0, x19
	bl	_spu_transaction_finish
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IF_SPI_WRITE_OPERATION_MASK,4,2 ; @IF_SPI_WRITE_OPERATION_MASK
	.no_dead_strip	_spu_write
.subsections_via_symbols
