	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mISDN_ctrl_bchannel            ## -- Begin function mISDN_ctrl_bchannel
	.p2align	4, 0x90
_mISDN_ctrl_bchannel:                   ## @mISDN_ctrl_bchannel
	.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
	movl	(%rsi), %eax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	ja	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movl	(%rbx), %eax
	movl	%eax, 8(%rsi)
	leaq	20(%rbx), %rax
	cmpl	$0, 4(%rsi)
	movq	_FLG_RX_OFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	je	LBB0_13
## %bb.3:
	callq	_test_and_set_bit
	jmp	LBB0_14
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_info
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_5:
	movl	8(%rsi), %ecx
	movq	_MISDN_CTRL_RX_SIZE_IGNORE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jle	LBB0_7
## %bb.6:
	movl	%ecx, 4(%rbx)
LBB0_7:
	movl	4(%rsi), %ecx
	cmpl	%eax, %ecx
	jle	LBB0_9
## %bb.8:
	movl	%ecx, 8(%rbx)
LBB0_9:
	movl	12(%rbx), %eax
	movl	%eax, 4(%rsi)
	movl	16(%rbx), %eax
	movl	%eax, 8(%rsi)
	jmp	LBB0_16
LBB0_10:
	movl	$131, (%rsi)
	jmp	LBB0_16
LBB0_11:
	cmpl	$0, 4(%rsi)
	je	LBB0_15
## %bb.12:
	movl	24(%rbx), %edi
	movzbl	8(%rsi), %esi
	movq	_MISDN_BCH_FILL_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memset
	movq	_FLG_FILLEMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$20, %rbx
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	jmp	LBB0_16
LBB0_13:
	callq	_test_and_clear_bit
LBB0_14:
	movl	$0, (%rbx)
	jmp	LBB0_16
LBB0_15:
	movq	_FLG_FILLEMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$20, %rbx
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_10
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_MISDN_BCH_FILL_SIZE,4,2        ## @MISDN_BCH_FILL_SIZE
	.comm	_FLG_FILLEMPTY,4,2              ## @FLG_FILLEMPTY
	.comm	_FLG_RX_OFF,4,2                 ## @FLG_RX_OFF
	.comm	_MISDN_CTRL_RX_SIZE_IGNORE,4,2  ## @MISDN_CTRL_RX_SIZE_IGNORE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mISDN unhandled control %x operation\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mISDN_ctrl_bchannel            ; -- Begin function mISDN_ctrl_bchannel
	.p2align	2
_mISDN_ctrl_bchannel:                   ; @mISDN_ctrl_bchannel
	.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	w8, [x1]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hi	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, lJTI0_0@PAGE
Lloh1:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x8, x19
	ldr	w9, [x8], #20
	str	w9, [x1, #8]
	ldr	w9, [x1, #4]
Lloh2:
	adrp	x10, _FLG_RX_OFF@GOTPAGE
Lloh3:
	ldr	x10, [x10, _FLG_RX_OFF@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x10]
	mov	x1, x8
	cbz	w9, LBB0_13
; %bb.3:
	bl	_test_and_set_bit
	b	LBB0_14
LBB0_4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	bl	_pr_info
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_5:
	ldr	w9, [x1, #8]
Lloh10:
	adrp	x8, _MISDN_CTRL_RX_SIZE_IGNORE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MISDN_CTRL_RX_SIZE_IGNORE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w9, w8
	b.le	LBB0_7
; %bb.6:
	str	w9, [x19, #4]
LBB0_7:
	ldr	w9, [x1, #4]
	cmp	w9, w8
	b.le	LBB0_9
; %bb.8:
	str	w9, [x19, #8]
LBB0_9:
	mov	w0, #0
	ldur	d0, [x19, #12]
	stur	d0, [x1, #4]
	b	LBB0_17
LBB0_10:
	mov	w0, #0
	mov	w8, #131
	str	w8, [x1]
	b	LBB0_17
LBB0_11:
	ldr	w8, [x1, #4]
	cbz	w8, LBB0_15
; %bb.12:
	ldr	w0, [x19, #24]
	ldrb	w1, [x1, #8]
Lloh13:
	adrp	x8, _MISDN_BCH_FILL_SIZE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MISDN_BCH_FILL_SIZE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	bl	_memset
Lloh16:
	adrp	x8, _FLG_FILLEMPTY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FLG_FILLEMPTY@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	add	x1, x19, #20
	bl	_test_and_set_bit
	b	LBB0_16
LBB0_13:
	bl	_test_and_clear_bit
LBB0_14:
	mov	w0, #0
	str	wzr, [x19]
	b	LBB0_17
LBB0_15:
Lloh19:
	adrp	x8, _FLG_FILLEMPTY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FLG_FILLEMPTY@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	add	x1, x19, #20
	bl	_test_and_clear_bit
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_MISDN_BCH_FILL_SIZE,4,2        ; @MISDN_BCH_FILL_SIZE
	.comm	_FLG_FILLEMPTY,4,2              ; @FLG_FILLEMPTY
	.comm	_FLG_RX_OFF,4,2                 ; @FLG_RX_OFF
	.comm	_MISDN_CTRL_RX_SIZE_IGNORE,4,2  ; @MISDN_CTRL_RX_SIZE_IGNORE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mISDN unhandled control %x operation\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
