	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dtl1_receive
_dtl1_receive:                          ## @dtl1_receive
	.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
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.1:
	movq	%rdi, %r15
	movq	32(%rdi), %rax
	movl	(%rax), %r13d
	movl	$34, %r14d
	movq	_NSHL@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	incl	(%rax)
	cmpq	$0, 16(%r15)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_HCI_MAX_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bt_skb_alloc
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_UART_RX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_inb
	movl	%eax, %ebx
	movq	16(%r15), %rdi
	movl	$1, %esi
	callq	_skb_put
	movl	%ebx, (%rax)
	movq	16(%r15), %rdi
	movq	16(%rdi), %rbx
	decq	8(%r15)
	je	LBB0_6
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	decl	%r14d
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_UART_LSR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_inb
	movq	_UART_LSR_DR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_2
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %eax
	cmpl	$129, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %eax
	jne	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$129, (%r15)
	movslq	(%rbx), %rax
	movl	%eax, %ecx
	andl	$1, %ecx
	addq	%rax, %rcx
	movq	%rcx, 8(%r15)
	jmp	LBB0_17
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %r12d
	callq	_bt_cb
	movl	%r12d, (%rax)
	testb	$1, (%rbx)
	movq	16(%r15), %rdi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	decl	12(%rdi)
	decl	8(%rdi)
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_NSHL@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	callq	_skb_pull
	movq	16(%r15), %rdi
	callq	_bt_cb
	movl	(%rax), %eax
	leal	-130(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %rdi
	movq	24(%r15), %rax
	movq	%rax, (%rdi)
	callq	_bt_cb
	andl	$15, (%rax)
	movq	16(%r15), %rdi
	callq	_hci_recv_frame
	jmp	LBB0_16
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %eax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %rsi
	movq	%r15, %rdi
	callq	_dtl1_control
	jmp	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %rdi
	callq	_bt_cb
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_BT_ERR
	movq	16(%r15), %rdi
	callq	_kfree_skb
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$128, (%r15)
	movq	(%r12), %rax
	movq	%rax, 8(%r15)
	movq	$0, 16(%r15)
	jmp	LBB0_17
LBB0_20:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BT_ERR                         ## TAILCALL
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_BT_ERR
	movl	$128, (%r15)
	movq	(%r12), %rax
	movq	%rax, 8(%r15)
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown device"

	.comm	_HCI_MAX_FRAME_SIZE,4,2         ## @HCI_MAX_FRAME_SIZE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate mem for new packet"

	.comm	_NSHL,8,3                       ## @NSHL
	.comm	_UART_RX,8,3                    ## @UART_RX
L_.str.2:                               ## @.str.2
	.asciz	"Unknown HCI packet with type 0x%02x received"

	.comm	_UART_LSR,8,3                   ## @UART_LSR
	.comm	_UART_LSR_DR,4,2                ## @UART_LSR_DR
	.no_dead_strip	_dtl1_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dtl1_receive
_dtl1_receive:                          ; @dtl1_receive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x0, LBB0_18
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	w23, [x8]
Lloh0:
	adrp	x24, _HCI_MAX_FRAME_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HCI_MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x25, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x25, [x25, _GFP_ATOMIC@GOTPAGEOFF]
Lloh4:
	adrp	x26, _UART_RX@GOTPAGE
Lloh5:
	ldr	x26, [x26, _UART_RX@GOTPAGEOFF]
	mov	w27, #34
Lloh6:
	adrp	x22, _NSHL@GOTPAGE
Lloh7:
	ldr	x22, [x22, _NSHL@GOTPAGEOFF]
Lloh8:
	adrp	x28, _UART_LSR@GOTPAGE
Lloh9:
	ldr	x28, [x28, _UART_LSR@GOTPAGEOFF]
Lloh10:
	adrp	x20, _UART_LSR_DR@GOTPAGE
Lloh11:
	ldr	x20, [x20, _UART_LSR_DR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x19, #16]
	ldr	w10, [x8]
	add	w10, w10, #1
	str	w10, [x8]
	cbnz	x9, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x24]
	ldr	w1, [x25]
	bl	_bt_skb_alloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_19
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
	add	x0, x8, x23
	bl	_inb
	mov	x21, x0
	ldr	x0, [x19, #16]
	mov	w1, #1
	bl	_skb_put
	str	w21, [x0]
	ldp	x8, x0, [x19, #8]
	ldr	x21, [x0, #16]
	subs	x8, x8, #1
	str	x8, [x19, #8]
	b.eq	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	subs	w27, w27, #1
	b.eq	LBB0_20
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x28]
	add	x0, x8, x23
	bl	_inb
	ldr	w8, [x20]
	tst	w8, w0
	b.ne	LBB0_2
	b	LBB0_20
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19]
	cmp	w8, #129
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #129
	str	w8, [x19]
	ldrsw	x8, [x21]
	and	x9, x8, #0x1
	add	x8, x9, x8
	str	x8, [x19, #8]
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x24
	mov	x24, x22
	ldr	w22, [x21, #4]
	bl	_bt_cb
	str	w22, [x0]
	ldr	x0, [x19, #16]
	ldrb	w8, [x21]
	tbz	w8, #0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	d0, [x0, #8]
	movi.2d	v1, #0xffffffffffffffff
	add.2s	v0, v0, v1
	str	d0, [x0, #8]
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x24
	ldr	x1, [x24]
	bl	_skb_pull
	ldr	x0, [x19, #16]
	bl	_bt_cb
	ldr	w8, [x0]
	sub	w9, w8, #130
	cmp	w9, #3
	b.hs	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	ldp	x0, x8, [x19, #16]
	str	x8, [x0]
	bl	_bt_cb
	ldr	w8, [x0]
	and	w8, w8, #0xf
	str	w8, [x0]
	ldr	x0, [x19, #16]
	bl	_hci_recv_frame
	b	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #128
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x19, #16]
	mov	x0, x19
	bl	_dtl1_control
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x19, #16]
	bl	_bt_cb
	ldr	w8, [x0]
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_BT_ERR
	ldr	x0, [x19, #16]
	bl	_kfree_skb
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, x25
Lloh14:
	adrp	x25, _GFP_ATOMIC@GOTPAGE
Lloh15:
	ldr	x25, [x25, _GFP_ATOMIC@GOTPAGEOFF]
	mov	w8, #128
	str	w8, [x19]
	ldr	x8, [x22]
	stp	x8, xzr, [x19, #8]
	b	LBB0_5
LBB0_18:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	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
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_BT_ERR
LBB0_19:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BT_ERR
	mov	w8, #128
	str	w8, [x19]
	ldr	x8, [x22]
	str	x8, [x19, #8]
LBB0_20:
	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
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown device"

	.comm	_HCI_MAX_FRAME_SIZE,4,2         ; @HCI_MAX_FRAME_SIZE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate mem for new packet"

	.comm	_NSHL,8,3                       ; @NSHL
	.comm	_UART_RX,8,3                    ; @UART_RX
l_.str.2:                               ; @.str.2
	.asciz	"Unknown HCI packet with type 0x%02x received"

	.comm	_UART_LSR,8,3                   ; @UART_LSR
	.comm	_UART_LSR_DR,4,2                ; @UART_LSR_DR
	.no_dead_strip	_dtl1_receive
.subsections_via_symbols
