	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rfcomm_tty_tiocmset
_rfcomm_tty_tiocmset:                   ## @rfcomm_tty_tiocmset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movq	%rdi, %rsi
	movq	(%rdi), %rdx
	movq	(%rdx), %r14
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	callq	_BT_DBG
	leaq	-28(%rbp), %rsi
	movq	%r14, %rdi
	callq	_rfcomm_dlc_get_modem_status
	movq	_TIOCM_DSR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %eax
	jne	LBB0_2
## %bb.1:
	movq	_TIOCM_DTR@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_3
LBB0_2:
	movq	_RFCOMM_V24_RTC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, -28(%rbp)
LBB0_3:
	movq	_TIOCM_RTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ebx, %ecx
	jne	LBB0_5
## %bb.4:
	movq	_TIOCM_CTS@GOTPCREL(%rip), %rdx
	testl	%ebx, (%rdx)
	je	LBB0_6
LBB0_5:
	movq	_RFCOMM_V24_RTR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, -28(%rbp)
LBB0_6:
	movq	_TIOCM_RI@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ebx, %edx
	je	LBB0_8
## %bb.7:
	movq	_RFCOMM_V24_IC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	%esi, -28(%rbp)
LBB0_8:
	movq	_TIOCM_CD@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%ebx, %esi
	je	LBB0_10
## %bb.9:
	movq	_RFCOMM_V24_DV@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	%edi, -28(%rbp)
LBB0_10:
	testl	%r15d, %eax
	jne	LBB0_12
## %bb.11:
	movq	_TIOCM_DTR@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_13
LBB0_12:
	movq	_RFCOMM_V24_RTC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, -28(%rbp)
LBB0_13:
	testl	%r15d, %ecx
	jne	LBB0_15
## %bb.14:
	movq	_TIOCM_CTS@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_16
LBB0_15:
	movq	_RFCOMM_V24_RTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, -28(%rbp)
LBB0_16:
	testl	%r15d, %edx
	je	LBB0_18
## %bb.17:
	movq	_RFCOMM_V24_IC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, -28(%rbp)
LBB0_18:
	testl	%r15d, %esi
	je	LBB0_19
## %bb.20:
	movq	_RFCOMM_V24_DV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	-28(%rbp), %esi
	movl	%esi, -28(%rbp)
	jmp	LBB0_21
LBB0_19:
	movl	-28(%rbp), %esi
LBB0_21:
	movq	%r14, %rdi
	callq	_rfcomm_dlc_set_modem_status
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tty %p dev %p set 0x%02x clear 0x%02x"

	.comm	_TIOCM_DSR,4,2                  ## @TIOCM_DSR
	.comm	_TIOCM_DTR,4,2                  ## @TIOCM_DTR
	.comm	_RFCOMM_V24_RTC,4,2             ## @RFCOMM_V24_RTC
	.comm	_TIOCM_RTS,4,2                  ## @TIOCM_RTS
	.comm	_TIOCM_CTS,4,2                  ## @TIOCM_CTS
	.comm	_RFCOMM_V24_RTR,4,2             ## @RFCOMM_V24_RTR
	.comm	_TIOCM_RI,4,2                   ## @TIOCM_RI
	.comm	_RFCOMM_V24_IC,4,2              ## @RFCOMM_V24_IC
	.comm	_TIOCM_CD,4,2                   ## @TIOCM_CD
	.comm	_RFCOMM_V24_DV,4,2              ## @RFCOMM_V24_DV
	.no_dead_strip	_rfcomm_tty_tiocmset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rfcomm_tty_tiocmset
_rfcomm_tty_tiocmset:                   ; @rfcomm_tty_tiocmset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x3
	mov	x21, x2
	mov	x1, x0
	ldr	x2, [x0]
	ldr	x19, [x2]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x21
	mov	x4, x20
	bl	_BT_DBG
	add	x1, sp, #12
	mov	x0, x19
	bl	_rfcomm_dlc_get_modem_status
Lloh2:
	adrp	x8, _TIOCM_DSR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TIOCM_DSR@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x8]
Lloh5:
	adrp	x8, _RFCOMM_V24_RTC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RFCOMM_V24_RTC@GOTPAGEOFF]
	tst	w10, w21
	b.ne	LBB0_2
; %bb.1:
Lloh7:
	adrp	x9, _TIOCM_DTR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TIOCM_DTR@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w21
	b.eq	LBB0_3
LBB0_2:
	ldr	w9, [x8]
	ldr	w11, [sp, #12]
	orr	w9, w11, w9
	str	w9, [sp, #12]
LBB0_3:
Lloh10:
	adrp	x9, _TIOCM_RTS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TIOCM_RTS@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x9]
Lloh13:
	adrp	x9, _RFCOMM_V24_RTR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _RFCOMM_V24_RTR@GOTPAGEOFF]
	tst	w11, w21
	b.ne	LBB0_5
; %bb.4:
Lloh15:
	adrp	x12, _TIOCM_CTS@GOTPAGE
Lloh16:
	ldr	x12, [x12, _TIOCM_CTS@GOTPAGEOFF]
Lloh17:
	ldr	w12, [x12]
	tst	w12, w21
	b.eq	LBB0_6
LBB0_5:
	ldr	w12, [x9]
	ldr	w13, [sp, #12]
	orr	w12, w13, w12
	str	w12, [sp, #12]
LBB0_6:
Lloh18:
	adrp	x12, _TIOCM_RI@GOTPAGE
Lloh19:
	ldr	x12, [x12, _TIOCM_RI@GOTPAGEOFF]
Lloh20:
	ldr	w13, [x12]
Lloh21:
	adrp	x12, _RFCOMM_V24_IC@GOTPAGE
Lloh22:
	ldr	x12, [x12, _RFCOMM_V24_IC@GOTPAGEOFF]
	tst	w13, w21
	b.eq	LBB0_8
; %bb.7:
	ldr	w14, [x12]
	ldr	w15, [sp, #12]
	orr	w14, w15, w14
	str	w14, [sp, #12]
LBB0_8:
Lloh23:
	adrp	x14, _TIOCM_CD@GOTPAGE
Lloh24:
	ldr	x14, [x14, _TIOCM_CD@GOTPAGEOFF]
Lloh25:
	ldr	w15, [x14]
Lloh26:
	adrp	x14, _RFCOMM_V24_DV@GOTPAGE
Lloh27:
	ldr	x14, [x14, _RFCOMM_V24_DV@GOTPAGEOFF]
	tst	w15, w21
	b.eq	LBB0_10
; %bb.9:
	ldr	w16, [x14]
	ldr	w17, [sp, #12]
	orr	w16, w17, w16
	str	w16, [sp, #12]
LBB0_10:
	tst	w10, w20
	b.ne	LBB0_12
; %bb.11:
Lloh28:
	adrp	x10, _TIOCM_DTR@GOTPAGE
Lloh29:
	ldr	x10, [x10, _TIOCM_DTR@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	tst	w10, w20
	b.eq	LBB0_13
LBB0_12:
	ldr	w8, [x8]
	ldr	w10, [sp, #12]
	bic	w8, w10, w8
	str	w8, [sp, #12]
LBB0_13:
	tst	w11, w20
	b.ne	LBB0_15
; %bb.14:
Lloh31:
	adrp	x8, _TIOCM_CTS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TIOCM_CTS@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_16
LBB0_15:
	ldr	w8, [x9]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	str	w8, [sp, #12]
LBB0_16:
	tst	w13, w20
	b.eq	LBB0_18
; %bb.17:
	ldr	w8, [x12]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	str	w8, [sp, #12]
LBB0_18:
	tst	w15, w20
	b.eq	LBB0_20
; %bb.19:
	ldr	w8, [x14]
	ldr	w9, [sp, #12]
	bic	w1, w9, w8
	str	w1, [sp, #12]
	b	LBB0_21
LBB0_20:
	ldr	w1, [sp, #12]
LBB0_21:
	mov	x0, x19
	bl	_rfcomm_dlc_set_modem_status
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tty %p dev %p set 0x%02x clear 0x%02x"

	.comm	_TIOCM_DSR,4,2                  ; @TIOCM_DSR
	.comm	_TIOCM_DTR,4,2                  ; @TIOCM_DTR
	.comm	_RFCOMM_V24_RTC,4,2             ; @RFCOMM_V24_RTC
	.comm	_TIOCM_RTS,4,2                  ; @TIOCM_RTS
	.comm	_TIOCM_CTS,4,2                  ; @TIOCM_CTS
	.comm	_RFCOMM_V24_RTR,4,2             ; @RFCOMM_V24_RTR
	.comm	_TIOCM_RI,4,2                   ; @TIOCM_RI
	.comm	_RFCOMM_V24_IC,4,2              ; @RFCOMM_V24_IC
	.comm	_TIOCM_CD,4,2                   ; @TIOCM_CD
	.comm	_RFCOMM_V24_DV,4,2              ; @RFCOMM_V24_DV
	.no_dead_strip	_rfcomm_tty_tiocmset
.subsections_via_symbols
