	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_lc_skb
_alloc_lc_skb:                          ## @alloc_lc_skb
	.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	%rsi, %r14
	movl	(%rdi), %edi
	movq	_NCI_DATA_HDR_SIZE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	%r14, %rsi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_nci_skb_alloc
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_skb_put
	movq	%rax, %rbx
	movq	_NCI_CORE_LC_CONNID_PROP_FW_DL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	%r14, (%rbx)
	movq	_NCI_MT_DATA_PKT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nci_mt_set
	movq	_NCI_PBF_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nci_pbf_set
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_3:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NCI_DATA_HDR_SIZE,8,3          ## @NCI_DATA_HDR_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no memory for data\n"

	.comm	_NCI_CORE_LC_CONNID_PROP_FW_DL,4,2 ## @NCI_CORE_LC_CONNID_PROP_FW_DL
	.comm	_NCI_MT_DATA_PKT,4,2            ## @NCI_MT_DATA_PKT
	.comm	_NCI_PBF_LAST,4,2               ## @NCI_PBF_LAST
	.no_dead_strip	_alloc_lc_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_lc_skb
_alloc_lc_skb:                          ; @alloc_lc_skb
	.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	x20, x1
Lloh0:
	adrp	x21, _NCI_DATA_HDR_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NCI_DATA_HDR_SIZE@GOTPAGEOFF]
	ldr	w0, [x0]
	ldr	x8, [x21]
	add	x1, x8, x1
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_nci_skb_alloc
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x1, [x21]
	mov	x0, x19
	bl	_skb_put
	mov	x21, x0
Lloh5:
	adrp	x8, _NCI_CORE_LC_CONNID_PROP_FW_DL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NCI_CORE_LC_CONNID_PROP_FW_DL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	stp	x20, xzr, [x0]
Lloh8:
	adrp	x8, _NCI_MT_DATA_PKT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NCI_MT_DATA_PKT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_nci_mt_set
Lloh11:
	adrp	x8, _NCI_PBF_LAST@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NCI_PBF_LAST@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_nci_pbf_set
	b	LBB0_3
LBB0_2:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_3:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_NCI_DATA_HDR_SIZE,8,3          ; @NCI_DATA_HDR_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no memory for data\n"

	.comm	_NCI_CORE_LC_CONNID_PROP_FW_DL,4,2 ; @NCI_CORE_LC_CONNID_PROP_FW_DL
	.comm	_NCI_MT_DATA_PKT,4,2            ; @NCI_MT_DATA_PKT
	.comm	_NCI_PBF_LAST,4,2               ; @NCI_PBF_LAST
	.no_dead_strip	_alloc_lc_skb
.subsections_via_symbols
