	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gigaset_isoc_input             ## -- Begin function gigaset_isoc_input
	.p2align	4, 0x90
_gigaset_isoc_input:                    ## @gigaset_isoc_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
	movl	(%rdi), %ebx
	movl	4(%rdi), %r14d
	cmpl	%r14d, %ebx
	jne	LBB0_1
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r13
	movq	16(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_DEBUG_INTR@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_DEBUG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	movq	%r12, %rcx
	callq	_gigaset_dbg_buffer
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	callq	_cmd_loop
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r15
	movq	_RBUFSIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	movl	%r14d, %ebx
	movl	$0, %eax
	cmovel	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_gig_dbg
	movl	%ebx, (%r13)
	movl	4(%r13), %r14d
	cmpl	%r14d, %ebx
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_gig_dbg
	cmpl	%r14d, %ebx
	movq	%r15, %rax
	jbe	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_RBUFSIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %r12d
	addq	8(%r13), %r12
	movl	%r14d, %r15d
	subl	%ebx, %r15d
	movq	%rax, %rbx
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_gig_dbg
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_MS_LOCKED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_DEBUG_LOCKCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	movq	%r12, %rcx
	callq	_gigaset_dbg_buffer
	movq	16(%r13), %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_gigaset_if_receive
	jmp	LBB0_7
	.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	_DEBUG_LOCKCMD,4,2              ## @DEBUG_LOCKCMD
L_.str.2:                               ## @.str.2
	.asciz	"received response"

	.comm	_DEBUG_CMD,4,2                  ## @DEBUG_CMD
L_.str.3:                               ## @.str.3
	.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_isoc_input             ; -- Begin function gigaset_isoc_input
	.p2align	2
_gigaset_isoc_input:                    ; @gigaset_isoc_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
	ldp	w24, w20, [x0]
	cmp	w24, w20
	b.ne	LBB0_2
LBB0_1:
	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
LBB0_2:
	mov	x19, x0
	ldr	x26, [x0, #16]
Lloh0:
	adrp	x27, _DEBUG_INTR@GOTPAGE
Lloh1:
	ldr	x27, [x27, _DEBUG_INTR@GOTPAGEOFF]
Lloh2:
	adrp	x28, _RBUFSIZE@GOTPAGE
Lloh3:
	ldr	x28, [x28, _RBUFSIZE@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str.1@PAGE
Lloh5:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh6:
	adrp	x22, l_.str.2@PAGE
Lloh7:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh8:
	adrp	x23, l_.str.3@PAGE
Lloh9:
	add	x23, x23, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh10:
	adrp	x8, _DEBUG_CMD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DEBUG_CMD@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x22
	mov	x2, x24
	mov	x3, x25
	bl	_gigaset_dbg_buffer
	mov	x0, x25
	mov	x1, x24
	mov	x2, x19
	bl	_cmd_loop
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x28]
	cmp	w20, w8
	csel	w24, wzr, w20, eq
	ldr	w0, [x27]
	mov	x1, x23
	mov	x2, x24
	bl	_gig_dbg
	str	w24, [x19]
	ldr	w20, [x19, #4]
	cmp	w24, w20
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x27]
	str	x20, [sp]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	_gig_dbg
	ldr	w8, [x28]
	cmp	w24, w20
	csel	w20, w8, w20, hi
	ldr	x8, [x19, #8]
	add	x25, x8, w24, uxtw
	sub	w24, w20, w24
	ldr	w0, [x27]
	mov	x1, x21
	mov	x2, x24
	bl	_gig_dbg
	ldr	x8, [x26]
Lloh15:
	adrp	x9, _MS_LOCKED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MS_LOCKED@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh18:
	adrp	x8, _DEBUG_LOCKCMD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DEBUG_LOCKCMD@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x22
	mov	x2, x24
	mov	x3, x25
	bl	_gigaset_dbg_buffer
	ldr	x0, [x19, #16]
	mov	x1, x25
	mov	x2, x24
	bl	_gigaset_if_receive
	b	LBB0_4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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	_DEBUG_LOCKCMD,4,2              ; @DEBUG_LOCKCMD
l_.str.2:                               ; @.str.2
	.asciz	"received response"

	.comm	_DEBUG_CMD,4,2                  ; @DEBUG_CMD
l_.str.3:                               ; @.str.3
	.asciz	"setting head to %u"

.subsections_via_symbols
