	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sti_mbox_shutdown_chan
_sti_mbox_shutdown_chan:                ## @sti_mbox_shutdown_chan
	.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
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.4:
	movq	8(%rax), %rsi
	addq	$-8, %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addq	$8, %rsi
	cmpq	%rbx, %rsi
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_5
	jmp	LBB0_7
LBB0_1:
	xorl	%edx, %edx
LBB0_2:
	cmpl	%edx, %ecx
	jne	LBB0_3
LBB0_7:
	movl	4(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
LBB0_3:
	movq	%rbx, %rdi
	callq	_sti_mbox_disable_channel
	movq	%rbx, %rdi
	callq	_sti_mbox_clear_irq
	movq	$0, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Request to free non-existent channel\n"

	.no_dead_strip	_sti_mbox_shutdown_chan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sti_mbox_shutdown_chan
_sti_mbox_shutdown_chan:                ; @sti_mbox_shutdown_chan
	.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	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x10, #0
	ldr	x11, [x8, #8]
	sub	x11, x11, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x11, x11, #8
	cmp	x11, x19
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w10, #0
LBB0_5:
	cmp	w9, w10
	b.ne	LBB0_7
LBB0_6:
	ldr	w0, [x8, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_warn
LBB0_7:
	mov	x0, x19
	bl	_sti_mbox_disable_channel
	mov	x0, x19
	bl	_sti_mbox_clear_irq
	str	xzr, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Request to free non-existent channel\n"

	.no_dead_strip	_sti_mbox_shutdown_chan
.subsections_via_symbols
