	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function applespi_setup_write_txfrs
_applespi_setup_write_txfrs:            ## @applespi_setup_write_txfrs
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	144(%rdi), %rbx
	addq	$112, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leaq	80(%r14), %r13
	leaq	48(%r14), %r12
	leaq	16(%r14), %r15
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_SPI_RW_CHG_DELAY_US@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 128(%r14)
	movl	$1, 112(%r14)
	movq	8(%r14), %rcx
	movq	%rcx, 96(%r14)
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	movl	%edx, 72(%r14)
	movq	_APPLESPI_PACKET_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 52(%r14)
	movq	%rax, 64(%r14)
	movl	%ecx, 24(%r14)
	movq	_APPLESPI_STATUS_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	%rbx, %rdi
	callq	_spi_message_init
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_spi_message_add_tail
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_spi_message_add_tail
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_spi_message_add_tail
	movq	%r15, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spi_message_add_tail           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_RW_CHG_DELAY_US,8,3        ## @SPI_RW_CHG_DELAY_US
	.comm	_APPLESPI_PACKET_SIZE,4,2       ## @APPLESPI_PACKET_SIZE
	.comm	_APPLESPI_STATUS_SIZE,4,2       ## @APPLESPI_STATUS_SIZE
	.no_dead_strip	_applespi_setup_write_txfrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function applespi_setup_write_txfrs
_applespi_setup_write_txfrs:            ; @applespi_setup_write_txfrs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x0
	add	x19, x0, #144
	add	x23, x0, #112
	add	x24, x0, #80
	add	x21, x0, #48
	add	x20, x0, #16
	mov	x0, x23
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	x0, x24
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	x0, x21
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	x0, x20
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	w8, #1
	str	w8, [x22, #112]
	ldr	x8, [x22, #8]
	str	x8, [x22, #96]
	ldp	w9, w8, [x22]
	str	w8, [x22, #72]
Lloh0:
	adrp	x8, _APPLESPI_PACKET_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APPLESPI_PACKET_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x22, #52]
Lloh3:
	adrp	x8, _SPI_RW_CHG_DELAY_US@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPI_RW_CHG_DELAY_US@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x22, #128]
	str	x8, [x22, #64]
Lloh6:
	adrp	x8, _APPLESPI_STATUS_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _APPLESPI_STATUS_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w8, w9, [x22, #20]
	mov	x0, x19
	bl	_spi_message_init
	mov	x0, x23
	mov	x1, x19
	bl	_spi_message_add_tail
	mov	x0, x24
	mov	x1, x19
	bl	_spi_message_add_tail
	mov	x0, x21
	mov	x1, x19
	bl	_spi_message_add_tail
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spi_message_add_tail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_RW_CHG_DELAY_US,8,3        ; @SPI_RW_CHG_DELAY_US
	.comm	_APPLESPI_PACKET_SIZE,4,2       ; @APPLESPI_PACKET_SIZE
	.comm	_APPLESPI_STATUS_SIZE,4,2       ; @APPLESPI_STATUS_SIZE
	.no_dead_strip	_applespi_setup_write_txfrs
.subsections_via_symbols
