	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfspi_rxfrm                    ## -- Begin function cfspi_rxfrm
	.p2align	4, 0x90
_cfspi_rxfrm:                           ## @cfspi_rxfrm
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorl	%edi, %edi
	testq	%rsi, %rsi
	setne	%dil
	callq	_caif_assert
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	addq	$4, %rcx
	movl	$1, %eax
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	addl	%eax, (%rcx)
	leaq	(%rbx,%r12,4), %rbx
	addq	$8, %rbx
	addl	%edx, %r13d
	movq	_spi_down_tail_align@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_PAD_POW2
	cltq
	leaq	(%rbx,%rax,4), %rbx
	movq	%rbx, %rax
	subq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	sarq	$2, %rax
	cmpq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	jae	LBB0_11
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_spi_down_head_align@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%rbx), %rax
	leaq	(%rbx,%rax,4), %rbx
	addq	$4, %rbx
	incq	%rax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movslq	(%rbx), %rax
	movl	4(%rbx), %ecx
	shll	$8, %ecx
	movzwl	%cx, %r12d
	orq	%rax, %r12
	leaq	2(%r12), %r13
	movq	(%r15), %rdi
	leal	3(%r12), %esi
	callq	_netdev_alloc_skb
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_caif_assert
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_skb_put_data
	movq	_ETH_P_CAIF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_skb_reset_mac_header
	movq	_spi_loop@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_cfspi_xmit
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_netif_rx_ni
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%r15), %rcx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	8(%rcx)
	movl	%r13d, %eax
	jmp	LBB0_10
LBB0_11:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_spi_down_head_align,4,2        ## @spi_down_head_align
	.comm	_ETH_P_CAIF,4,2                 ## @ETH_P_CAIF
	.comm	_spi_loop,4,2                   ## @spi_loop
	.comm	_spi_down_tail_align,4,2        ## @spi_down_tail_align
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfspi_rxfrm                    ; -- Begin function cfspi_rxfrm
	.p2align	2
_cfspi_rxfrm:                           ; @cfspi_rxfrm
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	cmp	x1, #0
	cset	w0, ne
	bl	_caif_assert
Lloh0:
	adrp	x26, _ETH_P_CAIF@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ETH_P_CAIF@GOTPAGEOFF]
Lloh2:
	adrp	x27, _spi_loop@GOTPAGE
Lloh3:
	ldr	x27, [x27, _spi_loop@GOTPAGEOFF]
	mov	x22, x20
Lloh4:
	adrp	x28, _spi_down_tail_align@GOTPAGE
Lloh5:
	ldr	x28, [x28, _spi_down_tail_align@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #4
	mov	w9, #1
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, w23, sxtw #2
	ldr	w10, [x8]
	add	w9, w10, w9
	str	w9, [x8]
	add	w0, w23, w25
	ldr	w1, [x28]
	bl	_PAD_POW2
	add	x22, x22, w0, sxtw #2
	sub	x8, x22, x20
	cmp	x19, x8, asr #2
	b.ls	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
Lloh6:
	adrp	x8, _spi_down_head_align@GOTPAGE
Lloh7:
	ldr	x8, [x8, _spi_down_head_align@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x22]
	add	x25, x8, #1
	add	x22, x22, x25, lsl #2
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w25, #0
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldp	w8, w9, [x22]
	ubfiz	w9, w9, #8, #8
	orr	w8, w9, w8
	add	w23, w8, #2
	ldr	x0, [x21]
	add	w1, w8, #3
	bl	_netdev_alloc_skb
	mov	x24, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_caif_assert
	mov	x0, x24
	mov	x1, x22
	mov	x2, x23
	bl	_skb_put_data
	ldr	w0, [x26]
	bl	_htons
	str	w0, [x24]
	mov	x0, x24
	bl	_skb_reset_mac_header
	ldr	w8, [x27]
	cbz	w8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x21]
	mov	x0, x24
	bl	_cfspi_xmit
	ldr	x8, [x21]
	cbnz	w0, LBB0_1
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	bl	_netif_rx_ni
	ldr	x8, [x21]
	cbnz	w0, LBB0_1
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
	mov	x9, x23
	b	LBB0_2
LBB0_10:
	lsr	x0, x8, #2
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_spi_down_head_align,4,2        ; @spi_down_head_align
	.comm	_ETH_P_CAIF,4,2                 ; @ETH_P_CAIF
	.comm	_spi_loop,4,2                   ; @spi_loop
	.comm	_spi_down_tail_align,4,2        ; @spi_down_tail_align
.subsections_via_symbols
