	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcaspi_write_burst
_qcaspi_write_burst:                    ## @qcaspi_write_burst
	.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
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	leaq	-96(%rbp), %r15
	movq	%r15, %rdi
	callq	_spi_message_init
	movq	_QCA7K_SPI_WRITE@GOTPCREL(%rip), %rax
	movq	_QCA7K_SPI_EXTERNAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_be16
	movl	%eax, -84(%rbp)
	leaq	-84(%rbp), %rax
	movq	%rax, -72(%rbp)
	movq	_QCASPI_CMD_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	leaq	-64(%rbp), %r13
	movq	%r12, -56(%rbp)
	movq	%rbx, -64(%rbp)
	leaq	-80(%rbp), %rdi
	movq	%r15, %rsi
	callq	_spi_message_add_tail
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_spi_message_add_tail
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_spi_sync
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_QCASPI_CMD_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rbx, %rax
	cmpq	%rax, -96(%rbp)
	je	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	callq	_qcaspi_spi_error
	xorl	%ebx, %ebx
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_QCA7K_SPI_WRITE,4,2            ## @QCA7K_SPI_WRITE
	.comm	_QCA7K_SPI_EXTERNAL,4,2         ## @QCA7K_SPI_EXTERNAL
	.comm	_QCASPI_CMD_LEN,8,3             ## @QCASPI_CMD_LEN
	.no_dead_strip	_qcaspi_write_burst
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcaspi_write_burst
_qcaspi_write_burst:                    ; @qcaspi_write_burst
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	add	x22, sp, #24
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	add	x0, sp, #8
	bl	_spi_message_init
Lloh3:
	adrp	x8, _QCA7K_SPI_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QCA7K_SPI_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _QCA7K_SPI_EXTERNAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _QCA7K_SPI_EXTERNAL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_be16
	str	w0, [sp, #20]
	add	x8, sp, #20
Lloh9:
	adrp	x23, _QCASPI_CMD_LEN@GOTPAGE
Lloh10:
	ldr	x23, [x23, _QCASPI_CMD_LEN@GOTPAGEOFF]
	ldr	x9, [x23]
	stp	x9, x8, [sp, #24]
	add	x22, x22, #16
	stp	x19, x21, [sp, #40]
	add	x0, sp, #24
	add	x1, sp, #8
	bl	_spi_message_add_tail
	add	x1, sp, #8
	mov	x0, x22
	bl	_spi_message_add_tail
	ldr	w0, [x20]
	add	x1, sp, #8
	bl	_spi_sync
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	x9, [x23]
	add	x9, x9, x19
	cmp	x8, x9
	b.eq	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_qcaspi_spi_error
	mov	x19, #0
LBB0_3:
	ldr	x8, [sp, #56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_QCA7K_SPI_WRITE,4,2            ; @QCA7K_SPI_WRITE
	.comm	_QCA7K_SPI_EXTERNAL,4,2         ; @QCA7K_SPI_EXTERNAL
	.comm	_QCASPI_CMD_LEN,8,3             ; @QCASPI_CMD_LEN
	.no_dead_strip	_qcaspi_write_burst
.subsections_via_symbols
