	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nxp_nci_fw_send_chunk
_nxp_nci_fw_send_chunk:                 ## @nxp_nci_fw_send_chunk
	.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, %r15
	movl	24(%rdi), %edi
	movq	(%r15), %rsi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_nci_skb_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_NXP_NCI_FW_HDR_LEN@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	_NXP_NCI_FW_CRC_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rsi, %rax
	movq	(%r15), %rcx
	subq	%rax, %rcx
	movq	32(%r15), %r12
	subq	40(%r15), %r12
	xorl	%eax, %eax
	cmpq	%rcx, %r12
	movq	_NXP_NCI_FW_CHUNK_FLAG@GOTPCREL(%rip), %rdx
	cmovaeq	%rcx, %r12
	cmovaq	(%rdx), %rax
	movq	_NXP_NCI_FW_FRAME_LEN_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	andq	%r12, %rbx
	orq	%rax, %rbx
	movq	%r14, %rdi
	callq	_skb_put
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_put_unaligned_be16
	movq	40(%r15), %rsi
	addq	48(%r15), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_skb_put_data
	movl	(%r14), %edi
	movq	(%r13), %rsi
	addq	%r12, %rsi
	callq	_nxp_nci_fw_crc
	movq	%rax, %rbx
	movq	_NXP_NCI_FW_CRC_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_skb_put
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_put_unaligned_be16
	movq	16(%r15), %rax
	movl	8(%r15), %edi
	movq	%r14, %rsi
	callq	*(%rax)
	testl	%eax, %eax
	cmovsl	%eax, %r12d
	movq	%r14, %rdi
	callq	_kfree_skb
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_3:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NXP_NCI_FW_HDR_LEN,8,3         ## @NXP_NCI_FW_HDR_LEN
	.comm	_NXP_NCI_FW_CRC_LEN,8,3         ## @NXP_NCI_FW_CRC_LEN
	.comm	_NXP_NCI_FW_CHUNK_FLAG,8,3      ## @NXP_NCI_FW_CHUNK_FLAG
	.comm	_NXP_NCI_FW_FRAME_LEN_MASK,8,3  ## @NXP_NCI_FW_FRAME_LEN_MASK
	.no_dead_strip	_nxp_nci_fw_send_chunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nxp_nci_fw_send_chunk
_nxp_nci_fw_send_chunk:                 ; @nxp_nci_fw_send_chunk
	.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	x20, x0
	ldr	w0, [x0, #24]
	ldr	x1, [x20]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_nci_skb_alloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x20]
Lloh3:
	adrp	x23, _NXP_NCI_FW_HDR_LEN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _NXP_NCI_FW_HDR_LEN@GOTPAGEOFF]
Lloh5:
	adrp	x24, _NXP_NCI_FW_CRC_LEN@GOTPAGE
Lloh6:
	ldr	x24, [x24, _NXP_NCI_FW_CRC_LEN@GOTPAGEOFF]
	ldr	x1, [x23]
	ldr	x9, [x24]
	add	x9, x1, x9
	sub	x8, x8, x9
	ldp	x9, x10, [x20, #32]
Lloh7:
	adrp	x11, _NXP_NCI_FW_CHUNK_FLAG@GOTPAGE
Lloh8:
	ldr	x11, [x11, _NXP_NCI_FW_CHUNK_FLAG@GOTPAGEOFF]
Lloh9:
	ldr	x11, [x11]
	sub	x9, x9, x10
	cmp	x9, x8
	csel	x21, x9, x8, lo
	csel	x8, x11, xzr, hi
Lloh10:
	adrp	x9, _NXP_NCI_FW_FRAME_LEN_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NXP_NCI_FW_FRAME_LEN_MASK@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	and	x9, x21, x9
	orr	x22, x8, x9
	bl	_skb_put
	mov	x1, x0
	mov	x0, x22
	bl	_put_unaligned_be16
	ldp	x9, x8, [x20, #40]
	add	x1, x9, x8
	mov	x0, x19
	mov	x2, x21
	bl	_skb_put_data
	ldr	w0, [x19]
	ldr	x8, [x23]
	add	x1, x8, x21
	bl	_nxp_nci_fw_crc
	mov	x22, x0
	ldr	x1, [x24]
	mov	x0, x19
	bl	_skb_put
	mov	x1, x0
	mov	x0, x22
	bl	_put_unaligned_be16
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldr	w0, [x20, #8]
	mov	x1, x19
	blr	x8
	cmp	w0, #0
	csel	w20, w0, w21, lt
	mov	x0, x19
	bl	_kfree_skb
	b	LBB0_3
LBB0_2:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_3:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NXP_NCI_FW_HDR_LEN,8,3         ; @NXP_NCI_FW_HDR_LEN
	.comm	_NXP_NCI_FW_CRC_LEN,8,3         ; @NXP_NCI_FW_CRC_LEN
	.comm	_NXP_NCI_FW_CHUNK_FLAG,8,3      ; @NXP_NCI_FW_CHUNK_FLAG
	.comm	_NXP_NCI_FW_FRAME_LEN_MASK,8,3  ; @NXP_NCI_FW_FRAME_LEN_MASK
	.no_dead_strip	_nxp_nci_fw_send_chunk
.subsections_via_symbols
