	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function disconnect_b3_req
_disconnect_b3_req:                     ## @disconnect_b3_req
	.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	%r9, %r12
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	%edi, %r15d
	leaq	L_.str(%rip), %rdi
	callq	_dprintf
	movl	$1, %edi
	movl	%eax, %esi
	callq	_dbug
	movq	__WRONG_IDENTIFIER@GOTPCREL(%rip), %rax
	cmpl	$65536, %r15d                   ## imm = 0x10000
	jb	LBB0_7
## %bb.1:
	testq	%r13, %r13
	je	LBB0_7
## %bb.2:
	movq	%rbx, %rdi
	movq	%r12, %rbx
	movl	%r15d, %esi
	sarl	$16, %esi
	movslq	%esi, %r12
	movq	(%r14), %rax
	movq	(%rax,%r12,8), %rcx
	movq	_CONNECTED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_10
## %bb.3:
	movq	_OUTG_CON_PENDING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_10
## %bb.4:
	movq	_INC_CON_PENDING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_10
## %bb.5:
	movq	_INC_ACT_PENDING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_10
## %bb.6:
	movq	__WRONG_STATE@GOTPCREL(%rip), %rax
	movq	%rdi, %rbx
LBB0_7:
	movq	(%rax), %r9
	movq	__DISCONNECT_B3_R@GOTPCREL(%rip), %rax
	movq	_CONFIRM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	L_.str.1(%rip), %r8
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	movq	%rbx, %rcx
	callq	_sendf
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%esi, %r15d
	movq	_OUTG_DIS_PENDING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax,%r12,8)
	movq	16(%r14), %rax
	movl	(%rax,%r12,4), %esi
	movq	%r13, %rdi
	callq	_channel_request_xon
	movq	%r13, %rdi
	callq	_channel_xmit_xon
	movq	8(%r14), %rax
	cmpq	$0, (%rax,%r12,8)
	je	LBB0_14
## %bb.11:
	movl	(%r13), %eax
	movq	_B3_TRANSPARENT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_18
## %bb.12:
	movq	_B3_T30@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_18
## %bb.13:
	movq	_B3_T30_WITH_EXTENSIONS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_18
LBB0_14:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_cleanup_ncci_data
	movl	(%r13), %eax
	andl	$-2, %eax
	cmpl	$2, %eax
	jne	LBB0_17
## %bb.15:
	movl	(%rbx), %esi
	cmpl	$4, %esi
	jl	LBB0_17
## %bb.16:
	addl	$-3, %esi
	movq	8(%rbx), %rdx
	addq	$16, %rdx
	movq	%r13, %rdi
	callq	_add_d
LBB0_17:
	movq	_N_DISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_nl_req_ncci
	movl	$1, %eax
	jmp	LBB0_9
LBB0_18:
	movl	%r15d, 4(%r13)
	movq	$0, 8(%r13)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disconnect_b3_req"

	.comm	__WRONG_IDENTIFIER,8,3          ## @_WRONG_IDENTIFIER
	.comm	__WRONG_STATE,8,3               ## @_WRONG_STATE
	.comm	_CONNECTED,8,3                  ## @CONNECTED
	.comm	_OUTG_CON_PENDING,8,3           ## @OUTG_CON_PENDING
	.comm	_INC_CON_PENDING,8,3            ## @INC_CON_PENDING
	.comm	_INC_ACT_PENDING,8,3            ## @INC_ACT_PENDING
	.comm	_OUTG_DIS_PENDING,8,3           ## @OUTG_DIS_PENDING
	.comm	_B3_TRANSPARENT,4,2             ## @B3_TRANSPARENT
	.comm	_B3_T30,4,2                     ## @B3_T30
	.comm	_B3_T30_WITH_EXTENSIONS,4,2     ## @B3_T30_WITH_EXTENSIONS
	.comm	_N_DISC,4,2                     ## @N_DISC
	.comm	__DISCONNECT_B3_R,4,2           ## @_DISCONNECT_B3_R
	.comm	_CONFIRM,4,2                    ## @CONFIRM
L_.str.1:                               ## @.str.1
	.asciz	"w"

	.no_dead_strip	_disconnect_b3_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function disconnect_b3_req
_disconnect_b3_req:                     ; @disconnect_b3_req
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x5
	mov	x22, x4
	mov	x19, x3
	mov	x25, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintf
	mov	x1, x0
	mov	w0, #1
	bl	_dbug
Lloh2:
	adrp	x8, __WRONG_IDENTIFIER@GOTPAGE
Lloh3:
	ldr	x8, [x8, __WRONG_IDENTIFIER@GOTPAGEOFF]
	cmp	w23, #16, lsl #12               ; =65536
	b.lo	LBB0_12
; %bb.1:
	cbz	x19, LBB0_12
; %bb.2:
	sbfx	x24, x23, #16, #16
	ldr	x8, [x25]
	ldr	x9, [x8, x24, lsl #3]
Lloh4:
	adrp	x10, _CONNECTED@GOTPAGE
Lloh5:
	ldr	x10, [x10, _CONNECTED@GOTPAGEOFF]
Lloh6:
	adrp	x11, _OUTG_CON_PENDING@GOTPAGE
Lloh7:
	ldr	x11, [x11, _OUTG_CON_PENDING@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	ldr	x11, [x11]
Lloh10:
	adrp	x12, _INC_CON_PENDING@GOTPAGE
Lloh11:
	ldr	x12, [x12, _INC_CON_PENDING@GOTPAGEOFF]
Lloh12:
	adrp	x13, _INC_ACT_PENDING@GOTPAGE
Lloh13:
	ldr	x13, [x13, _INC_ACT_PENDING@GOTPAGEOFF]
Lloh14:
	ldr	x12, [x12]
Lloh15:
	ldr	x13, [x13]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	ccmp	x9, x12, #4, ne
	ccmp	x9, x13, #4, ne
	b.ne	LBB0_11
; %bb.3:
	asr	w21, w23, #16
Lloh16:
	adrp	x9, _OUTG_DIS_PENDING@GOTPAGE
Lloh17:
	ldr	x9, [x9, _OUTG_DIS_PENDING@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	lsl	x22, x24, #3
	str	x9, [x8, x22]
	ldr	x8, [x25, #16]
	ldr	w1, [x8, x24, lsl #2]
	mov	x0, x19
	bl	_channel_request_xon
	mov	x0, x19
	bl	_channel_xmit_xon
	ldr	x8, [x25, #8]
	ldr	x8, [x8, x22]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	w8, [x19]
Lloh19:
	adrp	x9, _B3_TRANSPARENT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _B3_TRANSPARENT@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_14
; %bb.5:
Lloh22:
	adrp	x9, _B3_T30@GOTPAGE
Lloh23:
	ldr	x9, [x9, _B3_T30@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_14
; %bb.6:
Lloh25:
	adrp	x9, _B3_T30_WITH_EXTENSIONS@GOTPAGE
Lloh26:
	ldr	x9, [x9, _B3_T30_WITH_EXTENSIONS@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_14
LBB0_7:
	mov	x0, x19
	mov	x1, x24
	bl	_cleanup_ncci_data
	ldr	w8, [x19]
	and	w8, w8, #0xfffffffe
	cmp	w8, #2
	b.ne	LBB0_10
; %bb.8:
	ldr	w8, [x20]
	cmp	w8, #4
	b.lt	LBB0_10
; %bb.9:
	sub	w1, w8, #3
	ldr	x8, [x20, #8]
	add	x2, x8, #16
	mov	x0, x19
	bl	_add_d
LBB0_10:
Lloh28:
	adrp	x8, _N_DISC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _N_DISC@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_nl_req_ncci
	mov	w0, #1
	b	LBB0_13
LBB0_11:
Lloh31:
	adrp	x8, __WRONG_STATE@GOTPAGE
Lloh32:
	ldr	x8, [x8, __WRONG_STATE@GOTPAGEOFF]
LBB0_12:
Lloh33:
	adrp	x9, __DISCONNECT_B3_R@GOTPAGE
Lloh34:
	ldr	x9, [x9, __DISCONNECT_B3_R@GOTPAGEOFF]
	ldr	x5, [x8]
Lloh35:
	ldr	w8, [x9]
Lloh36:
	adrp	x9, _CONFIRM@GOTPAGE
Lloh37:
	ldr	x9, [x9, _CONFIRM@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh39:
	adrp	x4, l_.str.1@PAGE
Lloh40:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	mov	x3, x21
	bl	_sendf
	mov	w0, #0
LBB0_13:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	w0, #0
	str	w21, [x19, #4]
	str	xzr, [x19, #8]
	b	LBB0_13
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disconnect_b3_req"

	.comm	__WRONG_IDENTIFIER,8,3          ; @_WRONG_IDENTIFIER
	.comm	__WRONG_STATE,8,3               ; @_WRONG_STATE
	.comm	_CONNECTED,8,3                  ; @CONNECTED
	.comm	_OUTG_CON_PENDING,8,3           ; @OUTG_CON_PENDING
	.comm	_INC_CON_PENDING,8,3            ; @INC_CON_PENDING
	.comm	_INC_ACT_PENDING,8,3            ; @INC_ACT_PENDING
	.comm	_OUTG_DIS_PENDING,8,3           ; @OUTG_DIS_PENDING
	.comm	_B3_TRANSPARENT,4,2             ; @B3_TRANSPARENT
	.comm	_B3_T30,4,2                     ; @B3_T30
	.comm	_B3_T30_WITH_EXTENSIONS,4,2     ; @B3_T30_WITH_EXTENSIONS
	.comm	_N_DISC,4,2                     ; @N_DISC
	.comm	__DISCONNECT_B3_R,4,2           ; @_DISCONNECT_B3_R
	.comm	_CONFIRM,4,2                    ; @CONFIRM
l_.str.1:                               ; @.str.1
	.asciz	"w"

	.no_dead_strip	_disconnect_b3_req
.subsections_via_symbols
