	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rfcomm_apply_pn
_rfcomm_apply_pn:                       ## @rfcomm_apply_pn
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	40(%rdi), %r12
	movl	28(%rdi), %ecx
	movl	32(%rdi), %edx
	movl	(%r15), %r9d
	movl	4(%r15), %r8d
	movl	12(%r15), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_BT_DBG
	movl	(%r15), %eax
	cmpl	$224, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$240, %eax
	jne	LBB0_2
## %bb.4:
	movq	(%r12), %rax
	movq	_RFCOMM_CFC_DISABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
LBB0_5:
	movq	_RFCOMM_CFC_ENABLED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movl	12(%r15), %eax
	movl	%eax, 24(%rbx)
	jmp	LBB0_6
LBB0_2:
	movq	_RFCOMM_CFC_DISABLED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_3:
	movq	%rax, (%rbx)
	movq	_RFCOMM_TX_THROTTLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%rbx), %rsi
	callq	_set_bit
LBB0_6:
	movq	(%r12), %rax
	movq	_RFCOMM_CFC_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	(%rbx), %rax
	movq	%rax, (%r12)
LBB0_8:
	movl	8(%r15), %eax
	movl	%eax, 16(%rbx)
	movl	4(%r15), %edi
	callq	___le16_to_cpu
	movq	%rax, 8(%rbx)
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.9:
	movq	8(%r12), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_11
## %bb.10:
	movq	%rcx, 8(%rbx)
LBB0_11:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dlc %p state %ld dlci %d mtu %d fc 0x%x credits %d"

	.comm	_RFCOMM_CFC_DISABLED,8,3        ## @RFCOMM_CFC_DISABLED
	.comm	_RFCOMM_CFC_ENABLED,8,3         ## @RFCOMM_CFC_ENABLED
	.comm	_RFCOMM_TX_THROTTLED,4,2        ## @RFCOMM_TX_THROTTLED
	.comm	_RFCOMM_CFC_UNKNOWN,8,3         ## @RFCOMM_CFC_UNKNOWN
	.no_dead_strip	_rfcomm_apply_pn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rfcomm_apply_pn
_rfcomm_apply_pn:                       ; @rfcomm_apply_pn
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #40]
	ldp	w3, w2, [x0, #28]
	ldp	w5, w4, [x21]
	ldr	w6, [x21, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_BT_DBG
	ldr	w8, [x21]
	cmp	w8, #224
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #240
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _RFCOMM_CFC_DISABLED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RFCOMM_CFC_DISABLED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _RFCOMM_CFC_ENABLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RFCOMM_CFC_ENABLED@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	w8, [x21, #12]
	str	w8, [x19, #24]
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _RFCOMM_CFC_DISABLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RFCOMM_CFC_DISABLED@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
LBB0_5:
	mov	x1, x19
	str	x8, [x1], #20
Lloh11:
	adrp	x8, _RFCOMM_TX_THROTTLED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RFCOMM_TX_THROTTLED@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_set_bit
LBB0_6:
	ldr	x8, [x22]
Lloh14:
	adrp	x9, _RFCOMM_CFC_UNKNOWN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RFCOMM_CFC_UNKNOWN@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x19]
	str	x8, [x22]
LBB0_8:
	ldp	w0, w8, [x21, #4]
	str	w8, [x19, #16]
	bl	___le16_to_cpu
	str	x0, [x19, #8]
	cbz	w20, LBB0_11
; %bb.9:
	ldr	x8, [x22, #8]
	cmp	x0, x8
	b.le	LBB0_11
; %bb.10:
	str	x8, [x19, #8]
LBB0_11:
	mov	w0, #0
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dlc %p state %ld dlci %d mtu %d fc 0x%x credits %d"

	.comm	_RFCOMM_CFC_DISABLED,8,3        ; @RFCOMM_CFC_DISABLED
	.comm	_RFCOMM_CFC_ENABLED,8,3         ; @RFCOMM_CFC_ENABLED
	.comm	_RFCOMM_TX_THROTTLED,4,2        ; @RFCOMM_TX_THROTTLED
	.comm	_RFCOMM_CFC_UNKNOWN,8,3         ; @RFCOMM_CFC_UNKNOWN
	.no_dead_strip	_rfcomm_apply_pn
.subsections_via_symbols
