	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsr_change
_dsr_change:                            ## @dsr_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_BIT3@GOTPCREL(%rip), %rcx
	movq	_SerialSignal_DSR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testw	%si, (%rcx)
	je	LBB0_2
## %bb.1:
	orl	20(%rbx), %eax
	movl	%eax, 20(%rbx)
	leaq	32(%rbx), %rcx
	jmp	LBB0_3
LBB0_2:
	notl	%eax
	andl	20(%rbx), %eax
	movl	%eax, 20(%rbx)
	leaq	28(%rbx), %rcx
LBB0_3:
	incl	(%rcx)
	movslq	%eax, %rdi
	callq	_DBGISR
	movslq	16(%rbx), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 16(%rbx)
	movq	_IO_PIN_SHUTDOWN_LIMIT@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_4
## %bb.5:
	movq	_IRQ_DSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_slgt_irq_off                   ## TAILCALL
LBB0_4:
	incl	12(%rbx)
	leaq	8(%rbx), %rdi
	callq	_wake_up_interruptible
	leaq	4(%rbx), %rdi
	callq	_wake_up_interruptible
	movq	_BH_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIT3,2,1                       ## @BIT3
	.comm	_SerialSignal_DSR,4,2           ## @SerialSignal_DSR
	.comm	_IO_PIN_SHUTDOWN_LIMIT,8,3      ## @IO_PIN_SHUTDOWN_LIMIT
	.comm	_IRQ_DSR,4,2                    ## @IRQ_DSR
	.comm	_BH_STATUS,4,2                  ## @BH_STATUS
	.no_dead_strip	_dsr_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsr_change
_dsr_change:                            ; @dsr_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, _BIT3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIT3@GOTPAGEOFF]
	ldrh	w9, [x8]
Lloh2:
	adrp	x8, _SerialSignal_DSR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SerialSignal_DSR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w9, w1
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x19, #20]
	orr	w8, w9, w8
	str	w8, [x19, #20]
	add	x9, x19, #32
	b	LBB0_3
LBB0_2:
	ldr	w9, [x19, #20]
	bic	w8, w9, w8
	str	w8, [x19, #20]
	add	x9, x19, #28
LBB0_3:
	ldr	w10, [x9]
	add	w10, w10, #1
	str	w10, [x9]
	sxtw	x0, w8
	bl	_DBGISR
	ldrsw	x8, [x19, #16]
	add	w9, w8, #1
	str	w9, [x19, #16]
Lloh5:
	adrp	x9, _IO_PIN_SHUTDOWN_LIMIT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IO_PIN_SHUTDOWN_LIMIT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _IRQ_DSR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_DSR@GOTPAGEOFF]
Lloh10:
	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, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	add	x0, x19, #8
	bl	_wake_up_interruptible
	add	x0, x19, #4
	bl	_wake_up_interruptible
Lloh11:
	adrp	x8, _BH_STATUS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BH_STATUS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BIT3,2,1                       ; @BIT3
	.comm	_SerialSignal_DSR,4,2           ; @SerialSignal_DSR
	.comm	_IO_PIN_SHUTDOWN_LIMIT,8,3      ; @IO_PIN_SHUTDOWN_LIMIT
	.comm	_IRQ_DSR,4,2                    ; @IRQ_DSR
	.comm	_BH_STATUS,4,2                  ; @BH_STATUS
	.no_dead_strip	_dsr_change
.subsections_via_symbols
