	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnep_session
_bnep_session:                          ## @bnep_session
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	16(%rdi), %rbx
	movq	8(%rax), %r14
	leaq	L_.str(%rip), %rdi
	callq	_BT_DBG
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_daemonize
	movq	_current@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$-15, %esi
	callq	_set_user_nice
	movl	(%rbx), %esi
	leaq	-52(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_init_waitqueue_entry
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %edi
	movq	%rbx, %rsi
	callq	_add_wait_queue
	leaq	8(%r12), %r15
	movq	%r15, %rdi
	callq	_atomic_read
	testl	%eax, %eax
	je	LBB0_1
LBB0_9:
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	leaq	-52(%rbp), %rsi
	callq	_remove_wait_queue
	movq	_bnep_session_sem@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_down_write
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_unregister_netdev
	movq	_EUNATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r12), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, 12(%rcx)
	movl	8(%rcx), %edi
	callq	_wake_up_interruptible
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_fput
	movq	%r12, %rdi
	callq	___bnep_unlink_session
	movq	%r14, %rdi
	callq	_up_write
	movq	%rbx, %rdi
	callq	_free_netdev
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	20(%rax), %rbx
	leaq	16(%rax), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_wake_queue
	xorl	%eax, %eax
	callq	_schedule
	movq	%r15, %rdi
	callq	_atomic_read
	testl	%eax, %eax
	jne	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_6 Depth 2
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	%rbx, %rdi
	callq	_skb_dequeue
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	callq	_skb_orphan
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_bnep_rx_frame
	movq	%rbx, %rdi
	callq	_skb_dequeue
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_BT_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	callq	_skb_dequeue
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_bnep_tx_frame
	testq	%rax, %rax
	je	LBB0_6
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"kbnepd %s"

	.comm	_current,4,2                    ## @current
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_BT_CONNECTED,8,3               ## @BT_CONNECTED
	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
	.comm	_bnep_session_sem,4,2           ## @bnep_session_sem
	.comm	_EUNATCH,4,2                    ## @EUNATCH
	.no_dead_strip	_bnep_session
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnep_session
_bnep_session:                          ; @bnep_session
	.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
	mov	x20, x0
	ldr	x19, [x0, #16]
	ldr	x8, [x0]
	ldr	x25, [x8, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_DBG
	ldr	w1, [x19]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_daemonize
Lloh4:
	adrp	x21, _current@GOTPAGE
Lloh5:
	ldr	x21, [x21, _current@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #-15
	bl	_set_user_nice
	ldr	w1, [x21]
	add	x0, sp, #12
	bl	_init_waitqueue_entry
	ldr	w0, [x25, #8]
	add	x1, sp, #12
	bl	_add_wait_queue
	add	x21, x20, #8
	mov	x0, x21
	bl	_atomic_read
	cbz	w0, LBB0_2
LBB0_1:
Lloh6:
	adrp	x8, _TASK_RUNNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TASK_RUNNING@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_set_current_state
	ldr	w0, [x25, #8]
	add	x1, sp, #12
	bl	_remove_wait_queue
Lloh9:
	adrp	x21, _bnep_session_sem@GOTPAGE
Lloh10:
	ldr	x21, [x21, _bnep_session_sem@GOTPAGEOFF]
	mov	x0, x21
	bl	_down_write
	mov	x0, x19
	bl	_unregister_netdev
Lloh11:
	adrp	x8, _EUNATCH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EUNATCH@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	x9, [x20]
	ldr	x9, [x9, #8]
	str	w8, [x9, #12]
	ldr	w0, [x9, #8]
	bl	_wake_up_interruptible
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_fput
	mov	x0, x20
	bl	___bnep_unlink_session
	mov	x0, x21
	bl	_up_write
	mov	x0, x19
	bl	_free_netdev
	mov	w0, #0
	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
LBB0_2:
	add	x22, x25, #20
	add	x23, x25, #16
Lloh14:
	adrp	x26, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh15:
	ldr	x26, [x26, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh16:
	adrp	x27, _BT_CONNECTED@GOTPAGE
Lloh17:
	ldr	x27, [x27, _BT_CONNECTED@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_netif_wake_queue
	bl	_schedule
	mov	x0, x21
	bl	_atomic_read
	cbnz	w0, LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w0, [x26]
	bl	_set_current_state
	mov	x0, x22
	bl	_skb_dequeue
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	bl	_skb_orphan
	mov	x0, x20
	mov	x1, x24
	bl	_bnep_rx_frame
	mov	x0, x22
	bl	_skb_dequeue
	mov	x24, x0
	cbnz	x0, LBB0_6
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_1
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	bl	_skb_dequeue
	cbz	x0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x1, x0
	mov	x0, x20
	bl	_bnep_tx_frame
	cbz	x0, LBB0_8
	b	LBB0_3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"kbnepd %s"

	.comm	_current,4,2                    ; @current
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_BT_CONNECTED,8,3               ; @BT_CONNECTED
	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
	.comm	_bnep_session_sem,4,2           ; @bnep_session_sem
	.comm	_EUNATCH,4,2                    ; @EUNATCH
	.no_dead_strip	_bnep_session
.subsections_via_symbols
