	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bchannel_down
_bchannel_down:                         ## @bchannel_down
	.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
	movl	(%rdi), %eax
	movq	_CHS_B_UP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_2
## %bb.1:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	_ISDN_STAT_BHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_gigaset_i4l_channel_cmd
	movl	(%rbx), %eax
LBB0_2:
	movq	_CHS_D_UP@GOTPCREL(%rip), %rdx
	movq	_CHS_NOTIFY_LL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	je	LBB0_4
## %bb.3:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	_ISDN_STAT_DHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_gigaset_i4l_channel_cmd
LBB0_4:
	movq	%rbx, %rdi
	callq	_gigaset_free_channel
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_gigaset_bcs_reinit             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CHS_B_UP,4,2                   ## @CHS_B_UP
	.comm	_ISDN_STAT_BHUP,4,2             ## @ISDN_STAT_BHUP
	.comm	_CHS_D_UP,4,2                   ## @CHS_D_UP
	.comm	_CHS_NOTIFY_LL,4,2              ## @CHS_NOTIFY_LL
	.comm	_ISDN_STAT_DHUP,4,2             ## @ISDN_STAT_DHUP
	.no_dead_strip	_bchannel_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bchannel_down
_bchannel_down:                         ; @bchannel_down
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _CHS_B_UP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHS_B_UP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	bic	w8, w8, w9
	str	w8, [x19]
Lloh3:
	adrp	x8, _ISDN_STAT_BHUP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISDN_STAT_BHUP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gigaset_i4l_channel_cmd
	ldr	w8, [x19]
LBB0_2:
Lloh6:
	adrp	x9, _CHS_D_UP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CHS_D_UP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _CHS_NOTIFY_LL@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CHS_NOTIFY_LL@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	bic	w8, w8, w9
	str	w8, [x19]
Lloh12:
	adrp	x8, _ISDN_STAT_DHUP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ISDN_STAT_DHUP@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gigaset_i4l_channel_cmd
LBB0_4:
	mov	x0, x19
	bl	_gigaset_free_channel
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gigaset_bcs_reinit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CHS_B_UP,4,2                   ; @CHS_B_UP
	.comm	_ISDN_STAT_BHUP,4,2             ; @ISDN_STAT_BHUP
	.comm	_CHS_D_UP,4,2                   ; @CHS_D_UP
	.comm	_CHS_NOTIFY_LL,4,2              ; @CHS_NOTIFY_LL
	.comm	_ISDN_STAT_DHUP,4,2             ; @ISDN_STAT_DHUP
	.no_dead_strip	_bchannel_down
.subsections_via_symbols
