	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dcd_change
_dcd_change:                            ## @dcd_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_get_signals
	movslq	52(%rbx), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 52(%rbx)
	movq	_IO_PIN_SHUTDOWN_LIMIT@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jg	LBB0_2
## %bb.1:
	movq	_CHB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQ_DCD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_irq_disable
LBB0_2:
	incl	48(%rbx)
	movq	_SerialSignal_DCD@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:
	incl	44(%rbx)
	jmp	LBB0_5
LBB0_4:
	incl	40(%rbx)
LBB0_5:
	leaq	24(%rbx), %rdi
	callq	_wake_up_interruptible
	leaq	20(%rbx), %rdi
	callq	_wake_up_interruptible
	movq	_ASYNC_CHECK_CD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_14
## %bb.6:
	movq	_debug_level@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_DEBUG_LEVEL_ISR@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jl	LBB0_8
## %bb.7:
	movl	16(%rbx), %esi
	movl	(%r15), %eax
	andl	(%rbx), %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
LBB0_8:
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	je	LBB0_10
## %bb.9:
	leaq	12(%rbx), %rdi
	callq	_wake_up_interruptible
	jmp	LBB0_14
LBB0_10:
	movq	(%r12), %rax
	cmpq	(%r13), %rax
	jl	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
LBB0_12:
	testq	%r14, %r14
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_tty_hangup
LBB0_14:
	movq	_BH_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IO_PIN_SHUTDOWN_LIMIT,8,3      ## @IO_PIN_SHUTDOWN_LIMIT
	.comm	_CHB,4,2                        ## @CHB
	.comm	_IRQ_DCD,4,2                    ## @IRQ_DCD
	.comm	_SerialSignal_DCD,4,2           ## @SerialSignal_DCD
	.comm	_ASYNC_CHECK_CD,4,2             ## @ASYNC_CHECK_CD
	.comm	_debug_level,8,3                ## @debug_level
	.comm	_DEBUG_LEVEL_ISR,8,3            ## @DEBUG_LEVEL_ISR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s CD now %s..."

L_.str.1:                               ## @.str.1
	.asciz	"on"

L_.str.2:                               ## @.str.2
	.asciz	"off"

L_.str.3:                               ## @.str.3
	.asciz	"doing serial hangup..."

	.comm	_BH_STATUS,4,2                  ## @BH_STATUS
	.no_dead_strip	_dcd_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dcd_change
_dcd_change:                            ; @dcd_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_get_signals
	ldrsw	x8, [x19, #52]
	add	w9, w8, #1
	str	w9, [x19, #52]
Lloh0:
	adrp	x9, _IO_PIN_SHUTDOWN_LIMIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IO_PIN_SHUTDOWN_LIMIT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, x8
	b.gt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _CHB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHB@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _IRQ_DCD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQ_DCD@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_irq_disable
LBB0_2:
	ldr	w8, [x19, #48]
	add	w8, w8, #1
	str	w8, [x19, #48]
	ldr	w8, [x19]
Lloh9:
	adrp	x21, _SerialSignal_DCD@GOTPAGE
Lloh10:
	ldr	x21, [x21, _SerialSignal_DCD@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x19, #44]
	add	w8, w8, #1
	str	w8, [x19, #44]
	b	LBB0_5
LBB0_4:
	ldr	w8, [x19, #40]
	add	w8, w8, #1
	str	w8, [x19, #40]
LBB0_5:
	add	x0, x19, #24
	bl	_wake_up_interruptible
	add	x0, x19, #20
	bl	_wake_up_interruptible
	ldr	w8, [x19, #8]
Lloh11:
	adrp	x9, _ASYNC_CHECK_CD@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ASYNC_CHECK_CD@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.6:
Lloh14:
	adrp	x22, _debug_level@GOTPAGE
Lloh15:
	ldr	x22, [x22, _debug_level@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh16:
	adrp	x23, _DEBUG_LEVEL_ISR@GOTPAGE
Lloh17:
	ldr	x23, [x23, _DEBUG_LEVEL_ISR@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.lt	LBB0_8
; %bb.7:
	ldr	w8, [x19]
Lloh18:
	adrp	x9, l_.str.1@PAGE
Lloh19:
	add	x9, x9, l_.str.1@PAGEOFF
	ldr	w10, [x21]
Lloh20:
	adrp	x11, l_.str.2@PAGE
Lloh21:
	add	x11, x11, l_.str.2@PAGEOFF
	tst	w10, w8
	csel	x8, x11, x9, eq
	ldr	w9, [x19, #16]
	stp	x9, x8, [sp]
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
LBB0_8:
	ldr	w8, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	add	x0, x19, #12
	bl	_wake_up_interruptible
	b	LBB0_14
LBB0_10:
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	b.lt	LBB0_12
; %bb.11:
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printk
LBB0_12:
	cbz	x20, LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_tty_hangup
LBB0_14:
Lloh26:
	adrp	x8, _BH_STATUS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BH_STATUS@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_IO_PIN_SHUTDOWN_LIMIT,8,3      ; @IO_PIN_SHUTDOWN_LIMIT
	.comm	_CHB,4,2                        ; @CHB
	.comm	_IRQ_DCD,4,2                    ; @IRQ_DCD
	.comm	_SerialSignal_DCD,4,2           ; @SerialSignal_DCD
	.comm	_ASYNC_CHECK_CD,4,2             ; @ASYNC_CHECK_CD
	.comm	_debug_level,8,3                ; @debug_level
	.comm	_DEBUG_LEVEL_ISR,8,3            ; @DEBUG_LEVEL_ISR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s CD now %s..."

l_.str.1:                               ; @.str.1
	.asciz	"on"

l_.str.2:                               ; @.str.2
	.asciz	"off"

l_.str.3:                               ; @.str.3
	.asciz	"doing serial hangup..."

	.comm	_BH_STATUS,4,2                  ; @BH_STATUS
	.no_dead_strip	_dcd_change
.subsections_via_symbols
