	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gigaset_get_channel            ## -- Begin function gigaset_get_channel
	.p2align	4, 0x90
_gigaset_get_channel:                   ## @gigaset_get_channel
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	_spin_lock_irqsave
	xorl	%r14d, %r14d
	leaq	L_.str(%rip), %r15
	cmpq	$0, 24(%rbx)
	jne	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	incq	24(%rbx)
	movl	$1, (%rbx)
	movl	$1, %r14d
	leaq	L_.str.1(%rip), %r15
LBB0_3:
	movq	_DEBUG_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %edx
	movq	%r15, %rsi
	callq	_gig_dbg
	movq	8(%rbx), %rdi
	callq	_spin_unlock_irqrestore
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_ANY,4,2                  ## @DEBUG_ANY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not allocate channel %d"

L_.str.1:                               ## @.str.1
	.asciz	"allocated channel %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gigaset_get_channel            ; -- Begin function gigaset_get_channel
	.p2align	2
_gigaset_get_channel:                   ; @gigaset_get_channel
	.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	x0, [x0, #8]
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w20, #0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	bl	_try_module_get
	cbz	w0, LBB0_1
; %bb.3:
	ldr	x8, [x19, #24]
	add	x8, x8, #1
	str	x8, [x19, #24]
	mov	w20, #1
	str	w20, [x19]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
Lloh4:
	adrp	x8, _DEBUG_ANY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DEBUG_ANY@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w2, [x19, #16]
	bl	_gig_dbg
	ldr	x0, [x19, #8]
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_ANY,4,2                  ; @DEBUG_ANY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not allocate channel %d"

l_.str.1:                               ; @.str.1
	.asciz	"allocated channel %d"

.subsections_via_symbols
