	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ca8210_skb_rx
_ca8210_skb_rx:                         ## @ca8210_skb_rx
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	184(%rdx), %r14
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r13
	movq	_IEEE802154_MTU@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	addl	$80, %edi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	$80, %esi
	callq	_skb_reserve
	movq	176(%r15), %rax
	movq	(%r13), %rdi
	cmpl	%eax, (%rbx)
	jge	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	%r12, %rdi
	callq	_kfree_skb
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_14
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rbx
	movl	%ebx, %edx
	callq	_dev_dbg
	cmpq	$0, 8(%r13)
	jne	LBB0_13
## %bb.6:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	shlq	$32, %rbx
	movabsq	$124554051584, %rax             ## imm = 0x1D00000000
	addq	%rbx, %rax
	sarq	$29, %rax
	movl	(%r15,%rax), %r14d
	movl	%r14d, -96(%rbp)
	movq	(%r13), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_dbg
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.7:
	movabsq	$128849018880, %rax             ## imm = 0x1E00000000
	addq	%rbx, %rax
	sarq	$29, %rax
	movq	(%r15,%rax), %rax
	movq	%rax, -72(%rbp)
	leaq	-80(%rbp), %rdi
	movabsq	$133143986176, %rsi             ## imm = 0x1F00000000
	addq	%rbx, %rsi
	sarq	$29, %rsi
	addq	%r15, %rsi
	movl	$8, %edx
	callq	_memcpy
	movabsq	$167503724544, %rax             ## imm = 0x2700000000
	addq	%rbx, %rax
	sarq	$29, %rax
	movq	(%r15,%rax), %rax
	movq	%rax, -88(%rbp)
LBB0_8:
	movl	(%r15), %edx
	movl	%edx, -144(%rbp)
	movq	(%r13), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_dbg
	movl	8(%r15), %edx
	movl	%edx, -140(%rbp)
	movq	(%r13), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_dbg
	leaq	-136(%rbp), %rdi
	leaq	24(%r15), %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	88(%r15), %edx
	movl	%edx, -112(%rbp)
	movq	(%r13), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_dev_dbg
	movl	96(%r15), %edx
	movl	%edx, -108(%rbp)
	movq	(%r13), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_dev_dbg
	leaq	-104(%rbp), %rdi
	leaq	112(%r15), %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	$1, -132(%rbp)
	xorl	%eax, %eax
	cmpl	$0, -96(%rbp)
	setne	%al
	movl	%eax, -128(%rbp)
	movq	8(%r15), %rcx
	movl	$1, %eax
	cmpq	96(%r15), %rcx
	jne	LBB0_10
## %bb.9:
	movq	16(%r15), %rcx
	xorl	%eax, %eax
	cmpq	104(%r15), %rcx
	setne	%al
LBB0_10:
	movl	%eax, -124(%rbp)
	movl	-144(%rbp), %eax
	movl	-112(%rbp), %ecx
	movl	%ecx, -120(%rbp)
	movl	%eax, -116(%rbp)
	leaq	-144(%rbp), %rsi
	movq	%r12, %rdi
	callq	_ieee802154_hdr_push
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	movq	%r12, %rdi
	callq	_skb_reset_mac_header
	movl	%r14d, (%r12)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_13:
	addq	$232, %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_skb_put_data
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_ieee802154_rx_irqsafe
	xorl	%r14d, %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	(%r13), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_dev_crit
	movq	%r12, %rdi
	callq	_kfree_skb
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE802154_MTU,4,2             ## @IEEE802154_MTU
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"received erroneously large msdu length!\n"

	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
L_.str.1:                               ## @.str.1
	.asciz	"skb buffer length = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"security level: %#03x\n"

L_.str.3:                               ## @.str.3
	.asciz	"srcAddrMode: %#03x\n"

L_.str.4:                               ## @.str.4
	.asciz	"srcPanId: %#06x\n"

L_.str.5:                               ## @.str.5
	.asciz	"dstAddrMode: %#03x\n"

L_.str.6:                               ## @.str.6
	.asciz	"dstPanId: %#06x\n"

L_.str.7:                               ## @.str.7
	.asciz	"failed to push mac hdr onto skb!\n"

	.no_dead_strip	_ca8210_skb_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ca8210_skb_rx
_ca8210_skb_rx:                         ; @ca8210_skb_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x22, x2
	mov	x21, x0
	ldr	x20, [x2, #184]
	ldr	x25, [x0]
Lloh0:
	adrp	x24, _IEEE802154_MTU@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IEEE802154_MTU@GOTPAGEOFF]
	ldr	w8, [x24]
	add	w0, w8, #80
	bl	_dev_alloc_skb
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	w1, #80
	bl	_skb_reserve
	ldr	x23, [x22, #176]
	ldr	w8, [x24]
	ldr	x0, [x25]
	cmp	w8, w23
	b.ge	LBB0_5
; %bb.2:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	bl	_kfree_skb
Lloh4:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_13
LBB0_5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_dev_dbg
	ldr	x8, [x25, #8]
	cbnz	x8, LBB0_12
; %bb.6:
	lsl	x26, x23, #32
	mov	x8, #124554051584
	add	x8, x26, x8
	asr	x8, x8, #29
	ldr	w24, [x22, x8]
	str	w24, [sp, #48]
	ldr	x0, [x25]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x24
	bl	_dev_dbg
	cmp	w24, #1
	b.lt	LBB0_8
; %bb.7:
	mov	x8, #128849018880
	add	x8, x26, x8
	asr	x8, x8, #29
	ldr	x8, [x22, x8]
	str	x8, [sp, #72]
	mov	x8, sp
	add	x0, x8, #64
	mov	x8, #133143986176
	add	x8, x26, x8
	add	x1, x22, x8, asr #29
	mov	w2, #8
	bl	_memcpy
	mov	x8, #167503724544
	add	x8, x26, x8
	asr	x8, x8, #29
	ldr	x8, [x22, x8]
	str	x8, [sp, #56]
LBB0_8:
	ldr	w2, [x22]
	str	w2, [sp]
	ldr	x0, [x25]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
	ldr	w2, [x22, #8]
	str	w2, [sp, #4]
	ldr	x0, [x25]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
	mov	x24, sp
	add	x0, x24, #8
	add	x1, x22, #24
	mov	w2, #8
	bl	_memcpy
	ldr	w2, [x22, #88]
	str	w2, [sp, #32]
	ldr	x0, [x25]
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_dbg
	ldr	w2, [x22, #96]
	str	w2, [sp, #36]
	ldr	x0, [x25]
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_dbg
	add	x0, x24, #40
	add	x1, x22, #112
	mov	w2, #8
	bl	_memcpy
	mov	w8, #1
	ldr	w9, [sp, #48]
	cmp	w9, #0
	cset	w9, ne
	stp	w8, w9, [sp, #12]
	ldr	x9, [x22, #8]
	ldr	x10, [x22, #96]
	cmp	x9, x10
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x22, #16]
	ldr	x9, [x22, #104]
	cmp	x8, x9
	cset	w8, ne
LBB0_10:
	ldr	w9, [sp, #32]
	ldr	w10, [sp]
	stp	w8, w9, [sp, #20]
	str	w10, [sp, #28]
	mov	x1, sp
	mov	x0, x19
	bl	_ieee802154_hdr_push
	mov	x24, x0
	tbnz	w0, #31, LBB0_14
; %bb.11:
	mov	x0, x19
	bl	_skb_reset_mac_header
	str	w24, [x19]
LBB0_12:
	add	x1, x22, #232
	mov	x0, x19
	mov	x2, x23
	bl	_skb_put_data
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_ieee802154_rx_irqsafe
	mov	w24, #0
LBB0_13:
	mov	x0, x24
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_14:
	ldr	x0, [x25]
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_crit
	mov	x0, x19
	bl	_kfree_skb
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE802154_MTU,4,2             ; @IEEE802154_MTU
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"received erroneously large msdu length!\n"

	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
l_.str.1:                               ; @.str.1
	.asciz	"skb buffer length = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"security level: %#03x\n"

l_.str.3:                               ; @.str.3
	.asciz	"srcAddrMode: %#03x\n"

l_.str.4:                               ; @.str.4
	.asciz	"srcPanId: %#06x\n"

l_.str.5:                               ; @.str.5
	.asciz	"dstAddrMode: %#03x\n"

l_.str.6:                               ; @.str.6
	.asciz	"dstPanId: %#06x\n"

l_.str.7:                               ; @.str.7
	.asciz	"failed to push mac hdr onto skb!\n"

	.no_dead_strip	_ca8210_skb_rx
.subsections_via_symbols
