	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at86rf230_write_frame
_at86rf230_write_frame:                 ## @at86rf230_write_frame
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	movq	16(%r15), %r14
	movq	8(%r14), %rbx
	movl	$1, (%r14)
	movq	_CMD_FB@GOTPCREL(%rip), %rax
	movq	_CMD_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rdi)
	movl	(%rbx), %eax
	addl	$2, %eax
	movl	%eax, 4(%rdi)
	addq	$8, %rdi
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	callq	_memcpy
	movl	(%rbx), %eax
	addl	$2, %eax
	movl	%eax, 8(%r15)
	movq	_at86rf230_write_frame_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	12(%r15), %rsi
	movl	%eax, 12(%r15)
	movl	4(%r14), %edi
	callq	_spi_async
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	$2, 8(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_at86rf230_async_error          ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_FB,4,2                     ## @CMD_FB
	.comm	_CMD_WRITE,4,2                  ## @CMD_WRITE
	.comm	_at86rf230_write_frame_complete,4,2 ## @at86rf230_write_frame_complete
	.no_dead_strip	_at86rf230_write_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at86rf230_write_frame
_at86rf230_write_frame:                 ; @at86rf230_write_frame
	.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	x19, x0
	ldr	x20, [x0, #16]
	ldr	x21, [x20, #8]
	ldr	x8, [x0]
	mov	w9, #1
	str	w9, [x20]
Lloh0:
	adrp	x9, _CMD_FB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CMD_FB@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _CMD_WRITE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CMD_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8]
	ldr	w9, [x21]
	add	w9, w9, #2
	str	w9, [x8, #4]
	add	x0, x8, #8
	ldp	w2, w1, [x21]
	bl	_memcpy
	ldr	w8, [x21]
	add	w8, w8, #2
Lloh6:
	adrp	x9, _at86rf230_write_frame_complete@GOTPAGE
Lloh7:
	ldr	x9, [x9, _at86rf230_write_frame_complete@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mov	x1, x19
	str	w9, [x1, #12]!
	stur	w8, [x1, #-4]
	ldr	w0, [x20, #4]
	bl	_spi_async
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
	mov	w8, #2
	str	w8, [x19, #8]
	mov	x0, x20
	mov	x1, 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	_at86rf230_async_error
LBB0_2:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_FB,4,2                     ; @CMD_FB
	.comm	_CMD_WRITE,4,2                  ; @CMD_WRITE
	.comm	_at86rf230_write_frame_complete,4,2 ; @at86rf230_write_frame_complete
	.no_dead_strip	_at86rf230_write_frame
.subsections_via_symbols
