	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hv_msi_free
_hv_msi_free:                           ## @hv_msi_free
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edx, %esi
	callq	_irq_domain_get_irq_data
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_irq_data_get_msi_desc
	movq	%rax, %rdi
	callq	_msi_desc_to_pci_dev
	movq	%rax, %r12
	movq	(%r14), %r15
	movq	%rbx, %rdi
	callq	_irq_data_get_irq_chip_data
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r14
	movq	$0, (%rbx)
	movl	(%r12), %edi
	callq	_devfn_to_wslot
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_get_pcichild_wslot
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_hv_int_desc_free
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_pcichild                   ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hv_msi_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hv_msi_free
_hv_msi_free:                           ; @hv_msi_free
	.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, x1
	mov	x1, x2
	bl	_irq_domain_get_irq_data
	mov	x20, x0
	bl	_irq_data_get_msi_desc
	bl	_msi_desc_to_pci_dev
	mov	x22, x0
	ldr	x21, [x19]
	mov	x0, x20
	bl	_irq_data_get_irq_chip_data
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	str	xzr, [x20]
	ldr	w0, [x22]
	bl	_devfn_to_wslot
	mov	x1, x0
	mov	x0, x21
	bl	_get_pcichild_wslot
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	mov	x1, x19
	bl	_hv_int_desc_free
	mov	x0, x20
	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	_put_pcichild
LBB0_3:
	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
LBB0_4:
	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	_kfree
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hv_msi_free
.subsections_via_symbols
