	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gigaset_m10x_input             ## -- Begin function gigaset_m10x_input
	.p2align	4, 0x90
_gigaset_m10x_input:                    ## @gigaset_m10x_input
	.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	%rdi, %r12
	movl	(%rdi), %r14d
	movl	4(%rdi), %ebx
	movq	_DEBUG_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_gig_dbg
	cmpl	%ebx, %r14d
	je	LBB0_37
## %bb.1:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jbe	LBB0_3
## %bb.2:
	movq	_RBUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_3:
	movq	8(%r12), %r13
	movq	32(%r12), %r15
	movq	_DEBUG_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	subl	%r14d, %edx
	xorl	%eax, %eax
	callq	_gig_dbg
	subl	%r14d, %ebx
	je	LBB0_36
## %bb.4:
	addq	%r14, %r13
	movq	_INS_command@GOTPCREL(%rip), %rsi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%ebx, %ebx
	je	LBB0_36
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	_MS_LOCKED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_lock_loop
	movq	_INS_command@GOTPCREL(%rip), %rsi
	cltq
	addq	%rax, %r13
	subl	%eax, %ebx
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movzbl	(%r13), %edx
	incq	%r13
	decl	%ebx
	movq	_DLE_FLAG@GOTPCREL(%rip), %rax
	cmpb	(%rax), %dl
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 16(%r15)
	movl	16(%r12), %eax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_INS_DLE_command@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_INS_DLE_char@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, 16(%r12)
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	16(%r12), %eax
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_INS_DLE_char@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_15
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, 16(%r12)
	cmpb	$46, %dl
	je	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$88, %dl
	jne	LBB0_29
## %bb.23:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rsi), %ecx
	testl	%eax, %ecx
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_warn
	movq	_INS_command@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ecx
	movl	16(%r12), %eax
LBB0_25:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_INS_DLE_command@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	orl	%eax, %ecx
	movl	%ecx, 16(%r12)
	jmp	LBB0_31
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%eax, (%rsi)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, %edi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movq	%r12, %rcx
	callq	_cmd_loop
	jmp	LBB0_20
LBB0_26:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rsi), %ecx
	testl	%eax, %ecx
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_warn
	movq	_INS_command@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ecx
	movl	16(%r12), %eax
LBB0_28:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 16(%r15)
	movl	$0, %edx
	cmovel	%edx, %ecx
	movq	_INS_DLE_command@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, 16(%r12)
	jmp	LBB0_31
LBB0_29:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_30
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movq	_ISDN_PROTO_L2_HDLC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, %edi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movq	%r12, %rcx
	callq	_hdlc_loop
	jmp	LBB0_20
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, %edi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movq	%r12, %rcx
	callq	_iraw_loop
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	cltq
	addq	%rax, %r13
	subl	%eax, %ebx
LBB0_30:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_INS_command@GOTPCREL(%rip), %rsi
LBB0_31:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_35
## %bb.32:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, %r14d
	jbe	LBB0_33
## %bb.34:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r12), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_35
LBB0_33:
	movl	%ebx, %r14d
LBB0_36:
	movq	_DEBUG_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_gig_dbg
	movl	%r14d, (%r12)
LBB0_37:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_INTR,4,2                 ## @DEBUG_INTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"buffer state: %u -> %u"

	.comm	_RBUFSIZE,4,2                   ## @RBUFSIZE
L_.str.1:                               ## @.str.1
	.asciz	"processing %u bytes"

	.comm	_MS_LOCKED,8,3                  ## @MS_LOCKED
	.comm	_DLE_FLAG,1,0                   ## @DLE_FLAG
	.comm	_INS_DLE_command,4,2            ## @INS_DLE_command
	.comm	_INS_DLE_char,4,2               ## @INS_DLE_char
	.comm	_INS_command,4,2                ## @INS_command
	.comm	_ISDN_PROTO_L2_HDLC,8,3         ## @ISDN_PROTO_L2_HDLC
L_.str.2:                               ## @.str.2
	.asciz	"received <DLE> 'X' in command mode\n"

L_.str.3:                               ## @.str.3
	.asciz	"received <DLE> '.' in hdlc mode\n"

L_.str.4:                               ## @.str.4
	.asciz	"received 0x10 0x%02x!\n"

L_.str.5:                               ## @.str.5
	.asciz	"setting head to %u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gigaset_m10x_input             ; -- Begin function gigaset_m10x_input
	.p2align	2
_gigaset_m10x_input:                    ; @gigaset_m10x_input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldp	w20, w27, [x0]
Lloh0:
	adrp	x23, _DEBUG_INTR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DEBUG_INTR@GOTPAGEOFF]
	ldr	w0, [x23]
	str	x27, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_gig_dbg
	cmp	w20, w27
	b.eq	LBB0_33
; %bb.1:
	ldr	x28, [x19, #32]
Lloh4:
	adrp	x8, _RBUFSIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RBUFSIZE@GOTPAGEOFF]
	ldr	x22, [x19, #8]
Lloh6:
	ldr	w8, [x8]
	cmp	w20, w27
	csel	w8, w8, w27, hi
	sub	w21, w8, w20
	ldr	w0, [x23]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_gig_dbg
	cbz	w21, LBB0_32
; %bb.2:
	add	x22, x22, x20
Lloh9:
	adrp	x23, _MS_LOCKED@GOTPAGE
Lloh10:
	ldr	x23, [x23, _MS_LOCKED@GOTPAGEOFF]
Lloh11:
	adrp	x24, _DLE_FLAG@GOTPAGE
Lloh12:
	ldr	x24, [x24, _DLE_FLAG@GOTPAGEOFF]
Lloh13:
	adrp	x25, _INS_DLE_char@GOTPAGE
Lloh14:
	ldr	x25, [x25, _INS_DLE_char@GOTPAGEOFF]
Lloh15:
	adrp	x26, _INS_command@GOTPAGE
Lloh16:
	ldr	x26, [x26, _INS_command@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	w21, LBB0_32
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_lock_loop
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, w0, sxtw
	sub	w21, w21, w0
	cbnz	w21, LBB0_3
	b	LBB0_26
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w2, [x22], #1
	sub	w21, w21, #1
	ldrb	w8, [x24]
	cmp	w2, w8
	b.ne	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x28, #16]
	ldr	w8, [x19, #16]
	cbnz	x9, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh17:
	adrp	x9, _INS_DLE_command@GOTPAGE
Lloh18:
	ldr	x9, [x9, _INS_DLE_command@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	bic	w8, w8, w9
	str	w8, [x19, #16]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #16]
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	bic	w8, w8, w9
	str	w8, [x19, #16]
	cmp	w2, #46
	b.eq	LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w2, #88
	b.ne	LBB0_25
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x28, #8]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
	ldr	w9, [x26]
	ldr	w8, [x19, #16]
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh22:
	adrp	x10, _INS_DLE_command@GOTPAGE
Lloh23:
	ldr	x10, [x10, _INS_DLE_command@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	orr	w9, w10, w9
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	orr	w8, w9, w8
	str	w8, [x19, #16]
	cbnz	w21, LBB0_3
	b	LBB0_26
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_28
; %bb.21:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x2
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	bl	_cmd_loop
	b	LBB0_6
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x26]
	tst	w9, w8
	b.ne	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x28, #8]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_warn
	ldr	w9, [x26]
	ldr	w8, [x19, #16]
LBB0_24:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x28, #16]
Lloh27:
	adrp	x11, _INS_DLE_command@GOTPAGE
Lloh28:
	ldr	x11, [x11, _INS_DLE_command@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w9, w9, w11
	bic	w8, w8, w9
	str	w8, [x19, #16]
	cbnz	w21, LBB0_3
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x28, #8]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	cbnz	w21, LBB0_3
LBB0_26:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w20, w27
	b.ls	LBB0_31
; %bb.27:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w20, #0
	ldr	x22, [x19, #8]
	mov	x21, x27
	b	LBB0_3
LBB0_28:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
Lloh32:
	adrp	x9, _ISDN_PROTO_L2_HDLC@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ISDN_PROTO_L2_HDLC@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	mov	x0, x2
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	cmp	x8, x9
	b.ne	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_4 Depth=1
	bl	_hdlc_loop
	b	LBB0_6
LBB0_30:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_iraw_loop
	b	LBB0_6
LBB0_31:
	mov	x20, x27
LBB0_32:
Lloh35:
	adrp	x8, _DEBUG_INTR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _DEBUG_INTR@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x1, l_.str.5@PAGE
Lloh39:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x20
	bl	_gig_dbg
	str	w20, [x19]
LBB0_33:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_INTR,4,2                 ; @DEBUG_INTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"buffer state: %u -> %u"

	.comm	_RBUFSIZE,4,2                   ; @RBUFSIZE
l_.str.1:                               ; @.str.1
	.asciz	"processing %u bytes"

	.comm	_MS_LOCKED,8,3                  ; @MS_LOCKED
	.comm	_DLE_FLAG,1,0                   ; @DLE_FLAG
	.comm	_INS_DLE_command,4,2            ; @INS_DLE_command
	.comm	_INS_DLE_char,4,2               ; @INS_DLE_char
	.comm	_INS_command,4,2                ; @INS_command
	.comm	_ISDN_PROTO_L2_HDLC,8,3         ; @ISDN_PROTO_L2_HDLC
l_.str.2:                               ; @.str.2
	.asciz	"received <DLE> 'X' in command mode\n"

l_.str.3:                               ; @.str.3
	.asciz	"received <DLE> '.' in hdlc mode\n"

l_.str.4:                               ; @.str.4
	.asciz	"received 0x10 0x%02x!\n"

l_.str.5:                               ; @.str.5
	.asciz	"setting head to %u"

.subsections_via_symbols
