	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbox_controller_unregister     ## -- Begin function mbox_controller_unregister
	.p2align	4, 0x90
_mbox_controller_unregister:            ## @mbox_controller_unregister
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	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, %r14
	movq	_con_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	leaq	24(%r14), %rdi
	callq	_list_del
	cmpl	$0, (%r14)
	jle	LBB0_4
## %bb.2:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rdi
	addq	%r15, %rdi
	callq	_mbox_free_channel
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	cmpq	$0, 8(%r14)
	je	LBB0_6
## %bb.5:
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_hrtimer_cancel
LBB0_6:
	movq	_con_mutex@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_7:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_con_mutex,4,2                  ## @con_mutex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbox_controller_unregister     ; -- Begin function mbox_controller_unregister
	.p2align	2
_mbox_controller_unregister:            ; @mbox_controller_unregister
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_7
; %bb.1:
	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	x19, x0
Lloh0:
	adrp	x0, _con_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _con_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	add	x0, x19, #24
	bl	_list_del
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x20, #0
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x20
	bl	_mbox_free_channel
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x20, x20, #4
	cmp	x21, x8
	b.lt	LBB0_3
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.5:
	add	x0, x19, #4
	bl	_hrtimer_cancel
LBB0_6:
Lloh2:
	adrp	x0, _con_mutex@GOTPAGE
Lloh3:
	ldr	x0, [x0, _con_mutex@GOTPAGEOFF]
	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
	b	_mutex_unlock
LBB0_7:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_con_mutex,4,2                  ; @con_mutex
.subsections_via_symbols
