	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_mbox_unregister
_omap_mbox_unregister:                  ## @omap_mbox_unregister
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.3:
	movq	_omap_mbox_devices_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	8(%rbx), %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	(%rbx), %rbx
	movq	(%rbx), %rax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %edi
	callq	_device_unregister
	movq	(%rbx), %rax
	addq	$8, %rbx
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_6
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_omap_mbox_devices_lock,4,2     ## @omap_mbox_devices_lock
	.no_dead_strip	_omap_mbox_unregister
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_mbox_unregister
_omap_mbox_unregister:                  ; @omap_mbox_unregister
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.2:
Lloh0:
	adrp	x20, _omap_mbox_devices_lock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _omap_mbox_devices_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
	add	x0, x19, #8
	bl	_list_del
	mov	x0, x20
	bl	_mutex_unlock
	ldr	x9, [x19]
	ldr	x8, [x9]
	cbz	x8, LBB0_5
; %bb.3:
	add	x19, x9, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x8]
	bl	_device_unregister
	ldr	x8, [x19], #8
	cbnz	x8, LBB0_4
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_omap_mbox_devices_lock,4,2     ; @omap_mbox_devices_lock
	.no_dead_strip	_omap_mbox_unregister
.subsections_via_symbols
