	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isdn_tty_hangup
_isdn_tty_hangup:                       ## @isdn_tty_hangup
	.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	8(%rdi), %rbx
	movl	(%rdi), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_isdn_tty_paranoia_check
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	callq	_isdn_tty_shutdown
	movq	$0, 16(%rbx)
	movq	_ISDN_ASYNC_NORMAL_ACTIVE@GOTPCREL(%rip), %rax
	movq	_ISDN_ASYNC_CALLOUT_ACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%rbx)
	movq	$0, 8(%rbx)
	addq	$4, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wake_up_interruptible          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"isdn_tty_hangup"

	.comm	_ISDN_ASYNC_NORMAL_ACTIVE,4,2   ## @ISDN_ASYNC_NORMAL_ACTIVE
	.comm	_ISDN_ASYNC_CALLOUT_ACTIVE,4,2  ## @ISDN_ASYNC_CALLOUT_ACTIVE
	.no_dead_strip	_isdn_tty_hangup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isdn_tty_hangup
_isdn_tty_hangup:                       ; @isdn_tty_hangup
	.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
	ldr	x19, [x0, #8]
	ldr	w1, [x0]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_isdn_tty_paranoia_check
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x0, x19
	bl	_isdn_tty_shutdown
Lloh2:
	adrp	x8, _ISDN_ASYNC_NORMAL_ACTIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ISDN_ASYNC_NORMAL_ACTIVE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _ISDN_ASYNC_CALLOUT_ACTIVE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ISDN_ASYNC_CALLOUT_ACTIVE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	stp	xzr, xzr, [x19, #8]
	add	x0, x19, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wake_up_interruptible
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"isdn_tty_hangup"

	.comm	_ISDN_ASYNC_NORMAL_ACTIVE,4,2   ; @ISDN_ASYNC_NORMAL_ACTIVE
	.comm	_ISDN_ASYNC_CALLOUT_ACTIVE,4,2  ; @ISDN_ASYNC_CALLOUT_ACTIVE
	.no_dead_strip	_isdn_tty_hangup
.subsections_via_symbols
