	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w6692_mode
_w6692_mode:                            ## @w6692_mode
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	24(%rdi), %r12
	movl	4(%r12), %esi
	movl	8(%rdi), %ecx
	movl	16(%rdi), %edx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %r8d
	callq	_pr_debug
	cmpl	$130, %r15d
	je	LBB0_10
## %bb.1:
	cmpl	$129, %r15d
	je	LBB0_8
## %bb.2:
	cmpl	$128, %r15d
	jne	LBB0_11
## %bb.3:
	movq	_pots@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_6
## %bb.4:
	movq	_W_B_MODE_EPCM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_disable_pots
LBB0_6:
	movl	$0, (%rbx)
	movq	%r14, %rdi
	callq	_mISDN_clear_bchannel
	movq	_W_B_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_WriteW6692B
	movq	_W_B_CMDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_W_B_CMDR_RRST@GOTPCREL(%rip), %rax
	movq	_W_B_CMDR_XRST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_WriteW6692B
	movq	_FLG_HDLC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$12, %rbx
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	movq	_FLG_TRANSPARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	jmp	LBB0_7
LBB0_10:
	movq	_W_B_MODE_ITF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, (%rbx)
	movq	_W_B_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_WriteW6692B
	movq	_W_B_ADM1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$255, %edx
	callq	_WriteW6692B
	movq	_W_B_ADM2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$255, %edx
	callq	_WriteW6692B
	movq	_W_B_EXIM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_WriteW6692B
	movq	_W_B_CMDR@GOTPCREL(%rip), %rax
	movq	_W_B_CMDR_RRST@GOTPCREL(%rip), %rcx
	movq	_W_B_CMDR_RACT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_W_B_CMDR_XRST@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_WriteW6692B
	movq	_FLG_HDLC@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_W_B_MODE_MMS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, (%rbx)
	movq	_W_B_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_WriteW6692B
	movq	_W_B_EXIM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_WriteW6692B
	movq	_W_B_CMDR@GOTPCREL(%rip), %rax
	movq	_W_B_CMDR_RRST@GOTPCREL(%rip), %rcx
	movq	_W_B_CMDR_RACT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_W_B_CMDR_XRST@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_WriteW6692B
	movq	_FLG_TRANSPARENT@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %edi
	addq	$12, %rbx
	movq	%rbx, %rsi
	callq	_test_and_set_bit
LBB0_7:
	movl	%r15d, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_11:
	movl	4(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %edx
	callq	_pr_info
	movq	_ENOPROTOOPT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: B%d protocol %x-->%x\n"

	.comm	_pots,4,2                       ## @pots
	.comm	_W_B_MODE_EPCM,4,2              ## @W_B_MODE_EPCM
	.comm	_W_B_MODE,4,2                   ## @W_B_MODE
	.comm	_W_B_CMDR,4,2                   ## @W_B_CMDR
	.comm	_W_B_CMDR_RRST,4,2              ## @W_B_CMDR_RRST
	.comm	_W_B_CMDR_XRST,4,2              ## @W_B_CMDR_XRST
	.comm	_FLG_HDLC,4,2                   ## @FLG_HDLC
	.comm	_FLG_TRANSPARENT,4,2            ## @FLG_TRANSPARENT
	.comm	_W_B_MODE_MMS,4,2               ## @W_B_MODE_MMS
	.comm	_W_B_EXIM,4,2                   ## @W_B_EXIM
	.comm	_W_B_CMDR_RACT,4,2              ## @W_B_CMDR_RACT
	.comm	_W_B_MODE_ITF,4,2               ## @W_B_MODE_ITF
	.comm	_W_B_ADM1,4,2                   ## @W_B_ADM1
	.comm	_W_B_ADM2,4,2                   ## @W_B_ADM2
L_.str.1:                               ## @.str.1
	.asciz	"%s: protocol %x not known\n"

	.comm	_ENOPROTOOPT,4,2                ## @ENOPROTOOPT
	.no_dead_strip	_w6692_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w6692_mode
_w6692_mode:                            ; @w6692_mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x21, x0
	mov	x20, x0
	ldr	w3, [x20, #8]!
	ldr	x22, [x20, #16]
	ldr	w1, [x22, #4]
	ldr	w2, [x20, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x4, x19
	bl	_pr_debug
	cmp	w19, #130
	b.eq	LBB0_7
; %bb.1:
	cmp	w19, #129
	b.eq	LBB0_8
; %bb.2:
	cmp	w19, #128
	b.ne	LBB0_11
; %bb.3:
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _pots@GOTPAGE
Lloh3:
	ldr	x9, [x9, _pots@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	ldr	w8, [x21]
Lloh5:
	adrp	x9, _W_B_MODE_EPCM@GOTPAGE
Lloh6:
	ldr	x9, [x9, _W_B_MODE_EPCM@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_disable_pots
LBB0_6:
	str	wzr, [x21]
	mov	x0, x20
	bl	_mISDN_clear_bchannel
Lloh8:
	adrp	x8, _W_B_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _W_B_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x22, x21
	ldr	w2, [x22], #12
	mov	x0, x21
	bl	_WriteW6692B
Lloh11:
	adrp	x8, _W_B_CMDR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _W_B_CMDR@GOTPAGEOFF]
Lloh13:
	adrp	x9, _W_B_CMDR_RRST@GOTPAGE
Lloh14:
	ldr	x9, [x9, _W_B_CMDR_RRST@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	ldr	w8, [x9]
Lloh17:
	adrp	x9, _W_B_CMDR_XRST@GOTPAGE
Lloh18:
	ldr	x9, [x9, _W_B_CMDR_XRST@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x21
	bl	_WriteW6692B
Lloh20:
	adrp	x8, _FLG_HDLC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FLG_HDLC@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_and_clear_bit
Lloh23:
	adrp	x8, _FLG_TRANSPARENT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FLG_TRANSPARENT@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_and_clear_bit
	b	LBB0_10
LBB0_7:
Lloh26:
	adrp	x8, _W_B_MODE_ITF@GOTPAGE
Lloh27:
	ldr	x8, [x8, _W_B_MODE_ITF@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x22, x21
	str	w2, [x22], #12
Lloh29:
	adrp	x8, _W_B_MODE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _W_B_MODE@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_WriteW6692B
Lloh32:
	adrp	x8, _W_B_ADM1@GOTPAGE
Lloh33:
	ldr	x8, [x8, _W_B_ADM1@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #255
	bl	_WriteW6692B
Lloh35:
	adrp	x8, _W_B_ADM2@GOTPAGE
Lloh36:
	ldr	x8, [x8, _W_B_ADM2@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #255
	bl	_WriteW6692B
Lloh38:
	adrp	x8, _W_B_EXIM@GOTPAGE
Lloh39:
	ldr	x8, [x8, _W_B_EXIM@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_WriteW6692B
Lloh41:
	adrp	x8, _W_B_CMDR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _W_B_CMDR@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
Lloh44:
	adrp	x8, _W_B_CMDR_RRST@GOTPAGE
Lloh45:
	ldr	x8, [x8, _W_B_CMDR_RRST@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
Lloh47:
	adrp	x9, _W_B_CMDR_RACT@GOTPAGE
Lloh48:
	ldr	x9, [x9, _W_B_CMDR_RACT@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh50:
	adrp	x9, _W_B_CMDR_XRST@GOTPAGE
Lloh51:
	ldr	x9, [x9, _W_B_CMDR_XRST@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x21
	bl	_WriteW6692B
Lloh53:
	adrp	x8, _FLG_HDLC@GOTPAGE
Lloh54:
	ldr	x8, [x8, _FLG_HDLC@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh55:
	adrp	x8, _W_B_MODE_MMS@GOTPAGE
Lloh56:
	ldr	x8, [x8, _W_B_MODE_MMS@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	mov	x22, x21
	str	w2, [x22], #12
Lloh58:
	adrp	x8, _W_B_MODE@GOTPAGE
Lloh59:
	ldr	x8, [x8, _W_B_MODE@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_WriteW6692B
Lloh61:
	adrp	x8, _W_B_EXIM@GOTPAGE
Lloh62:
	ldr	x8, [x8, _W_B_EXIM@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_WriteW6692B
Lloh64:
	adrp	x8, _W_B_CMDR@GOTPAGE
Lloh65:
	ldr	x8, [x8, _W_B_CMDR@GOTPAGEOFF]
Lloh66:
	ldr	w1, [x8]
Lloh67:
	adrp	x8, _W_B_CMDR_RRST@GOTPAGE
Lloh68:
	ldr	x8, [x8, _W_B_CMDR_RRST@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
Lloh70:
	adrp	x9, _W_B_CMDR_RACT@GOTPAGE
Lloh71:
	ldr	x9, [x9, _W_B_CMDR_RACT@GOTPAGEOFF]
Lloh72:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh73:
	adrp	x9, _W_B_CMDR_XRST@GOTPAGE
Lloh74:
	ldr	x9, [x9, _W_B_CMDR_XRST@GOTPAGEOFF]
Lloh75:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x21
	bl	_WriteW6692B
Lloh76:
	adrp	x8, _FLG_TRANSPARENT@GOTPAGE
Lloh77:
	ldr	x8, [x8, _FLG_TRANSPARENT@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_and_set_bit
LBB0_10:
	mov	w0, #0
	str	w19, [x20]
	b	LBB0_12
LBB0_11:
	ldr	w1, [x22, #4]
Lloh78:
	adrp	x0, l_.str.1@PAGE
Lloh79:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_pr_info
Lloh80:
	adrp	x8, _ENOPROTOOPT@GOTPAGE
Lloh81:
	ldr	x8, [x8, _ENOPROTOOPT@GOTPAGEOFF]
Lloh82:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpAdd	Lloh78, Lloh79
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: B%d protocol %x-->%x\n"

	.comm	_pots,4,2                       ; @pots
	.comm	_W_B_MODE_EPCM,4,2              ; @W_B_MODE_EPCM
	.comm	_W_B_MODE,4,2                   ; @W_B_MODE
	.comm	_W_B_CMDR,4,2                   ; @W_B_CMDR
	.comm	_W_B_CMDR_RRST,4,2              ; @W_B_CMDR_RRST
	.comm	_W_B_CMDR_XRST,4,2              ; @W_B_CMDR_XRST
	.comm	_FLG_HDLC,4,2                   ; @FLG_HDLC
	.comm	_FLG_TRANSPARENT,4,2            ; @FLG_TRANSPARENT
	.comm	_W_B_MODE_MMS,4,2               ; @W_B_MODE_MMS
	.comm	_W_B_EXIM,4,2                   ; @W_B_EXIM
	.comm	_W_B_CMDR_RACT,4,2              ; @W_B_CMDR_RACT
	.comm	_W_B_MODE_ITF,4,2               ; @W_B_MODE_ITF
	.comm	_W_B_ADM1,4,2                   ; @W_B_ADM1
	.comm	_W_B_ADM2,4,2                   ; @W_B_ADM2
l_.str.1:                               ; @.str.1
	.asciz	"%s: protocol %x not known\n"

	.comm	_ENOPROTOOPT,4,2                ; @ENOPROTOOPT
	.no_dead_strip	_w6692_mode
.subsections_via_symbols
