	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpcht_release_msi
_cpcht_release_msi:                     ## @cpcht_release_msi
	.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	%rcx, %rbx
	movl	%edx, %r15d
	callq	_device_get_softc
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mtx_lock
	testl	%r15d, %r15d
	jle	LBB0_8
## %bb.1:
	movq	8(%r14), %rax
	movl	%r15d, %r9d
	leaq	-1(%r9), %rsi
	movl	%r9d, %r8d
	andl	$3, %r8d
	cmpq	$3, %rsi
	jae	LBB0_3
## %bb.2:
	xorl	%esi, %esi
	jmp	LBB0_5
LBB0_3:
	andl	$-4, %r9d
	xorl	%esi, %esi
	movq	_IRQ_NONE@GOTPCREL(%rip), %rdi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi), %ecx
	movzbl	(%rbx,%rsi,4), %edx
	movl	%ecx, (%rax,%rdx,4)
	movl	(%rdi), %ecx
	movzbl	4(%rbx,%rsi,4), %edx
	movl	%ecx, (%rax,%rdx,4)
	movl	(%rdi), %ecx
	movzbl	8(%rbx,%rsi,4), %edx
	movl	%ecx, (%rax,%rdx,4)
	movl	(%rdi), %ecx
	movzbl	12(%rbx,%rsi,4), %edx
	movl	%ecx, (%rax,%rdx,4)
	addq	$4, %rsi
	cmpq	%rsi, %r9
	jne	LBB0_4
LBB0_5:
	testq	%r8, %r8
	je	LBB0_8
## %bb.6:
	leaq	(%rbx,%rsi,4), %rdx
	xorl	%esi, %esi
	movq	_IRQ_NONE@GOTPCREL(%rip), %rdi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi), %ecx
	movzbl	(%rdx,%rsi,4), %ebx
	movl	%ecx, (%rax,%rbx,4)
	incq	%rsi
	cmpq	%rsi, %r8
	jne	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	callq	_mtx_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.no_dead_strip	_cpcht_release_msi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpcht_release_msi
_cpcht_release_msi:                     ; @cpcht_release_msi
	.cfi_startproc
; %bb.0:
	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, x3
	mov	x21, x2
	bl	_device_get_softc
	mov	x20, x0
	bl	_mtx_lock
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	mov	w9, w21
Lloh0:
	adrp	x10, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IRQ_NONE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	ldrb	w12, [x19], #4
	str	w11, [x8, x12, lsl #2]
	subs	x9, x9, #1
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x20
	bl	_mtx_unlock
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.no_dead_strip	_cpcht_release_msi
.subsections_via_symbols
