	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_lock
_do_lock:                               ## @do_lock
	.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
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.3:
	cmpl	$0, 32(%rbx)
	jne	LBB0_11
## %bb.4:
	leaq	28(%rbx), %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:
	cmpl	$0, 24(%rbx)
	jne	LBB0_11
## %bb.6:
	movl	4(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.7:
	movq	16(%rbx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rcx,%rdx,4)
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_9
LBB0_10:
	movq	%rbx, %rdi
	callq	_gigaset_get_channels
	testl	%eax, %eax
	je	LBB0_11
LBB0_2:
	movl	8(%rbx), %eax
	movl	$130, (%rbx)
	movq	_M_UNKNOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	jmp	LBB0_12
LBB0_1:
	cmpl	$130, %eax
	je	LBB0_2
LBB0_11:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_M_UNKNOWN,4,2                  ## @M_UNKNOWN
	.no_dead_strip	_do_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_lock
_do_lock:                               ; @do_lock
	.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	w8, [x0]
	sub	w9, w8, #128
	cmp	w9, #2
	b.hs	LBB0_10
; %bb.1:
	ldr	w8, [x19, #32]
	cbnz	w8, LBB0_11
; %bb.2:
	add	x0, x19, #28
	bl	_list_empty
	cbz	w0, LBB0_11
; %bb.3:
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_11
; %bb.4:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	ldr	x9, [x19, #16]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	cbnz	w10, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #4
	subs	x8, x8, #1
	b.ne	LBB0_6
LBB0_8:
	mov	x0, x19
	bl	_gigaset_get_channels
	cbz	w0, LBB0_11
LBB0_9:
	ldr	w0, [x19, #8]
	mov	w8, #130
	str	w8, [x19]
Lloh0:
	adrp	x8, _M_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	b	LBB0_12
LBB0_10:
	cmp	w8, #130
	b.eq	LBB0_9
LBB0_11:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_M_UNKNOWN,4,2                  ; @M_UNKNOWN
	.no_dead_strip	_do_lock
.subsections_via_symbols
