	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cts_change
_cts_change:                            ## @cts_change
	.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
	movq	%rdi, %rbx
	movq	_BIT2@GOTPCREL(%rip), %rcx
	movq	_SerialSignal_CTS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testw	%si, (%rcx)
	je	LBB0_2
## %bb.1:
	orl	(%rbx), %eax
	movl	%eax, (%rbx)
	incl	52(%rbx)
	jmp	LBB0_3
LBB0_2:
	notl	%eax
	andl	(%rbx), %eax
	movl	%eax, (%rbx)
	incl	48(%rbx)
LBB0_3:
	movslq	%eax, %rdi
	callq	_DBGISR
	movslq	40(%rbx), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 40(%rbx)
	movq	_IO_PIN_SHUTDOWN_LIMIT@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_4
## %bb.12:
	movq	_IRQ_CTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_slgt_irq_off                   ## TAILCALL
LBB0_4:
	incl	36(%rbx)
	leaq	32(%rbx), %rdi
	callq	_wake_up_interruptible
	leaq	28(%rbx), %rdi
	callq	_wake_up_interruptible
	movq	_BH_STATUS@GOTPCREL(%rip), %rcx
	movl	24(%rbx), %eax
	orl	(%rcx), %eax
	movl	%eax, 24(%rbx)
	movq	_ASYNC_CTS_FLOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rbx)
	je	LBB0_11
## %bb.5:
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.6:
	movl	(%r14), %edx
	andl	(%rbx), %edx
	cmpl	$0, (%rcx)
	je	LBB0_9
## %bb.7:
	testl	%edx, %edx
	je	LBB0_11
## %bb.8:
	movl	$0, (%rcx)
	movq	_BH_TRANSMIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 24(%rbx)
	jmp	LBB0_11
LBB0_9:
	testl	%edx, %edx
	jne	LBB0_11
## %bb.10:
	movl	$1, (%rcx)
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIT2,2,1                       ## @BIT2
	.comm	_SerialSignal_CTS,4,2           ## @SerialSignal_CTS
	.comm	_IO_PIN_SHUTDOWN_LIMIT,8,3      ## @IO_PIN_SHUTDOWN_LIMIT
	.comm	_IRQ_CTS,4,2                    ## @IRQ_CTS
	.comm	_BH_STATUS,4,2                  ## @BH_STATUS
	.comm	_ASYNC_CTS_FLOW,4,2             ## @ASYNC_CTS_FLOW
	.comm	_BH_TRANSMIT,4,2                ## @BH_TRANSMIT
	.no_dead_strip	_cts_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cts_change
_cts_change:                            ; @cts_change
	.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, x0
Lloh0:
	adrp	x8, _BIT2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIT2@GOTPAGEOFF]
	ldrh	w9, [x8]
Lloh2:
	adrp	x20, _SerialSignal_CTS@GOTPAGE
Lloh3:
	ldr	x20, [x20, _SerialSignal_CTS@GOTPAGEOFF]
	ldr	w8, [x20]
	tst	w9, w1
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w9, [x19, #52]
	add	w9, w9, #1
	str	w9, [x19, #52]
	b	LBB0_3
LBB0_2:
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	ldr	w9, [x19, #48]
	add	w9, w9, #1
	str	w9, [x19, #48]
LBB0_3:
	sxtw	x0, w8
	bl	_DBGISR
	ldrsw	x8, [x19, #40]
	add	w9, w8, #1
	str	w9, [x19, #40]
Lloh4:
	adrp	x9, _IO_PIN_SHUTDOWN_LIMIT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IO_PIN_SHUTDOWN_LIMIT@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _IRQ_CTS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IRQ_CTS@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_slgt_irq_off
LBB0_5:
	ldr	w8, [x19, #36]
	add	w8, w8, #1
	str	w8, [x19, #36]
	add	x0, x19, #32
	bl	_wake_up_interruptible
	add	x0, x19, #28
	bl	_wake_up_interruptible
Lloh10:
	adrp	x8, _BH_STATUS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BH_STATUS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
	ldr	w9, [x19, #8]
Lloh13:
	adrp	x10, _ASYNC_CTS_FLOW@GOTPAGE
Lloh14:
	ldr	x10, [x10, _ASYNC_CTS_FLOW@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_12
; %bb.6:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_12
; %bb.7:
	ldr	w11, [x9]
	ldr	w10, [x19]
	ldr	w12, [x20]
	and	w10, w12, w10
	cbz	w11, LBB0_10
; %bb.8:
	cbz	w10, LBB0_12
; %bb.9:
	str	wzr, [x9]
Lloh16:
	adrp	x9, _BH_TRANSMIT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _BH_TRANSMIT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #24]
	b	LBB0_12
LBB0_10:
	cbnz	w10, LBB0_12
; %bb.11:
	mov	w8, #1
	str	w8, [x9]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_BIT2,2,1                       ; @BIT2
	.comm	_SerialSignal_CTS,4,2           ; @SerialSignal_CTS
	.comm	_IO_PIN_SHUTDOWN_LIMIT,8,3      ; @IO_PIN_SHUTDOWN_LIMIT
	.comm	_IRQ_CTS,4,2                    ; @IRQ_CTS
	.comm	_BH_STATUS,4,2                  ; @BH_STATUS
	.comm	_ASYNC_CTS_FLOW,4,2             ; @ASYNC_CTS_FLOW
	.comm	_BH_TRANSMIT,4,2                ; @BH_TRANSMIT
	.no_dead_strip	_cts_change
.subsections_via_symbols
