	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rfcomm_dlc_set_modem_status    ## -- Begin function rfcomm_dlc_set_modem_status
	.p2align	4, 0x90
_rfcomm_dlc_set_modem_status:           ## @rfcomm_dlc_set_modem_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	8(%rdi), %edx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %ecx
	callq	_BT_DBG
	movq	_RFCOMM_RX_THROTTLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	movq	_RFCOMM_V24_FC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	orl	%r14d, %edx
	notl	%ecx
	andl	%r14d, %ecx
	testq	%rax, %rax
	cmovnel	%edx, %ecx
	movl	%ecx, 4(%rbx)
	movq	_RFCOMM_MSC_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_RFCOMM_SCHED_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rfcomm_schedule
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dlc %p state %ld v24_sig 0x%x"

	.comm	_RFCOMM_RX_THROTTLED,4,2        ## @RFCOMM_RX_THROTTLED
	.comm	_RFCOMM_V24_FC,4,2              ## @RFCOMM_V24_FC
	.comm	_RFCOMM_MSC_PENDING,4,2         ## @RFCOMM_MSC_PENDING
	.comm	_RFCOMM_SCHED_TX,4,2            ## @RFCOMM_SCHED_TX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rfcomm_dlc_set_modem_status    ; -- Begin function rfcomm_dlc_set_modem_status
	.p2align	2
_rfcomm_dlc_set_modem_status:           ; @rfcomm_dlc_set_modem_status
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w2, [x0, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x3, x19
	bl	_BT_DBG
Lloh2:
	adrp	x8, _RFCOMM_RX_THROTTLED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RFCOMM_RX_THROTTLED@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
Lloh5:
	adrp	x8, _RFCOMM_V24_FC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RFCOMM_V24_FC@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w9, w8, w19
	bic	w8, w19, w8
	cmp	x0, #0
	csel	w8, w8, w9, eq
	str	w8, [x20, #4]
Lloh8:
	adrp	x8, _RFCOMM_MSC_PENDING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RFCOMM_MSC_PENDING@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_and_set_bit
	cbnz	w0, LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _RFCOMM_SCHED_TX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RFCOMM_SCHED_TX@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_rfcomm_schedule
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dlc %p state %ld v24_sig 0x%x"

	.comm	_RFCOMM_RX_THROTTLED,4,2        ; @RFCOMM_RX_THROTTLED
	.comm	_RFCOMM_V24_FC,4,2              ; @RFCOMM_V24_FC
	.comm	_RFCOMM_MSC_PENDING,4,2         ; @RFCOMM_MSC_PENDING
	.comm	_RFCOMM_SCHED_TX,4,2            ; @RFCOMM_SCHED_TX
.subsections_via_symbols
