	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hisi_qm_uninit                 ## -- Begin function hisi_qm_uninit
	.p2align	4, 0x90
_hisi_qm_uninit:                        ## @hisi_qm_uninit
	.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	%rdi, %rbx
	movq	40(%rdi), %r14
	cmpq	$0, 32(%rdi)
	je	LBB0_3
## %bb.1:
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.2:
	leaq	8(%rbx), %r15
	movq	%rbx, %rdi
	callq	_hisi_qm_cache_wb
	movl	24(%rbx), %esi
	movq	16(%rbx), %rdx
	movl	8(%rbx), %ecx
	movq	%r14, %rdi
	callq	_dma_free_coherent
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
LBB0_3:
	movq	%rbx, %rdi
	callq	_qm_irq_unregister
	movq	%r14, %rdi
	callq	_pci_free_irq_vectors
	movl	(%rbx), %edi
	callq	_iounmap
	movq	%r14, %rdi
	callq	_pci_release_mem_regions
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_disable_device             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hisi_qm_uninit                 ; -- Begin function hisi_qm_uninit
	.p2align	2
_hisi_qm_uninit:                        ; @hisi_qm_uninit
	.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	x20, x0
	ldp	x8, x19, [x0, #32]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_hisi_qm_cache_wb
	mov	x21, x20
	ldr	w3, [x21, #8]!
	ldr	w1, [x21, #16]
	ldr	x2, [x21, #8]
	mov	x0, x19
	bl	_dma_free_coherent
	mov	x0, x21
	mov	w1, #0
	mov	w2, #24
	bl	_memset
LBB0_3:
	mov	x0, x20
	bl	_qm_irq_unregister
	mov	x0, x19
	bl	_pci_free_irq_vectors
	ldr	w0, [x20]
	bl	_iounmap
	mov	x0, x19
	bl	_pci_release_mem_regions
	mov	x0, x19
	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	_pci_disable_device
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
