	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcsp_handle_le_pkt
_bcsp_handle_le_pkt:                    ## @bcsp_handle_le_pkt
	.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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %rbx
	movaps	L___const.bcsp_handle_le_pkt.conf_pkt(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	L___const.bcsp_handle_le_pkt.conf_rsp_pkt(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	L___const.bcsp_handle_le_pkt.sync_pkt(%rip), %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movl	4(%rdi), %eax
	movl	%eax, %ecx
	andl	$-16, %ecx
	cmpl	$64, %ecx
	jne	LBB0_4
## %bb.1:
	cmpl	$0, 8(%rdi)
	jne	LBB0_4
## %bb.2:
	addq	$16, %rdi
	leaq	-64(%rbp), %rsi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movl	4(%rdi), %eax
LBB0_4:
	andl	$-16, %eax
	cmpl	$64, %eax
	jne	LBB0_10
## %bb.5:
	cmpl	$0, 8(%rdi)
	jne	LBB0_10
## %bb.6:
	addq	$16, %rdi
	leaq	-96(%rbp), %rsi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	callq	_BT_ERR
	jmp	LBB0_10
LBB0_8:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_alloc_skb
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdi
	callq	_BT_DBG
	testq	%r15, %r15
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_skb_put
	leaq	-80(%rbp), %rsi
	movl	%eax, %edi
	movl	$4, %edx
	callq	_memcpy
	movq	_BCSP_LE_PKT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_bt_cb
	movl	%r12d, (%rax)
	addq	$8, %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_skb_queue_head
	movq	%r14, %rdi
	callq	_hci_uart_tx_wakeup
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @__const.bcsp_handle_le_pkt.conf_pkt
L___const.bcsp_handle_le_pkt.conf_pkt:
	.long	173                             ## 0xad
	.long	239                             ## 0xef
	.long	172                             ## 0xac
	.long	237                             ## 0xed

	.p2align	4                               ## @__const.bcsp_handle_le_pkt.conf_rsp_pkt
L___const.bcsp_handle_le_pkt.conf_rsp_pkt:
	.long	222                             ## 0xde
	.long	173                             ## 0xad
	.long	208                             ## 0xd0
	.long	208                             ## 0xd0

	.p2align	4                               ## @__const.bcsp_handle_le_pkt.sync_pkt
L___const.bcsp_handle_le_pkt.sync_pkt:
	.long	218                             ## 0xda
	.long	220                             ## 0xdc
	.long	237                             ## 0xed
	.long	237                             ## 0xed

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Found a LE conf pkt"

	.comm	_BCSP_LE_PKT,4,2                ## @BCSP_LE_PKT
L_.str.1:                               ## @.str.1
	.asciz	"Found a LE sync pkt, card has reset"

	.no_dead_strip	_bcsp_handle_le_pkt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcsp_handle_le_pkt
_bcsp_handle_le_pkt:                    ; @bcsp_handle_le_pkt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x21, [x0]
Lloh3:
	adrp	x8, l___const.bcsp_handle_le_pkt.conf_pkt@PAGE
Lloh4:
	add	x8, x8, l___const.bcsp_handle_le_pkt.conf_pkt@PAGEOFF
Lloh5:
	ldr	q1, [x8]
Lloh6:
	adrp	x8, l___const.bcsp_handle_le_pkt.conf_rsp_pkt@PAGE
Lloh7:
	add	x8, x8, l___const.bcsp_handle_le_pkt.conf_rsp_pkt@PAGEOFF
Lloh8:
	ldr	q0, [x8]
	stp	q0, q1, [sp, #16]
Lloh9:
	adrp	x8, l___const.bcsp_handle_le_pkt.sync_pkt@PAGE
Lloh10:
	add	x8, x8, l___const.bcsp_handle_le_pkt.sync_pkt@PAGEOFF
Lloh11:
	ldr	q0, [x8]
	str	q0, [sp]
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w9, [x8, #4]
	and	w10, w9, #0xfffffff0
	cmp	w10, #64
	b.ne	LBB0_4
; %bb.1:
	ldr	w10, [x8, #8]
	cbnz	w10, LBB0_4
; %bb.2:
	mov	x19, x0
	add	x0, x8, #16
	add	x1, sp, #32
	mov	w2, #4
	bl	_memcmp
	cbz	w0, LBB0_8
; %bb.3:
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w9, [x8, #4]
LBB0_4:
	and	w9, w9, #0xfffffff0
	cmp	w9, #64
	b.ne	LBB0_10
; %bb.5:
	ldr	w9, [x8, #8]
	cbnz	w9, LBB0_10
; %bb.6:
	add	x0, x8, #16
	mov	x1, sp
	mov	w2, #4
	bl	_memcmp
	cbnz	w0, LBB0_10
; %bb.7:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BT_ERR
	b	LBB0_10
LBB0_8:
Lloh14:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_alloc_skb
	mov	x20, x0
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_DBG
	cbz	x20, LBB0_10
; %bb.9:
	mov	x0, x20
	mov	w1, #4
	bl	_skb_put
	add	x1, sp, #16
	mov	w2, #4
	bl	_memcpy
Lloh19:
	adrp	x8, _BCSP_LE_PKT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BCSP_LE_PKT@GOTPAGEOFF]
Lloh21:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_bt_cb
	str	w22, [x0]
	add	x0, x21, #8
	mov	x1, x20
	bl	_skb_queue_head
	mov	x0, x19
	bl	_hci_uart_tx_wakeup
LBB0_10:
	ldur	x8, [x29, #-40]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpAddLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAddLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAddLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @__const.bcsp_handle_le_pkt.conf_pkt
l___const.bcsp_handle_le_pkt.conf_pkt:
	.long	173                             ; 0xad
	.long	239                             ; 0xef
	.long	172                             ; 0xac
	.long	237                             ; 0xed

	.p2align	2                               ; @__const.bcsp_handle_le_pkt.conf_rsp_pkt
l___const.bcsp_handle_le_pkt.conf_rsp_pkt:
	.long	222                             ; 0xde
	.long	173                             ; 0xad
	.long	208                             ; 0xd0
	.long	208                             ; 0xd0

	.p2align	2                               ; @__const.bcsp_handle_le_pkt.sync_pkt
l___const.bcsp_handle_le_pkt.sync_pkt:
	.long	218                             ; 0xda
	.long	220                             ; 0xdc
	.long	237                             ; 0xed
	.long	237                             ; 0xed

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Found a LE conf pkt"

	.comm	_BCSP_LE_PKT,4,2                ; @BCSP_LE_PKT
l_.str.1:                               ; @.str.1
	.asciz	"Found a LE sync pkt, card has reset"

	.no_dead_strip	_bcsp_handle_le_pkt
.subsections_via_symbols
