	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gigaset_get_channels           ## -- Begin function gigaset_get_channels
	.p2align	4, 0x90
_gigaset_get_channels:                  ## @gigaset_get_channels
	.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
	movq	%rdi, %rbx
	leaq	4(%rdi), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %eax
	movl	$1, %r14d
	leaq	L_.str.1(%rip), %r15
	testl	%eax, %eax
	jle	LBB0_14
## %bb.1:
	movq	8(%rbx), %rcx
	xorl	%edx, %edx
	leaq	L_.str(%rip), %rsi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rdx,8)
	jne	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_2
## %bb.4:
	movq	8(%rbx), %rcx
	cmpl	$4, %eax
	jae	LBB0_6
## %bb.5:
	xorl	%edx, %edx
	jmp	LBB0_13
LBB0_15:
	movq	%rsi, %r15
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_6:
	movl	%eax, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rsi
	movq	%rsi, %rbx
	shrq	$2, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	andq	$-2, %rdi
	xorl	%esi, %esi
	pcmpeqd	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rsi,8), %xmm1
	movdqu	16(%rcx,%rsi,8), %xmm2
	movdqu	32(%rcx,%rsi,8), %xmm3
	movdqu	48(%rcx,%rsi,8), %xmm4
	psubq	%xmm0, %xmm1
	psubq	%xmm0, %xmm2
	movdqu	%xmm1, (%rcx,%rsi,8)
	movdqu	%xmm2, 16(%rcx,%rsi,8)
	psubq	%xmm0, %xmm3
	psubq	%xmm0, %xmm4
	movdqu	%xmm3, 32(%rcx,%rsi,8)
	movdqu	%xmm4, 48(%rcx,%rsi,8)
	addq	$8, %rsi
	addq	$-2, %rdi
	jne	LBB0_9
## %bb.10:
	testb	$1, %bl
	je	LBB0_12
LBB0_11:
	movdqu	(%rcx,%rsi,8), %xmm0
	movdqu	16(%rcx,%rsi,8), %xmm1
	pcmpeqd	%xmm2, %xmm2
	psubq	%xmm2, %xmm0
	psubq	%xmm2, %xmm1
	movdqu	%xmm0, (%rcx,%rsi,8)
	movdqu	%xmm1, 16(%rcx,%rsi,8)
LBB0_12:
	cmpq	%rax, %rdx
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	incq	(%rcx,%rdx,8)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_13
LBB0_14:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	_DEBUG_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_gig_dbg
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%esi, %esi
	testb	$1, %bl
	jne	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_ANY,4,2                  ## @DEBUG_ANY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not allocate all channels"

L_.str.1:                               ## @.str.1
	.asciz	"allocated all channels"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gigaset_get_channels           ; -- Begin function gigaset_get_channels
	.p2align	2
_gigaset_get_channels:                  ; @gigaset_get_channels
	.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	x21, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	ldr	x9, [x21, #8]
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
	mov	x10, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cbnz	x11, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #8
	subs	x10, x10, #1
	b.ne	LBB0_2
; %bb.4:
	ldr	x9, [x21, #8]
	cmp	w8, #8
	b.hs	LBB0_7
; %bb.5:
	mov	x10, #0
	b	LBB0_11
LBB0_6:
	mov	w21, #0
	b	LBB0_14
LBB0_7:
	and	x10, x8, #0xfffffff8
	add	x11, x9, #32
	mov	w12, #1
	dup.2d	v0, x12
	mov	x12, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x11, #-32]
	ldp	q3, q4, [x11]
	add.2d	v1, v1, v0
	add.2d	v2, v2, v0
	add.2d	v3, v3, v0
	add.2d	v4, v4, v0
	stp	q1, q2, [x11, #-32]
	stp	q3, q4, [x11], #64
	subs	x12, x12, #8
	b.ne	LBB0_8
; %bb.9:
	cmp	x10, x8
	b.ne	LBB0_11
LBB0_10:
	mov	w21, #1
Lloh2:
	adrp	x20, l_.str.1@PAGE
Lloh3:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_11:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
Lloh4:
	adrp	x20, l_.str.1@PAGE
Lloh5:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	add	x10, x10, #1
	str	x10, [x9], #8
	subs	x8, x8, #1
	b.ne	LBB0_12
; %bb.13:
	mov	w21, #1
LBB0_14:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh6:
	adrp	x8, _DEBUG_ANY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DEBUG_ANY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_gig_dbg
	mov	x0, x21
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_ANY,4,2                  ; @DEBUG_ANY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not allocate all channels"

l_.str.1:                               ; @.str.1
	.asciz	"allocated all channels"

.subsections_via_symbols
